Checks that the image to be processed is of the correct type -
either a true binary image or a two-level 8-bit greyscale image
with 0 as one of the values.
A class which calculates the histogram of a BufferedImage, together
with associated statistics such as minimum and maximum values in all
bands, mean value in all bands, etc.
Constructs a SobelEdgeOp that computes gradient magnitudes
using the specified calculation method and then performs
thresholding to produce an edge map.