The second type of histogram is useful for computing the sum of gradient values versus grayscale, a potentially useful quantity for automatic thresholding [2].
An option exists to smooth or not smooth a histogram. The smoothing is done using a 5-point Hamming window and gives a much cleaner histogram [22].
The output is a file called ``histogram.stats'' and can be plotted using the ANALYZE PLOT program. Column 1 is the grayscale bin number and column 2 is the y axis.
no. of graylevels per bin = 2You do not have to have one histogram bin per graylevel value. By using the parameter setting ``no. of graylevels per bin = 3'', for example, you can have 3 graylevels per bin. This typically gives a smoother fuller histogram.
* smooth histogram = yes
* use volumes = input only
* input from vol # = 0
* second volume = 0
*
To make a histogram using two volumes, toggle the option ``use volumes = ''. To only use one, leave the parameter at its default. The ``second volume = '' parameter is only used when the two-volume histogram option is elected.
Philip Americus