Usage: histstretch in.pgm vmin vmax p out.pgm
Description:
Eliminates the levels of the histogram strictly less than vmin or strictly greater than vmax, and also the extremal levels that have strictly less than N*(p/100) pixels (N being the total number of pixels). If p = 0, only the extremal levels with 0 pixels are eliminated. A linear histogram scaling is then performed.
Types supported: byte 2D
Category: histo