Segmentation H. Papasaika, E. Baltsavias Image Segmentation - - PowerPoint PPT Presentation

segmentation
SMART_READER_LITE
LIVE PREVIEW

Segmentation H. Papasaika, E. Baltsavias Image Segmentation - - PowerPoint PPT Presentation

Segmentation H. Papasaika, E. Baltsavias Image Segmentation Partitioning of an image into a set of regions Regions representing meaningful areas of the image, such as crops, urban areas, forests. Various applications in Computer


slide-1
SLIDE 1

Segmentation

  • H. Papasaika, E. Baltsavias
slide-2
SLIDE 2

Image Segmentation Partitioning of an image into a set of regions

 Regions representing

meaningful areas of the image, such as crops, urban areas, forests.

 Various applications in

Computer Vision and Geomatics.

 “What is interesting and

what is not” depends on the application.

slide-3
SLIDE 3

What defines an object?

"I stand at the window and see a house, trees, sky. Theoretically I might say there were 327 brightnesses and nuances of colour. Do I have "327"? No. I have sky, house, and trees." -- Max Wertheimer Max Wertheimer

slide-4
SLIDE 4

Gestalt Theory

 Gestalt theory: psychological theory of vision

emphasizing how relations between visual

  • bjects affects their perception

 Principle of Similarity:

similar elements are seen as a group

Basic image Nearness Color similarity Shape similarity Common behavior

slide-5
SLIDE 5

Image segmentation

Haralick and Shapiro:

 The regions should be uniform

uniform and homogeneous homogeneous with respect to some characteristic such as intensity value, color or texture.

 Region interiors should be simple

simple and without many small holes holes.

 Adjacent regions should have significantly different

different values values with respect to the characteristic on which they are uniform.

 Boundaries of each segment should be simple

simple, not ragged ragged, and must be spatially accurate.

 Achieving all is difficult, and in some cases requiring high-

level knowledge

slide-6
SLIDE 6

Image Segmentation

 Segmentation is based on two basic properties

  • f values (here grey level):

 Discontinuity, i.e. to partition the image based on

abrupt changes in intensity (grey levels), e.g. edges

 Similarity, i.e. to partition the image into similar

(according to predefined criteria) regions

slide-7
SLIDE 7

Edge detection before segmentation

  Edge detection

Edge detection is a useful first step toward image segmentation, but not adequate by itself

 Ideal case:

 Segmentation techniques detecting intensity discontinuities

should yield pixels lying only on edges (or the boundary between regions).

 Real life:

 The detected set of pixels very rarely describes a complete edge

due to effects from: noise, breaks in the edge due to non-uniform illumination, similar object intensities etc.

 Solution (partially):

 Edge-detection techniques are followed by linking and other

boundary detection procedures which assemble edge pixels into meaningful boundaries.

slide-8
SLIDE 8

Edge Detection

slide-9
SLIDE 9

Image Segmentation Techniques

 Histogram Thresholding  Feature Space Clustering  Region-Based Approaches  Edge Detection Approaches

slide-10
SLIDE 10

Image Segmentation Techniques

 Global Methods, e.g.  K-means clustering  Expectation Maximization (E/M)  Local Methods, e.g. Watershed Segmentation Edge-based methods followed by region growing Simple thresholding

slide-11
SLIDE 11

Thresholding

 Light objects in dark

background

 To extract the objects:

 Select a threshold T

that separates the

  • bjects from the

background

 i.e. any (x,y) for which

f(x,y) > T is an object point

slide-12
SLIDE 12

Thresholding

 A more general case of

this approach (multilevel thresholding)

 So: pixel (x,y) belongs:

 To one object if

T1< f(x,y) ≤ T2

 To another if f(x,y) > T2  To another if

f(x,y) ≤ T1

slide-13
SLIDE 13

Thresholding

 A thresholded image:

! " # $ > = T y x f T y x f y x g ) , ( if ) , ( if 1 ) , (

(objects) (background) The chances of selecting a good threshold are increased if the histogram peaks are: Tall Narrow Separated by deep valleys

slide-14
SLIDE 14

Thresholding

 When T depends only on f(x,y)

 global threshold

 When T depends on both f(x,y) and local regions

 local threshold

 When T depends on x and y (in addition)

 dynamic threshold

slide-15
SLIDE 15

