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.
flag will output the old and new histogram values on the terminal.
This software is Copyright (c) 1989-2016 by the United States Government as represented by U.S. Army Research Laboratory.