Watershed Segmentation Based On Distance Transform
Watershed Segmentation Based On Distance Transform
net/publication/258651893
CITATIONS READS
14 2,512
2 authors, including:
Dibyendu Ghoshal
National Institute of Technology, Agartala
25 PUBLICATIONS 69 CITATIONS
SEE PROFILE
Some of the authors of this publication are also working on these related projects:
Conceptual Design of a Ramp Type Escalator Utilizing Magnetic Levitation Concept View project
All content following this page was uploaded by Dibyendu Ghoshal on 27 July 2016.
6
International Journal of Computer Applications (0975 – 8887)
Volume 52– No.13, August 2012
(1)
Where,
T[n] = set of points in P(x,y) which are lying below the plane
p(x,y) = n
min, max = minimum or maximum gray level value.
n = stage of flooding varies from min + 1 to max + 1
Let Cn(M1) be the set of points in the catchment basin
associated with M1 that are flooded at stage n.
(2)
Where,
{
(3) Fig 2: (a) shows a binary image matrix, and (b) shows the
corresponding distance transform.
C[n] is the union of flooded catchment basin portions at the
stage n. 4. PROPOSED ALGORITHM
The image (Fig 3), being a distance object has low contrast.
Where, These may be various interferential factors in such type of
images such as non uniform illumination, variation in
(4) temperature of the ambience, atmospheric disturbance and
turbulence, variation in the intensity and contrast etc. All
these factors would enhance the difficulty of segmentation of
(5) galactic images. Thus a meaningful and effective measure is
warranted to alleviate the adverse influence. So some image
If the algorithm keeps on increasing flooding level then
processing method would have to be applied and the image
Cn(Mi) and T[n] will either remain constant or increase.
preprocessing stage comprises a number of methods such as
Algorithm initializes , and then
gray level transformation, contrast enhancement, image de
precedes recursively by assuming that at step n C [n - 1] has
noising, image smoothing, sharpening and so on.
been constructed.
This approach deals with catchment basins and watershed
Let, G is a set of connected components in T[n] and for each
ridge lines in an image by assuming it as a surface where light
connected component g G[n], there possibilities will arise.
pixels are low. But most important contrast of an image is
1. g ∩ C[n - 1] is empty. very important for image segmentation. It is the difference in
visual properties that makes difference between one object of
2. g ∩ C[n - 1] contains one connected component of C[n - an image from the background or we can say it is the
1]. difference in the color and brightness of the object. So for
3. g ∩ C[n - 1] contains more than one connected component satisfactory image segmentation image with satisfactory
of C[n - 1]. resolution is essential. In this approach, for low contrast
stellar images we have used watershed with markers. In the
3. WATERSHED SEGMENTATION initial step shown in figure 4, one stellar image is chosen,
where contrast of that image is low and appropriate area is
USING THE DISTANCE TRANSFORM cropped which is shown in figure 5. We need to adjust the
The distance transforms of a binary image is the distance from
contrast. Contrast adjustment is necessary for good image
every pixel of the object component which is black pixels to
understanding and analyzing. In figure 6, the image contrast is
the nearest white pixel. In binary images there are only two
adjusted with adaptive histogram equalization method. In
gray levels 0 and 1 where 0 stand for black and 1 stands for.
figure 7 we have applied threshold. In figure 8, we have clean
Only one catchment basin will appear in the topographic of a
up and overlay the perimeter on the original image by using
binary image surface only when two black blobs are
imoverlay function, This function takes input image and a
connected together. In this article,, the distance transforms
binary mask and generates an output image, where masked
along with canny edge detector have been used to preprocess
pixels have been replaced by a specified color. In figure 9, we
the image to make it suitable for watershed segmentation. In
apply markers for object and background. The extended
below, figure 2(a) shows a binary image matrix, and in figure
maxima operator is used to identify groups of pixels that are
2(b) shows the corresponding distance transform.
significantly higher than their immediate surroundings. Again
cleaning up and overlying is there in figure 10 and compute
the complement of the image so that the peaks become valleys
and modifies the image using imimposemin function. Finally
we will sum up the watershed transform in figure 11 along
7
International Journal of Computer Applications (0975 – 8887)
Volume 52– No.13, August 2012
8
International Journal of Computer Applications (0975 – 8887)
Volume 52– No.13, August 2012
9
International Journal of Computer Applications (0975 – 8887)
Volume 52– No.13, August 2012
10