Presentation is loading. Please wait.

Presentation is loading. Please wait.

THE WATERSHED SEGMENTATION 1 NADINE GARAISY. GENERAL DEFINITION 2 A drainage basin or watershed is an extent or an area of land where surface water from.

Similar presentations


Presentation on theme: "THE WATERSHED SEGMENTATION 1 NADINE GARAISY. GENERAL DEFINITION 2 A drainage basin or watershed is an extent or an area of land where surface water from."— Presentation transcript:

1 THE WATERSHED SEGMENTATION 1 NADINE GARAISY

2 GENERAL DEFINITION 2 A drainage basin or watershed is an extent or an area of land where surface water from rain melting snow or ice converges to a single point at a lower elevation, usually the exit of the basin, where the waters join another waterbody, such as a river, lake, wetland, sea, or ocean

3 INTRODUCTION 3  The watershed concept was first applied by Beucher and Lantuejoul at 1979, they used it to segment images of bubbles and SEM metallographic pictures  The Watershed transformation is a powerful tool for image segmentation, it uses the region- based approach and searches for pixel and region similarities.

4 IMAGE REPRESENTATION 4

5 REMINDER-IMAGE GRADIENT 5 An image gradient is a directional change in the intensity or color in an image. Image gradients may be used to extract information from images.

6 IMAGE GRADIENT 6 an intensity image a gradient image in the x direction measuring horizontal change in intensity a gradient image in the y direction measuring vertical change in intensity

7 IMAGE GRADIENT 7

8 GEODESIC DISTANCE 8

9 GEODESIC ZONE OF INFLUENCE 9

10 GEODESIC SKELETON BY ZONES OF INFLUENCE 10

11 MINIMA AND MAXIMA 11

12 MINIMA AND MAXIMA 12

13 13 ASCENDING PATH

14 14 NON-ASCENDING PATH

15 THE WATERSHED TRANSFORMATION 15

16 16 THE WATERSHED TRANSFORMATION

17 17  http://cmm.ensmp.fr/~beucher/lpe1.gif http://cmm.ensmp.fr/~beucher/lpe1.gif THE WATERSHED TRANSFORMATION

18 BUILDING THE WATERSHED 18

19 BUILDING THE WATERSHED 19

20 BUILDING THE WATERSHED 20  Visual illustration Visual illustration

21 OVER-SEGMENTATION PROBLEM 21 Unfortunately, most times the real watershed transform of the gradient present many catchment basins, Each one corresponds to a minimum of the gradient that is produced by small variations, mainly due to noise.

22 OVER-SEGMENTATION: SOLUTION 22 The over-segmentation could be reduced by appropriate filtering, but the best results is obtained by marking the patterns to be segmented before preforming the watershed transformation of the gradient.

23 OVER-SEGMENTATION: SOLUTION FIRST: we mark each blob of protein of the original image (by extracting the minima of the image function) 23

24 OVER-SEGMENTATION: SOLUTION 24

25 HOMOTOPY MODIFICATION 25

26 OVER-SEGMENTATION: SOLUTION Now we look at the final result of the marking as a topographic surface, but in the flooding process instead of piercing the minima, we only make holes through the components of the marker set that we produced 26

27 OVER-SEGMENTATION: SOLUTION 27

28 OVER-SEGMENTATION: SOLUTION 28

29 OVERLAPING GRAINS OVERLAPING GRAINS 29  In some cases we have an image with overlapping figures, that we need to segment, in order to do that we need to point out the overlapping regions.  For example the figure here is a TEM (transmission electron microscopy) image of grains of silver nitrate scattered on a photographic plate.

30 30 OVERLAPING GRAINS OVERLAPING GRAINS To point out the overlapping regions we first threshold the initial image to a binary image with only two gray values

31 REMINDER: DISTANCE FUNCTION 31

32 32 OVERLAPING GRAINS OVERLAPING GRAINS By calculation the maxima of the distance function of the binary image we can provide the markers of the grains

33 33 OVERLAPING GRAINS OVERLAPING GRAINS

34 34 OVERLAPING GRAINS OVERLAPING GRAINS Finally after marking the background and calculation the gradient function we run the homotopy modification and the watershed construction are preformed

35 THE SEGMENTATION PARADIGM 35 I.Finding the markers and the segmentation. II.Performing a marker- controlled watershed with these two elements The segmentation process is divided into two steps:

36 WATERSHED TRANSFOTMATION PROCESS 36 Source: A gray scale image Step 1: Use the Gradient Magnitude as the Segmentation Function - The gradient is high at the borders of the objects and low (mostly) inside the objects. Step 2: Mark the foreground objects FROM - WWW.MATHWORKS.COM

