Segmentation |
|
The goal of image segmentation is to detect and extract the regions
which compose an image. Segmentation is a critical step in image analysis
and also one of the most difficult tasks with nontrivial images. For these
reasons, different methods are provided in JMicroVision.
Simple Binarization
This operation produces a binary image (see Image
Types). In automatic histogram
thresholding the min threshold is always equal to 0 and the following
methods give the max threshold value:
- Iterative bisection: For each band an initial
threshold is defined to be the midpoint of the range of data represented
by the histogram. The mean value is calculated for each sub-histogram
and a new threshold is defined as the arithmetic mean of the two sub-histogram
means. This process is repeated until the threshold value no longer
changes.
- Max variance: Calculates the threshold which maximizes
the ratio of the between-class variance to the within-class variance
for each band.
- Max entropy: The entropy of a range of gray levels
is defined to be the negation of the sum of products of the probability
and the logarithm thereof over all gray levels in the range. The maximum
entropy threshold is defined to be the value which maximizes the sum
of the entropy of the two ranges which are above and below the threshold,
respectively. This computation is effected for each band.
- Min error: For each band the histogram is modeled
as the sum of two Gaussian distributions and the threshold which minimizes
the misclassification error is computed. If the underlying histogram
is unimodal the mean value of each band will be returned as the threshold.
The bimodality of the histogram for that band will be identically
zero.
- Min fuzziness: Calculates the threshold which
minimizes the fuzziness.
Note: The color
of the object (white) is referred to as the foreground color in the resulting
image. The rest (black) is referred to as the background color.
Intensity threshold
See Histogram Thresholding.
k-means clustering
See k-means clustering.
Watershed
See Watershed.
See
also:
- Image Factory
-