The H_EQ_CT procedure histogram-equalizes the color tables for an image or a region of the display. A pixel-distribution histogram is obtained, the cumulative integral is taken and scaled, and the result is applied to the current color table.
This routine is written in the IDL language. Its source code can be found in the file
h_eq_ct.pro in the
lib subdirectory of the IDL distribution.
H_EQ_CT [, Image]
A two-dimensional byte array representing the image whose histogram is to be used in determining the new color tables. If this value is omitted, the user is prompted to mark the diagonal corners of a region of the display. If Image is specified, it is assumed that the image is loaded into the current IDL window. Image must be scaled the same way as the image loaded to the display.
Introduced: Pre 4.0