This program takes in two input images, FROM and MATCH, and uses their histograms to compute stretch pairs. The data
in the stretch depends on which matching algorithm is chosen. If Culmulative Distribution Function (CDF) is chosen,
the histogram data will be stored into stretch pairs at regular intervals, the default being every one percent between
0.5 and 99.5 percent. If MODE is chosen, only the histogram data at the endpoints and mode are stored. The
pixels from the input image are remapped based on the data in the stretch pairs and the results are written to
a new cube file. This is useful for tone matching two images. The following figures
illustrate what is happening. Band 1 is FROM, Band 6 is MATCH, and CDF and Mode are two different output cubes. The
blue line is the histogram and the red line is the cumulative distribution.
Notice how the endpoints, mode, and overall shape of Band 1's histogram is now roughly equivalent to Band 6.