31
1 of 20 The Segmentation Problem Segmentation attempts to partition the pixels of an image into groups that strongly correlate with the objects in an image Typically the first step in any automated computer vision application

1 of 20 The Segmentation Problem Segmentation attempts to partition the pixels of an image into groups that strongly correlate with the objects in an image

  • View
    222

  • Download
    0

Embed Size (px)

Citation preview

Page 1: 1 of 20 The Segmentation Problem Segmentation attempts to partition the pixels of an image into groups that strongly correlate with the objects in an image

1of20

The Segmentation Problem

Segmentation attempts to partition the pixels of an image into groups that strongly correlate with the objects in an image

Typically the first step in any automated computer vision application

Page 2: 1 of 20 The Segmentation Problem Segmentation attempts to partition the pixels of an image into groups that strongly correlate with the objects in an image

2of20

Bahadir K. Gunturk EE 7730 - Image Analysis I

2

Image Segmentation

Group similar components (such as, pixels in an image, image frames in a video) to obtain a compact representation.

Applications: Finding tumors, veins, etc. in medical images, finding targets in satellite/aerial images, finding people in surveillance images, summarizing video, etc.

Methods: Thresholding, region growing, k-means.

Page 3: 1 of 20 The Segmentation Problem Segmentation attempts to partition the pixels of an image into groups that strongly correlate with the objects in an image

3of20

Bahadir K. Gunturk EE 7730 - Image Analysis I

3

Image Segmentation

Segmentation algorithms for monochrome images generally are based on one of two basic properties of gray-scale values:

Discontinuity The approach is to partition an image based on abrupt changes

in gray-scale levels. The principal areas of interest within this category are detection

of isolated points, lines, and edges in an image. Similarity

The principal approaches in this category are based on thresholding, region growing, and region splitting/merging.

Page 4: 1 of 20 The Segmentation Problem Segmentation attempts to partition the pixels of an image into groups that strongly correlate with the objects in an image

4of20

Segmentation ExamplesIm

ag

es

take

n f

rom

Go

nza

lez

& W

oo

ds,

Dig

ital I

ma

ge

Pro

cess

ing

(2

00

2)

Page 5: 1 of 20 The Segmentation Problem Segmentation attempts to partition the pixels of an image into groups that strongly correlate with the objects in an image

5of20

Detection Of Discontinuities

There are three basic types of grey level discontinuities that we tend to look for in digital images:

– Points– Lines– Edges

We typically find discontinuities using masks and correlation

Page 6: 1 of 20 The Segmentation Problem Segmentation attempts to partition the pixels of an image into groups that strongly correlate with the objects in an image

6of20

Point Detection

Point detection can be achieved simply using the mask below:

Points are detected at those pixels in the subsequent filtered image that are above a set threshold

Ima

ge

s ta

ken

fro

m G

on

zale

z &

Wo

od

s, D

igita

l Im

ag

e P

roce

ssin

g (

20

02

)

Page 7: 1 of 20 The Segmentation Problem Segmentation attempts to partition the pixels of an image into groups that strongly correlate with the objects in an image

7of20

Point Detection (cont…)Im

ag

es

take

n f

rom

Go

nza

lez

& W

oo

ds,

Dig

ital I

ma

ge

Pro

cess

ing

(2

00

2)

X-ray image of a turbine blade

Result of point detection

Result of thresholding

Page 8: 1 of 20 The Segmentation Problem Segmentation attempts to partition the pixels of an image into groups that strongly correlate with the objects in an image

8of20

Line Detection

The next level of complexity is to try to detect lines

The masks below will extract lines that are one pixel thick and running in a particular direction

Ima

ge

s ta

ken

fro

m G

on

zale

z &

Wo

od

s, D

igita

l Im

ag

e P

roce

ssin

g (

20

02

)

Page 9: 1 of 20 The Segmentation Problem Segmentation attempts to partition the pixels of an image into groups that strongly correlate with the objects in an image

9of20

Line Detection (cont…)Im

ag

es

take

n f

rom

Go

nza

lez

& W

oo

ds,

Dig

ital I

ma

ge

Pro

cess

ing

(2

00

2)

Binary image of a wire bond mask

After processing

with -45° line detector

Result of thresholding filtering result

Page 10: 1 of 20 The Segmentation Problem Segmentation attempts to partition the pixels of an image into groups that strongly correlate with the objects in an image

10of20

Edge Detection

An edge is a set of connected pixels that lie on the boundary between two regions

Ima

ge

s ta

ken

fro

m G

on

zale

z &

Wo

od

s, D

igita

l Im

ag

e P

roce

ssin

g (

20

02

)

Page 11: 1 of 20 The Segmentation Problem Segmentation attempts to partition the pixels of an image into groups that strongly correlate with the objects in an image

11of20

Edges & Derivatives

We have already spokenabout how derivatives are used to find discontinuities

1st derivative tells us where an edge is

2nd derivative canbe used to show edge direction

Ima

ge

s ta

ken

fro

m G

on

zale

z &

Wo

od

s, D

igita

l Im

ag

e P

roce

ssin

g (

20

02

)

Page 12: 1 of 20 The Segmentation Problem Segmentation attempts to partition the pixels of an image into groups that strongly correlate with the objects in an image

12of20

Derivatives & Noise