Simple Global Thresholding

 To partition the image histogram by using a

single threshold T

 Then the image is scanned and labels are

assigned

 This technique is successful in highly controlled

environments

 Incorrect in some regions

slide-16
SLIDE 16

Local thresholds

 Divide image into regions  Compute threshold per region  Merge thresholds across region

boundaries

slide-17
SLIDE 17

Image Segmentation by Global Thresholding

slide-18
SLIDE 18

Image Segmentation by Iterative Thresholding

slide-19
SLIDE 19

Image Segmentation by Adaptive Thresholding

slide-20
SLIDE 20

Thresholds Based on Several Variables

 When a sensor makes available more than one

variable to characterize each pixel in an image (e.g. color imaging, RGB)

 Each pixel is characterized by 3 values, and the

histogram becomes 3D. So thresholding now is concerned with finding clusters of points in 3D space.

slide-21
SLIDE 21
slide-22
SLIDE 22

Clustering

 They involve algorithms that examine the

pixels in an image and aggregate them into a number of classes based on the clusters present in the pixel values.

 Identify connected groups of pixels in the

image (difference to classification! where multiple disconnected segments may belong to the same class)

slide-23
SLIDE 23

Simple Clustering Methods

Two approaches:

 Agglomerative clustering

 attach pixel to its closest cluster  repeat

 Divisive clustering

 split cluster along “best” boundary  repeat

slide-24
SLIDE 24
slide-25
SLIDE 25

K-means Algorithm

 Choose k pixels to act as cluster (class) centers  Until the clustering is satisfactory (iterations)

 Assign each pixel to the cluster that has the nearest

cluster center

 Replace the cluster centers with the means of the

pixels in the clusters and continue iterations until cluster centers do not change significantly

slide-26
SLIDE 26
slide-27
SLIDE 27

K-means clustering using intensity alone and color alone

Image Clusters on intensity Clusters on color

slide-28
SLIDE 28

Advantages and Disadvantages

 Similarity measures can be chosen for the

problem at hand

Similarity according to intensity Similarity in color Similarity in texture Similarity in geometry

 No good method of choosing similarity

measures and merging criteria

slide-29
SLIDE 29

– –Ri is a connected region, i = 1, 2, …, n –Ri ∩ Rj = 0 for all i and j, i≠j –P(Ri) = TRUE for i = 1, 2, …, n –P(Ri ⋃ Rj) = FALSE for i≠j

Region-Oriented Segmentation

 Segmentation is a process that partitions

R into n subregions R1, R2, …, Rn such that:

R R

n i i = =

U

1

P(Ri): logical predicate

slide-30
SLIDE 30

Region Growing by Pixel Aggregation

 Start with a set of “seed” points and from

these grow regions by appending to each seed point those neighboring pixels that have similar properties (e.g. grey value)

slide-31
SLIDE 31

Region Growing by Pixel Aggregation

 Problems:

Seed selection Selection of suitable statistical criteria for

including points in the various regions

 Sequence of processing  Selection of homogeneity criterion  Local vs. general criteria

slide-32
SLIDE 32
slide-33
SLIDE 33
slide-34
SLIDE 34

Region Splitting and Merging

 Subdivide an image initially into a set of

arbitrary, disjointed regions and then merge and/or split the regions in an attempt to satisfy the conditions of region-

  • riented segmentation

 Quadtree-based algorithm

slide-35
SLIDE 35
slide-36
SLIDE 36
slide-37
SLIDE 37
slide-38
SLIDE 38

Recursive Merging

 If adjacent regions are

weakly split

 weak edge, depending on defined criteria

similar

 similar greyscale/colour properties

 Merge them

slide-39
SLIDE 39
slide-40
SLIDE 40
slide-41
SLIDE 41

Expectation Maximization

  Represent each pixel in a 1D

[luminance] or 3D [luminance,x,y] vector space.

 Assume a fixed number k of

  • segments. Each segment is

assumed to be a Gaussian cluster in this vector space.

 Assume k initial centers and

covariances of clusters in this space.

  Assign pixel i to cluster j with

weights corresponding to p(i|j).

 Re-estimate the mean,

covariances of the clusters.

 Loop steps 4, 5.

slide-42
SLIDE 42

Morphological Segmentation

  • Smoothing
  • Marker Extraction: (simplest markers are the

regional minima of the gradient image)

  • Watershed Transformation:

