Top Banner
Chapter 10 Image Segmentation
45

Chapter 10 Image Segmentation. Preview Segmentation subdivides an image into its constituent regions or objects. Level of division depends on the problem.

Dec 19, 2015

Download

Documents

Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Chapter 10 Image Segmentation. Preview Segmentation subdivides an image into its constituent regions or objects. Level of division depends on the problem.

Chapter 10

Image Segmentation

Page 2: Chapter 10 Image Segmentation. Preview Segmentation subdivides an image into its constituent regions or objects. Level of division depends on the problem.

PreviewSegmentation subdivides an image into its constituent regions or objects.Level of division depends on the problem being solved.Image segmentation algorithms generally are based on one of two basic properties of intensity values: discontinuity (e.g. edges) and similarity (e.g., thresholding, region growing, region splitting and merging)

Page 3: Chapter 10 Image Segmentation. Preview Segmentation subdivides an image into its constituent regions or objects. Level of division depends on the problem.

Chapter OutlineDetection of discontinuitiesEdge linking and boundary detectionThresholdingRegion-based segmentationMorphological watershedsMotion in segmentation

Page 4: Chapter 10 Image Segmentation. Preview Segmentation subdivides an image into its constituent regions or objects. Level of division depends on the problem.

Detection of Discontinuities

Define the response of the mask:

Point detection:

9

1iii zwR

TR

Page 5: Chapter 10 Image Segmentation. Preview Segmentation subdivides an image into its constituent regions or objects. Level of division depends on the problem.

Point Detection Example

Page 6: Chapter 10 Image Segmentation. Preview Segmentation subdivides an image into its constituent regions or objects. Level of division depends on the problem.

Line DetectionMasks that extract lines of different directions.

Page 7: Chapter 10 Image Segmentation. Preview Segmentation subdivides an image into its constituent regions or objects. Level of division depends on the problem.

Illustration

Page 8: Chapter 10 Image Segmentation. Preview Segmentation subdivides an image into its constituent regions or objects. Level of division depends on the problem.

Edge DetectionAn ideal edge has the properties of the model shown to the right: A set of connected pixels, each of which is located at an orthogonal step transition ingray level.Edge: local conceptRegion Boundary: global idea

Page 9: Chapter 10 Image Segmentation. Preview Segmentation subdivides an image into its constituent regions or objects. Level of division depends on the problem.

Ramp Digital EdgeIn practice, optics, sampling and other image acquisition imperfections yield edges that area blurred. Slope of the ramp determined by the degree of blurring.

Page 10: Chapter 10 Image Segmentation. Preview Segmentation subdivides an image into its constituent regions or objects. Level of division depends on the problem.

Zero-Crossings of 2nd Derivative

Page 11: Chapter 10 Image Segmentation. Preview Segmentation subdivides an image into its constituent regions or objects. Level of division depends on the problem.

Noisy Edges: Illustration

Page 12: Chapter 10 Image Segmentation. Preview Segmentation subdivides an image into its constituent regions or objects. Level of division depends on the problem.

Edge PointWe define a point in an image as being an edge point if its 2-D 1st order derivative is greater than a specified threshold.A set of such points that are connected according to a predefined criterion of connectedness is by definition an edge.

Page 13: Chapter 10 Image Segmentation. Preview Segmentation subdivides an image into its constituent regions or objects. Level of division depends on the problem.

Gradient OperatorsGradient:

Magnitude: Direction:

y

fx

f

G

Gf

y

x

