vis/images/
mg_scaleimage.pro
includes main-level programRoutines
top mg_scaleimage
result = mg_scaleimage(im, dividers=1-dimensional array, outputs=1-dimensional array)
Piecewise-linearly scale an image.
Return value
image of the same dimensions as the original and type float
Parameters
- im in required type=2-dimensional array
input image (single band)
Keywords
- dividers in required type=1-dimensional array
divider values in the scale of the input image
- outputs in required type=1-dimensional array
output values corresponding to the
DIVIDERS
values
Examples
Try the main-level example program at the end of this file:
IDL> .run mg_scaleimage
im = mg_scaleimage(elev, dividers=[0, 1, 256], outputs=[0, 144, 256])
File attributes
Modification date: | Wed May 14 15:07:15 2014 |
Lines: | 21 |
Docformat: | rst rst |
Contact me if you have enhancement requests or bug fixes.