78
Segmentation and Perceptual Grouping The problem Gestalt Edge extraction: grouping and completion Image segmentation

Segmentation and Perceptual Grouping The problem Gestalt Edge extraction: grouping and completion Image segmentation

  • View
    218

  • Download
    1

Embed Size (px)

Citation preview

Page 1: Segmentation and Perceptual Grouping The problem Gestalt Edge extraction: grouping and completion Image segmentation

Segmentation and Perceptual Grouping The problem Gestalt Edge extraction: grouping and completion Image segmentation

Page 2: Segmentation and Perceptual Grouping The problem Gestalt Edge extraction: grouping and completion Image segmentation
Page 3: Segmentation and Perceptual Grouping The problem Gestalt Edge extraction: grouping and completion Image segmentation

Camouflage

Page 4: Segmentation and Perceptual Grouping The problem Gestalt Edge extraction: grouping and completion Image segmentation
Page 5: Segmentation and Perceptual Grouping The problem Gestalt Edge extraction: grouping and completion Image segmentation
Page 6: Segmentation and Perceptual Grouping The problem Gestalt Edge extraction: grouping and completion Image segmentation
Page 7: Segmentation and Perceptual Grouping The problem Gestalt Edge extraction: grouping and completion Image segmentation
Page 8: Segmentation and Perceptual Grouping The problem Gestalt Edge extraction: grouping and completion Image segmentation
Page 9: Segmentation and Perceptual Grouping The problem Gestalt Edge extraction: grouping and completion Image segmentation
Page 10: Segmentation and Perceptual Grouping The problem Gestalt Edge extraction: grouping and completion Image segmentation

Kanizsa Triangle

Page 11: Segmentation and Perceptual Grouping The problem Gestalt Edge extraction: grouping and completion Image segmentation
Page 12: Segmentation and Perceptual Grouping The problem Gestalt Edge extraction: grouping and completion Image segmentation
Page 13: Segmentation and Perceptual Grouping The problem Gestalt Edge extraction: grouping and completion Image segmentation
Page 14: Segmentation and Perceptual Grouping The problem Gestalt Edge extraction: grouping and completion Image segmentation
Page 15: Segmentation and Perceptual Grouping The problem Gestalt Edge extraction: grouping and completion Image segmentation
Page 16: Segmentation and Perceptual Grouping The problem Gestalt Edge extraction: grouping and completion Image segmentation

The image of this cube contradicts the optical image

Page 17: Segmentation and Perceptual Grouping The problem Gestalt Edge extraction: grouping and completion Image segmentation

Perceptual Organization

Atomism, reductionism: Perception is a process of decomposing an

image into its parts. The whole is equal to the sum of its parts.

Gestalt (Wertheimer, Köhler, Koffka 1912) The whole is larger than the sum of its parts.

Page 18: Segmentation and Perceptual Grouping The problem Gestalt Edge extraction: grouping and completion Image segmentation

Mona Lisa

Page 19: Segmentation and Perceptual Grouping The problem Gestalt Edge extraction: grouping and completion Image segmentation

Mona Lisa

Page 20: Segmentation and Perceptual Grouping The problem Gestalt Edge extraction: grouping and completion Image segmentation

Gestalt Principles

Proximity

Page 21: Segmentation and Perceptual Grouping The problem Gestalt Edge extraction: grouping and completion Image segmentation

Gestalt Principles

Proximity Similarity

Page 22: Segmentation and Perceptual Grouping The problem Gestalt Edge extraction: grouping and completion Image segmentation

Gestalt Principles

Proximity Similarity Continuity

Page 23: Segmentation and Perceptual Grouping The problem Gestalt Edge extraction: grouping and completion Image segmentation

Gestalt Principles

Closure Proximity Similarity Continuity

Page 24: Segmentation and Perceptual Grouping The problem Gestalt Edge extraction: grouping and completion Image segmentation

Gestalt Principles

Proximity Similarity Continuity

Closure Common Fate

Page 25: Segmentation and Perceptual Grouping The problem Gestalt Edge extraction: grouping and completion Image segmentation

Gestalt Principles

Proximity Similarity Continuity

Closure Common Fate Simplicity

Page 26: Segmentation and Perceptual Grouping The problem Gestalt Edge extraction: grouping and completion Image segmentation

Smooth Completion

Isotropic Smoothness Minimal curvature Extensibility

Page 27: Segmentation and Perceptual Grouping The problem Gestalt Edge extraction: grouping and completion Image segmentation

Elastica

Elastica is not scale invariant

2( ) min ( )E k s ds

,

1( ) ( )

kl l k

E E

Page 28: Segmentation and Perceptual Grouping The problem Gestalt Edge extraction: grouping and completion Image segmentation

Elastica

Scale invariant measure

Approximation

2 21 2 1 2( ) 4( )iE

2( ) min ( )iE l k s ds

1 2