2/122 ][ yx GGf

x

y

G

Gyx 1tan),(

Page 14: Chapter 10 Image Segmentation. Preview Segmentation subdivides an image into its constituent regions or objects. Level of division depends on the problem.

Gradient Masks

Page 15: Chapter 10 Image Segmentation. Preview Segmentation subdivides an image into its constituent regions or objects. Level of division depends on the problem.

Diagonal Edge Masks

Page 16: Chapter 10 Image Segmentation. Preview Segmentation subdivides an image into its constituent regions or objects. Level of division depends on the problem.

Illustration

Page 17: Chapter 10 Image Segmentation. Preview Segmentation subdivides an image into its constituent regions or objects. Level of division depends on the problem.

Illustration (cont’d)

Page 18: Chapter 10 Image Segmentation. Preview Segmentation subdivides an image into its constituent regions or objects. Level of division depends on the problem.

Illustration (cont’d)

Page 19: Chapter 10 Image Segmentation. Preview Segmentation subdivides an image into its constituent regions or objects. Level of division depends on the problem.

The LaplacianDefinition:

Generally not used in its original form due to sensitivity to noise.Role of Laplacian in segmentation:

Zero-crossingsTell whether a pixel is on the dark or light side of an edge.

2

2

2

22

y

f

x

ff

Page 20: Chapter 10 Image Segmentation. Preview Segmentation subdivides an image into its constituent regions or objects. Level of division depends on the problem.

Laplacian of GaussianDefinition:

)2/exp()(

)2/exp()(

224

222

22

rr

rh

rrh

Page 21: Chapter 10 Image Segmentation. Preview Segmentation subdivides an image into its constituent regions or objects. Level of division depends on the problem.

Illustration

Page 22: Chapter 10 Image Segmentation. Preview Segmentation subdivides an image into its constituent regions or objects. Level of division depends on the problem.

Edge Linking: Local Processing

Link edges points with similar gradient magnitude and direction.

Page 23: Chapter 10 Image Segmentation. Preview Segmentation subdivides an image into its constituent regions or objects. Level of division depends on the problem.

Global Processing: Hough Transform

Representation of lines in parametric space: Cartesian coordinate

Page 24: Chapter 10 Image Segmentation. Preview Segmentation subdivides an image into its constituent regions or objects. Level of division depends on the problem.

Hough TransformRepresentation in parametric space: polar coordinate

Page 25: Chapter 10 Image Segmentation. Preview Segmentation subdivides an image into its constituent regions or objects. Level of division depends on the problem.

Illustration

Page 26: Chapter 10 Image Segmentation. Preview Segmentation subdivides an image into its constituent regions or objects. Level of division depends on the problem.

Illustration (cont’d)

Page 27: Chapter 10 Image Segmentation. Preview Segmentation subdivides an image into its constituent regions or objects. Level of division depends on the problem.

Graphic-Theoretic Techniques

Minimal-cost path ),(2

1 i

k

ii nncc

)]()([),( qfpfHqpc

Page 28: Chapter 10 Image Segmentation. Preview Segmentation subdivides an image into its constituent regions or objects. Level of division depends on the problem.

Illustration

Page 29: Chapter 10 Image Segmentation. Preview Segmentation subdivides an image into its constituent regions or objects. Level of division depends on the problem.

Example

Page 30: Chapter 10 Image Segmentation. Preview Segmentation subdivides an image into its constituent regions or objects. Level of division depends on the problem.

ThresholdingFoundation: background point vs. object point The role of illumination: f(x,y)=i(x,y)*r(x,y)Basic global thresholdingAdaptive thresholdingOptimal global and adaptive thresholdingUse of boundary characteristics for histogram improvement and local thresholdingThresholds based on several variables

Page 31: Chapter 10 Image Segmentation. Preview Segmentation subdivides an image into its constituent regions or objects. Level of division depends on the problem.

Foundation

Page 32: Chapter 10 Image Segmentation. Preview Segmentation subdivides an image into its constituent regions or objects. Level of division depends on the problem.

The Role of Illumination

Page 33: Chapter 10 Image Segmentation. Preview Segmentation subdivides an image into its constituent regions or objects. Level of division depends on the problem.

Basic Global Thresholding

Page 34: Chapter 10 Image Segmentation. Preview Segmentation subdivides an image into its constituent regions or objects. Level of division depends on the problem.

Another Example

Page 35: Chapter 10 Image Segmentation. Preview Segmentation subdivides an image into its constituent regions or objects. Level of division depends on the problem.

Basic Adaptive Thresholding

Page 36: Chapter 10 Image Segmentation. Preview Segmentation subdivides an image into its constituent regions or objects. Level of division depends on the problem.

Basic Adaptive Thresholding (cont’d)

Page 37: Chapter 10 Image Segmentation. Preview Segmentation subdivides an image into its constituent regions or objects. Level of division depends on the problem.

Optimal Global and Adaptive Thresholding

Refer to Chapter 2 of the “Pattern Classification” textbook by Duda, Hart and Stork.

Page 38: Chapter 10 Image Segmentation. Preview Segmentation subdivides an image into its constituent regions or objects. Level of division depends on the problem.

Thresholds Based on Several Variables

Page 39: Chapter 10 Image Segmentation. Preview Segmentation subdivides an image into its constituent regions or objects. Level of division depends on the problem.

Region-Based Segmentation

Let R represent the entire image region. We may view segmentation as a process that partitions R into n sub-regions R1, R2, …, Rn such that:

(a)(b) Ri is a connected region(c)(d) P(Ri)= TRUE for i=1,2,…n(e) P(Ri U Rj)= FALSE for i != j

RRn

ii

1

ji RR

Page 40: Chapter 10 Image Segmentation. Preview Segmentation subdivides an image into its constituent regions or objects. Level of division depends on the problem.

Region Growing

Page 41: Chapter 10 Image Segmentation. Preview Segmentation subdivides an image into its constituent regions or objects. Level of division depends on the problem.

Region-Splitting and Merging

Page 42: Chapter 10 Image Segmentation. Preview Segmentation subdivides an image into its constituent regions or objects. Level of division depends on the problem.

Morphological Watersheds (I)

Page 43: Chapter 10 Image Segmentation. Preview Segmentation subdivides an image into its constituent regions or objects. Level of division depends on the problem.

Morphological Watersheds (II)

Page 44: Chapter 10 Image Segmentation. Preview Segmentation subdivides an image into its constituent regions or objects. Level of division depends on the problem.

Motion-based Segmentation (I)

Page 45: Chapter 10 Image Segmentation. Preview Segmentation subdivides an image into its constituent regions or objects. Level of division depends on the problem.

Motion-based Segmentation (II)