Apply histogram equalization to a cube.
This program equalizes the histogram of an input cube (defined by FROM), and outputs the results to a file (defined by TO).

By equalizing the input file's histogram, the resulting cumulative distribution becomes linear instead of curved. The following
is an illustration of what happens to an input file. The blue line represents the histogram and the red line is the cumulative
distribution. On the left is the histogram and cumulative distribution of an unmodified image, while the figure on the right shows
how the both the histogram and distribution are altered.

The blue line represents the input file's histogram and the red line represents its cumulative distribution function.
Math and Statistics
- histmatch
- stretch
Original version
Histogram object no longer has SetRange, updated to use SetValidRange
Removed references to CubeInfo
cube
input
Input file to be equalized
This file will have its cumulative distribution reshaped to be more linear.
*.cub
cube
output
Output cube
The resultant cube containing a linearized image
*.cub
double
- 0.5
Minimum percentage
Minimum DN cut-off value at the cumulative percent of the histogram
0.0
- MAXPER
double
- 99.5
Maximum percentage
Maximum DN cut-off value at the cumulative percent of the histogram
100.0
integer
- 1
Percentage increment
Percentage increment for the histogram
1
- MAXPER
Histogram equalization
This example shows the results of histogram equalization on a single band of an image.
from=../peaks.cub+6 to=../result.cub
Use histogram equalization to the make the input cube's sixth band distribution function linear.
Input image for histeq
This is band 6 of the input image for this example.
FROM
Band 6 histogram
This is the input image's cumulative distribution for band 6.
Output image for histogram equalization
This is the output image that results.
TO
Resulting cumulative distribution
This is the output image's cumulative distribution.
Example Gui
Screenshot of GUI with parameters filled in to perform
a histogram equalization operation with the input image.