Page 29: Segmentation and Perceptual Grouping The problem Gestalt Edge extraction: grouping and completion Image segmentation
Page 30: Segmentation and Perceptual Grouping The problem Gestalt Edge extraction: grouping and completion Image segmentation

Finding lines from points

Page 31: Segmentation and Perceptual Grouping The problem Gestalt Edge extraction: grouping and completion Image segmentation

Parametric methods: RANSAC

Page 32: Segmentation and Perceptual Grouping The problem Gestalt Edge extraction: grouping and completion Image segmentation

RANSAC

RANdom SAmple Concensus Complexity:

Need to go over all pairs: O(n2) For each pair check how many more points are

consistent: O(n) Total complexity: O(n3 )

Page 33: Segmentation and Perceptual Grouping The problem Gestalt Edge extraction: grouping and completion Image segmentation

RANSAC

Another application of RANSAC: Find transformation between images

Example: compute homography Compute homography for every 4 pairs of

corresponding points Choose the homography that best explains the

image m4n4 sets should be tested

Another example: compute epipolar lines How many correspondences are needed?

Page 34: Segmentation and Perceptual Grouping The problem Gestalt Edge extraction: grouping and completion Image segmentation

Hough Transform

Page 35: Segmentation and Perceptual Grouping The problem Gestalt Edge extraction: grouping and completion Image segmentation

Hough Transform

Linear in the number of points Describe lines as

Or better

Prepare a 2D table

y mx n

cos sinx y c

θ

c

Page 36: Segmentation and Perceptual Grouping The problem Gestalt Edge extraction: grouping and completion Image segmentation

Hough Transform

θ

c

+1+1

+1+1

+1

Page 37: Segmentation and Perceptual Grouping The problem Gestalt Edge extraction: grouping and completion Image segmentation

Hough Transform

θ

c

1316

What if we want to find circles?

Page 38: Segmentation and Perceptual Grouping The problem Gestalt Edge extraction: grouping and completion Image segmentation

Curve Salience

Page 39: Segmentation and Perceptual Grouping The problem Gestalt Edge extraction: grouping and completion Image segmentation

Saliency Network

Encourage Length Low curvature Closure

Page 40: Segmentation and Perceptual Grouping The problem Gestalt Edge extraction: grouping and completion Image segmentation

Saliency Network

Page 41: Segmentation and Perceptual Grouping The problem Gestalt Edge extraction: grouping and completion Image segmentation

Tensor Voting

Every edge element votes to all its circular edge completions

Vote attenuates with distance: e-αd

Vote attenuates with curvature: e-βk

Determine salience at every point using principal moments

Page 42: Segmentation and Perceptual Grouping The problem Gestalt Edge extraction: grouping and completion Image segmentation

Tensor Voting

Page 43: Segmentation and Perceptual Grouping The problem Gestalt Edge extraction: grouping and completion Image segmentation

Stochastic Completion Field

Random walk:

In addition, a particle may die with probability:

2

cos

sin

(0, )

x

y

N

1/ re

Page 44: Segmentation and Perceptual Grouping The problem Gestalt Edge extraction: grouping and completion Image segmentation

Stochastic Completion Fields

Page 45: Segmentation and Perceptual Grouping The problem Gestalt Edge extraction: grouping and completion Image segmentation

Stochastic Completion Fields

Most probable path:

with

Can be implemented as a convolution

2

2

( )

1

21log( 2 )

k s ds ds

r

Page 46: Segmentation and Perceptual Grouping The problem Gestalt Edge extraction: grouping and completion Image segmentation

Stochastic Completion Fields

Page 47: Segmentation and Perceptual Grouping The problem Gestalt Edge extraction: grouping and completion Image segmentation

Stochastic Completion Fields

Page 48: Segmentation and Perceptual Grouping The problem Gestalt Edge extraction: grouping and completion Image segmentation

Snakes

Given a curve Г(s)=(x(s),y(s)), define:

with

1

0

image int ext

image

22 2

int 2

ext

( ( ))

( ( ))

( , )

( ) ( )

...

E s ds

E s E E E

E I x y

E s ss s

E

Page 49: Segmentation and Perceptual Grouping The problem Gestalt Edge extraction: grouping and completion Image segmentation

Extremum: Calculus of Variation Given a functional

A condition for a local extrimum is obtained using the Euler-Lagrange equation

Curve evolution is defined

Solution obtained when

( , )0

x s t E d E

t x ds x

0

( )

x E d E

x s x ds x

0

( , )T

x s E x x ds

( , )0

x s t

t

Page 50: Segmentation and Perceptual Grouping The problem Gestalt Edge extraction: grouping and completion Image segmentation

Curve evolution

Page 51: Segmentation and Perceptual Grouping The problem Gestalt Edge extraction: grouping and completion Image segmentation

Level Set Methods

( , ; )S x y t

( , ; ) 0S x y t Curve defined implicitlyby

