Applies "top-hat" filter to an image/volume. Useful for
segmenting circular/spherical objects from image/volume when
objects have intensity above background.
Example.
.INPUT FILE: VOL001
[Enter the name of the input file.]
.OUTPUT FILE: VOL002
[Enter name for output file.]
.INNER & OUTER DIAMETERS: 3,7
[Diameter of the object and reference area around the
object.]
NOTES
Image/volume is "circularly closed" so that pixels on
boundaries have a neighbor on opposite boundary.
Output image is the difference between the maximum
pixel value within the inner radial region and the
maximum pixel value in the outer radial region.
To produce a "standard top-hat filter" this output image
can be thresholded at any desired level. This two step
process allows easy interactive determination of the threshold
that is suitable inside the filter.
Reference: John C. Russ, "The Image Processing Handbook",
CRC Press, Inc. (2000)