Flooding of the image gradient from pre-selected sources (waves emanate from set of markers)

The set of markers is grown until the exact contours of the objects are found at points where emanating waves meet (segmentation boundaries) Advantages : Robustness, Marker-based Flexibility Usage: Interactive and Automated Segmentation

slide-43
SLIDE 43

Watershed Segmentation Algorithm

 Visualize an image in 3D: spatial coordinates and gray levels.  In such a topographic interpretation, there are 3 types of points:

 Points belonging to a regional minimum  Points at which a drop of water would fall to a single minimum

(The catchment basin or watershed of that minimum)

 Points at which a drop of water would be equally likely to fall

to more than one minimum. (The divide lines or watershed lines.)

Watershed lines

slide-44
SLIDE 44

Watershed Segmentation Algorithm

 The objective is to find watershed lines  The idea is simple:

 Suppose that a hole is punched in each regional minimum and that

the entire topography is flooded from below by letting water rise through the holes at a uniform rate.

 When rising water in distinct catchment basins is about to merge, a

dam is built to prevent merging. These dam boundaries correspond to the watershed lines = segment boundaries

slide-45
SLIDE 45

Example 1

Watershed Transform of Binary Image

A: Original image B: Negative of image A C: Distance transform of B D: Watershed transform of C

A B C D

Distance transform of a binary image is defined by the distance of every pixel to the nearest non-zero valued pixel

A: Original binary image C: Distance transform

slide-46
SLIDE 46

Example 1

Watershed Transform of Binary Image

slide-47
SLIDE 47

Example 2

a: Original image b: Gradient image of image a c: Watershed lines obtained from image b (oversegmentation)  Each connected region contains one local minimum in the corresponding gradient image d: Watershed lines obtained from smoothed image b (due to smoothing no

  • versegmentation)

a b c d

slide-48
SLIDE 48

The Oversegmentation Problem

Watershed transform produces too many

regions

One per local minimum Especially in noisy or highly detailed data

To alleviate oversegmentation

✔ Hierarchical approach – merge adjacent regions

according to increasing watershed depth

slide-49
SLIDE 49

Change Detection Approaches

Image T2 Preprocessed Image T2 Image T1 Preprocessed Image T1 Multiresolution Segmentation into Image objects Classification of changed objects Based on features from T1 and T2 Land Cover/ Land Use Change Maps

slide-50
SLIDE 50

Feature Extraction Technique

Image Processing Image Segmentation Impervious Surface Extraction Feature Extraction Attribution

Pan Sharpening Ortho Rectification eCognition Segmentation Fuzzy Logic Classification and Manual Cleanup Object Fusion to Create Features

  • f Interest to the

customer Attribution of Polygons in ArcGIS

slide-51
SLIDE 51

Image Segmentation

QuickbirdB, 2 feet GSD Before Segmentation After Segmentation After Segmentation With Object Boundaries

slide-52
SLIDE 52

Segmentation to detect impervious surfaces

slide-53
SLIDE 53

QuickBird Imagery 2 feet GSD Impervious Surface Feature Extraction

slide-54
SLIDE 54

Segmentation of biomedical image (seeds and segments)

slide-55
SLIDE 55

Coarse segmentation of image QuickBird satellite image 3.6 km

  • Nov. 4, 2004

61 cm GSD

slide-56
SLIDE 56

350 m

Sensitivity of segmentation to used parameters (undersegmenation left,

  • versegmentation right)
slide-57
SLIDE 57

Segmentation example: Glacier

slide-58
SLIDE 58

Segmentation example: Agricultural fields

slide-59
SLIDE 59

Segmentation example: Agricultural fields

slide-60
SLIDE 60
slide-61
SLIDE 61

References

 http://cmm.ensmp.fr/~beucher/wtshed.html  http://www.umiacs.umd.edu/research/EXPAR/papers/

3449/node6.html

 http://techtransfer.gsfc.nasa.gov/downloads/EUSC-

ESA-Seminar.pdf

 http://homepages.inf.ed.ac.uk/rbf/CVonline/LOCAL_C

OPIES/FREIXENET1/node1.html

 http://www.owlnet.rice.edu/~elec539/Projects97/WDE

Know/introduce.html

 http://civs.stat.ucla.edu/Segmentation/Segment.htm