Standard Library procedure that uses an input image parameter, or the region of the display you mark, to obtain apixel distribution histogram. The cumulative integral is taken and scaled, and the result is applied to the current color table.
wavedir/data
wavedir:[DATA]
wavedir\data
wavedir
is the main PV-WAVE directory.The result is applied to the current color table using the image parameter. Note that this example will only work if the original image contains values in the range of 0 to 255.
aerial_view = BYTARR(512,512) GET_LUN, unit OPENR, unit, 'aerial_demo.img'
READU, unit, aerial_view CLOSE, unit FREE_LUN, unit
WINDOW, 1, XSize=512, YSize=512, $ title='Aerial View of Boulder, CO' TVSCL, aerial_view
HIST_EQUAL_CT, aerial_view
For more information, see Histogram Equalization in Chapter 6 of the PV-WAVE User's Guide.