bwhisteq — equalize the histogram of a black and white bw file
bwhisteq automatically equalizes the histogram of a black and white bw(5) format file. It reads the file file.bw and writes a "remapped" version of it on standard output. The method used is to distribute the values of the histogram, as best as possible, in order to produce a constant average "density", while maintaining monotonicity.
The
-v
flag will output the old and new histogram values on the terminal.