37 37 Step 3: computing the opening-by- reconstruction of the image : Step 4: Following the opening with a closing can remove the dark spots and stem marks. Step 5: Calculate the regional maxima to obtain good foreground markers. WATERSHED TRANSFOTMATION PROCESS FROM - WWW.MATHWORKS.COM

38 38 Step 6: Superimpose the foreground marker image on the original image, Notice that the foreground markers in some objects go right up to the objects' edge cleaning the Step 7: cleaning the edges of the marker blobs and then shrinking them a bit Step 8: Compute Background Markers, Starting with thresholding operation WATERSHED TRANSFOTMATION PROCESS FROM - WWW.MATHWORKS.COM

39 39 Step 9: Compute Background Markers, using the watershed transform of the distance transform and then looking for the watershed ridge lines of the result Step 10: Visualize the Result, one of the techniques is to superimpose the foreground markers, background markers, and segmented object boundaries. WATERSHED TRANSFOTMATION PROCESS FROM - WWW.MATHWORKS.COM

40 WATERSHED TRANSFOTMATION PROCESS – ADVANCE OPTIONS 40 We can use transparency to superimpose this pseudo- color label matrix on top of the original intensity image. *Another useful visualization technique is to display the label matrix as a color image FROM - WWW.MATHWORKS.COM

41 ROAD SEGMENTATION 41  In this study they use the watershed algorithm among others to extract vehicle position on the road and possible obstacles ahead.  The algorithms have been tested on a small database representing different driving situations.

42 ROAD SEGMENTATION 42 The morphological gradient image The original road image

43 ROAD SEGMENTATION 43 Due to noise and inhomogeneities in the gradient image, the watershed will produce a lot of minima which leads to over-segmentation of the image

44 ROAD SEGMENTATION 44 We can enhance the watershed on the gradient image by modifying the gradient function by defining new markers which will be imposed as the new minima.

45 ROAD SEGMENTATION 45 The difference between watershed on simple gradient and watershed on the gradient after modifying using the regularized gradient

46 ROAD SEGMENTATION 46

47 ROAD SEGMENTATION 47

48 ROAD SEGMENTATION 48

49 ROAD SEGMENTATION 49  To obtain the road markers we do a simplification on the image using its gradient, the result is an image made of catchment basins tiles of constant gray values- this image is called the mosaic-image.  The gradient of this image will be null everywhere except on the divide lines where it will be equal to the absolute difference of the gray-tone values of the to catchment basins.

50 50 ROAD SEGMENTATION Watershed of the mosaic-image points out only the regions surrounded by higher contrast edges, and we can still extract a marker for the road

51 ROAD SEGMENTATION 51 The result – Road borders, corresponding to the watershed of the modified gradient image

52 LANE BY LANE ROAD SEGMENTATION 52 Original image Mosaic- image Watershed of mosaic- image Lanes markers enhancement Final result

53 POTENTIAL OBSTACLES DETECTION 53 The second part of this study was identifying obstacles on the road, but this detection is useless without a good definition of the nature of the obstacles, the problem in this part was distinguishing a dangerous obstacle from a light variation in intensity due, for instance to a shading. Black marker- the edges of the road White marker- obstacles-free zone

54 POTENTIAL OBSTACLES DETECTION 54 Difficulties in this segmentation:  false detection due to the shadows, because they are considered as obstacles, this can be solved if given complementary information by telemetry or stereovision

55 VISUAL EXAMPLES  Illustration of watershed road segmentation: https://www.youtube.com/watch?v=Tibi6a_aeeE https://www.youtube.com/watch?v=Tibi6a_aeeE  Road Detection Using Region Growing and Segmentation: https://www.youtube.com/watch?v=ADdkfE_J4a0 55

56 REFERENCES  THE WATERSHED TRANSFORMATION APPLIED TO IMAGE SEGMENTATION – S.Beucher  ROAD SEGMENTATION BY WATERSHEDS ALGORITHEMS – S.Beucher, M.Billodeau and X.Yu  USE OF WATERSHEDS IN CONTOUR DETECTION- S.Beucher and C.Lantuejoul  MATHWORKS.COM  WIKIPEDIA 56

57 57

58 TOPOGRAPHIC MAP 58


Download ppt "THE WATERSHED SEGMENTATION 1 NADINE GARAISY. GENERAL DEFINITION 2 A drainage basin or watershed is an extent or an area of land where surface water from."

Similar presentations


Ads by Google