1 / 46

Chapter 9: Image Segmentation

Chapter 9: Image Segmentation. Image segmentation – partition an image into component parts Contents: (1) Thresholding. (2) Edge detection. (3) Region-based segmentation. Split. Merge. 2. ◎ Thresholoding 。 Single Thresholoding.

powellh
Télécharger la présentation

Chapter 9: Image Segmentation

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Chapter 9: Image Segmentation • Image segmentation – partition an image • into component parts • Contents: • (1) Thresholding (2) Edge detection

  2. (3) Region-based segmentation Split Merge 2

  3. ◎ Thresholoding • 。 Single Thresholoding

  4. 。Double Thresholding

  5. 。Advantages: • (i) Remove unnecessary detail • (ii) Bring out hidden detail

  6. ○ How to choose a threshold value • 。 Histogram method

  7. 。 Otsu’s thresholding method Describe the histogram as a probability distribution by

  8. Let t be the determined threshold value • Define • Find t such that

  9. ○ Adaptive Thresholding • Divide image into strips • Apply Otsu’s method to each strip

  10. 。Variable thresholding (i) Divide image into blocks Global thresholding (ii) Compute histograms of block images

  11. For each block image, compute its (1) Smooth histogram h

  12. (2) Fit with mixture of Gaussian let v be the gray level corresponding to the deepest valley of

  13. Compute

  14. (3) Test biomodality (4) If the bimodality test is past, compute T by

  15. (5) For block (x,y) whose threshold value T(x,y) • hasn’t yet been determined

  16. (6) Smooth T by • (7) Determine thresholding • values of image pixels • by bilinear interpolation

  17. Global thresholding Variable thresholding

  18. ◎ Edge Detection • 。Types of edge: • Step edge (jump edge) • Ramp edge • Roof edge (crease edge) • Smooth edge

  19. ○ Derivatives

  20. 2-D case:

  21. Prewitt filters • 。Consider • Horizontal filter: , Smooth filter: • Combine • Vertical filter: , Smooth filter: • Combine

  22. vertical horizontal Edge image Binary image Thinning

  23. 。Roberts filter: • 。Sobel filter:

  24. ◎ Second Derivatives • Laplacian:

  25. Laplacian Filter: Invariant under rotation (isotropic filter)

  26. Step edge: Ramp edge:

  27. 。 Second derivatives are sensitive to noise • 。 Other Laplacian masks

  28. ○ Zero crossing 0 +, + 0 0 -, -0 + -, -+

  29. Example: Edge detection by taking zero • crossings after a Laplace filtering Marr-Hildreth method Smooth the input image using a Gaussian before Laplace filtering

  30. 。 Gaussian smooth + Laplace filtering • = Laplacian of Gaussian (LOG): • Gaussian: LOG:

  31. Mexican hat: Difference of Gaussian (DOG):

  32. ◎ Canny edge detector • ○ Steps: Let • 1. Smoothing and Edge detection • (a) Horizontal direction • (b) Vertical direction • (c) Edge magnitude

  33. 2. Non-maximum suppression • (a) For each pixel p, • (b) Quantize to • 0, 45, 90 or 135 degs. • (c) Along • p is marked if its edge magnitude • is larger than both its two neighbors • p is deleted otherwise

  34. 3. Hysteresis thresholding • For each marked pixel p, • (a) If > or • (b) If and p is adjacent to • an edge pixel • p is considered as an edge pixel

  35. ◎ Hough Transform

  36. ○ Line equation: y = ax + b • A point on the line • Rewrite as • Another point Parameter space • on the line

  37. ○ Line equation:

  38. Definition: • ◎ Radon Transform

  39. ○ Strongest edge detection: Giving the input image I(x, y), 1. Compute the binary edge image f(x, y) of I(x, y). 2. Compute the Radon transform of f(x, y). 3. Select the with greatest value of . • 4. The strongest line in I(x, y) is

  40. Input image The RT of the binary edges of the input image The strongest edge

  41. ◎ Region-based Segmentation ○ Splitting and Merging Steps: 1. Equally divide the input image into 4 sub-images; 2. Compute the characteristics of each sub-image, e.g., intensity, color, texture etc; 3. Repeatedly divide sub-images into sub-sub-images if their characteristics are significantly different; 4. Repeatedly merge adjacent sub-images if their characteristics are similar enough. 42

  42. Split Merge Different segmentations may result from region splitting and region merging approaches.

  43. 44

  44. 45

  45. Input Image Region Boundary Segmentation

More Related