Derivative based edge detectors are extremely sensitive to noise

We need to keep this in mind

Ima

ge

s ta

ken

fro

m G

on

zale

z &

Wo

od

s, D

igita

l Im

ag

e P

roce

ssin

g (

20

02

)

Page 13: 1 of 20 The Segmentation Problem Segmentation attempts to partition the pixels of an image into groups that strongly correlate with the objects in an image

13of20

Common Edge Detectors

Given a 3*3 region of an image the following edge detection filters can be used

Ima

ge

s ta

ken

fro

m G

on

zale

z &

Wo

od

s, D

igita

l Im

ag

e P

roce

ssin

g (

20

02

)

Page 14: 1 of 20 The Segmentation Problem Segmentation attempts to partition the pixels of an image into groups that strongly correlate with the objects in an image

14of20

Edge Detection ExampleIm

ag

es

take

n f

rom

Go

nza

lez

& W

oo

ds,

Dig

ital I

ma

ge

Pro

cess

ing

(2

00

2)

Original Image Horizontal Gradient Component

Vertical Gradient Component Combined Edge Image

Page 15: 1 of 20 The Segmentation Problem Segmentation attempts to partition the pixels of an image into groups that strongly correlate with the objects in an image

15of20

Edge Detection Problems

Often, problems arise in edge detection in that there are is too much detail

For example, the brickwork in the previous example

One way to overcome this is to smooth images prior to edge detection

Page 16: 1 of 20 The Segmentation Problem Segmentation attempts to partition the pixels of an image into groups that strongly correlate with the objects in an image

16of20

Edge Detection Example With Smoothing

Ima

ge

s ta

ken

fro

m G

on

zale

z &

Wo

od

s, D

igita

l Im

ag

e P

roce

ssin

g (

20

02

)

Original Image Horizontal Gradient Component

Vertical Gradient Component Combined Edge Image

Page 17: 1 of 20 The Segmentation Problem Segmentation attempts to partition the pixels of an image into groups that strongly correlate with the objects in an image

17of20

Laplacian Edge Detection

We encountered the 2nd-order derivative based Laplacian filter already

The Laplacian is typically not used by itself as it is too sensitive to noiseUsually then used for edge detection the Laplacian is combined with a smoothing Gaussian filter

Ima

ge

s ta

ken

fro

m G

on

zale

z &

Wo

od

s, D

igita

l Im

ag

e P

roce

ssin

g (

20

02

)

Page 18: 1 of 20 The Segmentation Problem Segmentation attempts to partition the pixels of an image into groups that strongly correlate with the objects in an image

18of20

Laplacian Of Gaussian

The Laplacian of Gaussian (or Mexican hat) filter uses the Gaussian for noise removal and the Laplacian for edge detection

Ima

ge

s ta

ken

fro

m G

on

zale

z &

Wo

od

s, D

igita

l Im

ag

e P

roce

ssin

g (

20

02

)

Page 19: 1 of 20 The Segmentation Problem Segmentation attempts to partition the pixels of an image into groups that strongly correlate with the objects in an image

19of20

Laplacian Of Gaussian ExampleIm

ag

es

take

n f

rom

Go

nza

lez

& W

oo

ds,

Dig

ital I

ma

ge

Pro

cess

ing

(2

00

2)

Page 20: 1 of 20 The Segmentation Problem Segmentation attempts to partition the pixels of an image into groups that strongly correlate with the objects in an image

20of20

Edge Linking and Boundary Detection

• Local Processing

• Global Processing

• Graph-Theoretic Techniques

Page 21: 1 of 20 The Segmentation Problem Segmentation attempts to partition the pixels of an image into groups that strongly correlate with the objects in an image

21of20

Local Processing

• Edge Linking using gradient and gradient direction.

Page 22: 1 of 20 The Segmentation Problem Segmentation attempts to partition the pixels of an image into groups that strongly correlate with the objects in an image

22of20

Page 23: 1 of 20 The Segmentation Problem Segmentation attempts to partition the pixels of an image into groups that strongly correlate with the objects in an image

23of20

Page 24: 1 of 20 The Segmentation Problem Segmentation attempts to partition the pixels of an image into groups that strongly correlate with the objects in an image

24of20

Graph-Theoretic Techniques

Page 25: 1 of 20 The Segmentation Problem Segmentation attempts to partition the pixels of an image into groups that strongly correlate with the objects in an image

25of20

Page 26: 1 of 20 The Segmentation Problem Segmentation attempts to partition the pixels of an image into groups that strongly correlate with the objects in an image

26of20

Page 27: 1 of 20 The Segmentation Problem Segmentation attempts to partition the pixels of an image into groups that strongly correlate with the objects in an image

27of20

Page 28: 1 of 20 The Segmentation Problem Segmentation attempts to partition the pixels of an image into groups that strongly correlate with the objects in an image

28of20

Page 29: 1 of 20 The Segmentation Problem Segmentation attempts to partition the pixels of an image into groups that strongly correlate with the objects in an image

29of20

Page 30: 1 of 20 The Segmentation Problem Segmentation attempts to partition the pixels of an image into groups that strongly correlate with the objects in an image

30of20

Page 31: 1 of 20 The Segmentation Problem Segmentation attempts to partition the pixels of an image into groups that strongly correlate with the objects in an image

31of20