Page 52: Segmentation and Perceptual Grouping The problem Gestalt Edge extraction: grouping and completion Image segmentation

Curve Evolution

Page 53: Segmentation and Perceptual Grouping The problem Gestalt Edge extraction: grouping and completion Image segmentation

Curve Evolution

Page 54: Segmentation and Perceptual Grouping The problem Gestalt Edge extraction: grouping and completion Image segmentation

Shortest Path

Page 55: Segmentation and Perceptual Grouping The problem Gestalt Edge extraction: grouping and completion Image segmentation

Image Segmentation: Thresholding

Page 56: Segmentation and Perceptual Grouping The problem Gestalt Edge extraction: grouping and completion Image segmentation

Histogram

0 50 100 150 200 250

0

200

400

600

800

1000

1200

Page 57: Segmentation and Perceptual Grouping The problem Gestalt Edge extraction: grouping and completion Image segmentation

Thresholding

Page 58: Segmentation and Perceptual Grouping The problem Gestalt Edge extraction: grouping and completion Image segmentation

Thresholding

125

15699

Page 59: Segmentation and Perceptual Grouping The problem Gestalt Edge extraction: grouping and completion Image segmentation

S-T Min-Cut/Max Flow

Page 60: Segmentation and Perceptual Grouping The problem Gestalt Edge extraction: grouping and completion Image segmentation

S-T Min-Cut/Max Flow

S

t

Page 61: Segmentation and Perceptual Grouping The problem Gestalt Edge extraction: grouping and completion Image segmentation

Normalized Cuts

Given a graph G=(V,E), define W = {wij} weights

D = diag{di},

L = D - W Laplacian

Let , we seek to solve

( , ) ( , )

( , ) ( , )minV A B

cut A B cut A B

assoc A V assoc B V

i ijj

d w

V A B

Page 62: Segmentation and Perceptual Grouping The problem Gestalt Edge extraction: grouping and completion Image segmentation

Normalized Cuts

This can be show to be equivalent to

with

With these constrains the problem is NP-hard. Without the constraint the solution is obtained

through the generalized eigenvalue problem

minT

Tu

u Lu

u Du

Lu Du

1and 1 0

1

iT

ii

v Au u Dk

v Bk

Page 63: Segmentation and Perceptual Grouping The problem Gestalt Edge extraction: grouping and completion Image segmentation

Normalized Cuts

Dividing into two segments: Partition determined by the eigenvector with the

second smallest eigenvalue We need to pick a threshold

Dividing into more than two segments: Pick several thresholds. Divide each segment recursively. Pick the best few eigenvectors and then perform

k-means.

Page 64: Segmentation and Perceptual Grouping The problem Gestalt Edge extraction: grouping and completion Image segmentation

Texture Examples

Page 65: Segmentation and Perceptual Grouping The problem Gestalt Edge extraction: grouping and completion Image segmentation

Filter Bank

Page 66: Segmentation and Perceptual Grouping The problem Gestalt Edge extraction: grouping and completion Image segmentation

Textons

image textons

textonassignment

Page 67: Segmentation and Perceptual Grouping The problem Gestalt Edge extraction: grouping and completion Image segmentation

Normalized Cuts

Page 68: Segmentation and Perceptual Grouping The problem Gestalt Edge extraction: grouping and completion Image segmentation

Mean Shift Segmentation

Page 69: Segmentation and Perceptual Grouping The problem Gestalt Edge extraction: grouping and completion Image segmentation

Mean Shift Segmentation

Given an image, convert it to a function that is inversely related to edgeness

Perform mean shift from every pixel Cluster pixels that lead to the same peak

Page 70: Segmentation and Perceptual Grouping The problem Gestalt Edge extraction: grouping and completion Image segmentation

Mean Shift Segmentation

Page 71: Segmentation and Perceptual Grouping The problem Gestalt Edge extraction: grouping and completion Image segmentation

Summary

Local processing is often insufficient to separate objects

We reviewed several approaches for curve extraction, completion region segmentation

Page 72: Segmentation and Perceptual Grouping The problem Gestalt Edge extraction: grouping and completion Image segmentation

Preattentive: Parallel

Page 73: Segmentation and Perceptual Grouping The problem Gestalt Edge extraction: grouping and completion Image segmentation

Preattentive: Parallel

Page 74: Segmentation and Perceptual Grouping The problem Gestalt Edge extraction: grouping and completion Image segmentation

Attention: Serial

Page 75: Segmentation and Perceptual Grouping The problem Gestalt Edge extraction: grouping and completion Image segmentation
Page 76: Segmentation and Perceptual Grouping The problem Gestalt Edge extraction: grouping and completion Image segmentation
Page 77: Segmentation and Perceptual Grouping The problem Gestalt Edge extraction: grouping and completion Image segmentation
Page 78: Segmentation and Perceptual Grouping The problem Gestalt Edge extraction: grouping and completion Image segmentation