chapter 10, part iv. definitions: ◦ let m 1, m 2 ….m r be sets denoting the coordinates of the...

22
Chapter 10, Part IV

Upload: melanie-oconnor

Post on 11-Jan-2016

216 views

Category:

Documents


2 download

TRANSCRIPT

Page 1: Chapter 10, Part IV.  Definitions: ◦ Let M 1, M 2 ….M R be sets denoting the coordinates of the points in the regional. ◦ Let C(M i ) be a set denoting

Chapter 10, Part IV

Page 2: Chapter 10, Part IV.  Definitions: ◦ Let M 1, M 2 ….M R be sets denoting the coordinates of the points in the regional. ◦ Let C(M i ) be a set denoting

Definitions:◦ Let M1, M2 ….MR be sets denoting the coordinates

of the points in the regional.◦ Let C(Mi) be a set denoting the coordinates of the

points in the catchment basin associated with regional minimum Mi .

M1 M2

M3

C(M1)C(M2)

C(M3)

Page 3: Chapter 10, Part IV.  Definitions: ◦ Let M 1, M 2 ….M R be sets denoting the coordinates of the points in the regional. ◦ Let C(M i ) be a set denoting

◦ Let T[n] represent the set of coordinates (s, t) for which g(s,t)<n. i.e., T[n]={(g,s)|g(s,t)<n}

The topology will be flooded in integer flood increments from n=min+1 to n=max +1.

T [n], n = 1

Page 4: Chapter 10, Part IV.  Definitions: ◦ Let M 1, M 2 ….M R be sets denoting the coordinates of the points in the regional. ◦ Let C(M i ) be a set denoting

◦ Let Cn(Mi) denote the set of coordinates of points in the catchment basin associated with Mi that are flooded at stage n.

◦ Let C[n] denote the union of the flooded catchment basins portion at stage n as:

R

iin MCnC

1

)(][

C1(M1)C1(M2)

C1(M3)

C[1]={C1(M1), C1(M2), C1(M3)}

Page 5: Chapter 10, Part IV.  Definitions: ◦ Let M 1, M 2 ….M R be sets denoting the coordinates of the points in the regional. ◦ Let C(M i ) be a set denoting

◦ Let Q[n] denote the set of connected components in T[n].

Q[1] = {Q1, Q2, Q3}

Q1 Q2

Q3

Page 6: Chapter 10, Part IV.  Definitions: ◦ Let M 1, M 2 ….M R be sets denoting the coordinates of the points in the regional. ◦ Let C(M i ) be a set denoting

Obtain C[n] from C[n-1] as follows:◦ For each q Q[n], consider p = qC[n-1]. If

(a) p is empty : a new minimum is encountered. Add q into C[n-1] to form C[n].

Q[1] = {Q1, Q2, Q3}

Q1 Q2

Q3

Q4 is a new catchment basin. Add Q4 to C[2].

Q1 Q2

Q3 Q4

Q[2] = {Q1, Q2, Q3, Q4}

Page 7: Chapter 10, Part IV.  Definitions: ◦ Let M 1, M 2 ….M R be sets denoting the coordinates of the points in the regional. ◦ Let C(M i ) be a set denoting

(b) p contains one connected component: q lies within the catchment basin of some regional minimum. Add q into C[n-1] to form C[n]

Q[1] = {Q1, Q2, Q3}

Q1 Q2

Q3

Q1, Q2, Q3 belong to existing catchment basins. Add Q1, Q2, Q3 to C[2].

Q1 Q2

Q3 Q4

Q[2] = {Q1, Q2, Q3, Q4}

Page 8: Chapter 10, Part IV.  Definitions: ◦ Let M 1, M 2 ….M R be sets denoting the coordinates of the points in the regional. ◦ Let C(M i ) be a set denoting

(c) p contains more than one component: Flooding would cause water level in these catchment basin to merge. Therefore, a dam must built within q by dilating of p.

C[n-1] C[n] A region in C[n] more than one component

Page 9: Chapter 10, Part IV.  Definitions: ◦ Let M 1, M 2 ….M R be sets denoting the coordinates of the points in the regional. ◦ Let C(M i ) be a set denoting

Dilate each region by the structure element.

◦ The dilation has to be constrained to q.

Second dilationFirst dilation

Page 10: Chapter 10, Part IV.  Definitions: ◦ Let M 1, M 2 ….M R be sets denoting the coordinates of the points in the regional. ◦ Let C(M i ) be a set denoting

◦ When the dilation is performed on points and result to merge, mark the point as one of dam points.

Page 11: Chapter 10, Part IV.  Definitions: ◦ Let M 1, M 2 ….M R be sets denoting the coordinates of the points in the regional. ◦ Let C(M i ) be a set denoting

Illustration of Dam ConstructionIllustration of Dam Construction

Page 12: Chapter 10, Part IV.  Definitions: ◦ Let M 1, M 2 ….M R be sets denoting the coordinates of the points in the regional. ◦ Let C(M i ) be a set denoting

Illustration of Morphological WatershedIllustration of Morphological Watershed

Page 13: Chapter 10, Part IV.  Definitions: ◦ Let M 1, M 2 ….M R be sets denoting the coordinates of the points in the regional. ◦ Let C(M i ) be a set denoting

Motion is a powerful cue used by human to extract objects from a background.

The detection in motion pictures is important in systems like robotic applications, autonomous navigation, and dynamic scene analysis.

Detection methods can be classified into two categories:Spatial techniques. ◦ Detection in frequency domain.

Page 14: Chapter 10, Part IV.  Definitions: ◦ Let M 1, M 2 ….M R be sets denoting the coordinates of the points in the regional. ◦ Let C(M i ) be a set denoting

Basic approach:◦ Detect changes between two image frames

f(x, y, ti) and f(x, y, tj) taken at time ti and tj

◦ Form a difference image dij(x,y), which is define as

The result of difference cancels the stationary element, leaving nonzero parts corresponding to moving objects.

Noise could be an issue.

otherwise0

),,(),,(1),(

Ttyxftyxfifyxd ji

ij

Page 15: Chapter 10, Part IV.  Definitions: ◦ Let M 1, M 2 ….M R be sets denoting the coordinates of the points in the regional. ◦ Let C(M i ) be a set denoting

Motivation:◦ The removal of noise could cause the

elimination of small moving objects.◦ To address this problem, consider changes at

a pixel over several frames.

Page 16: Chapter 10, Part IV.  Definitions: ◦ Let M 1, M 2 ….M R be sets denoting the coordinates of the points in the regional. ◦ Let C(M i ) be a set denoting

Accumulate differences: ◦ Consider a sequence of image frame f(x, y,

t1)… f(x, y, tn). ◦ Let f(x, y, t1) is the reference image.◦ An accumulative difference image (ADI) is

formed by comparing this reference with every subsequence image.

◦ Each pixel in ADI is essentially a counter that accumulate the difference at that pixel.

Page 17: Chapter 10, Part IV.  Definitions: ◦ Let M 1, M 2 ….M R be sets denoting the coordinates of the points in the regional. ◦ Let C(M i ) be a set denoting

Three types of ADIs can be constructed: ◦ absolute, positive and negative ADIs.

Let R(x,y)= f(x, y, t1) and let f(x, y, k)=f(x, y, tk). For any time k>1 three ADIs are defined as follows:

otherwiseyxA

TkyxfyxRifyxAyxA

k

kk ),(

),,(),(1),(),(

1

1

otherwiseyxP

TkyxfyxRifyxPyxP

k

kk ),(

),,(),(1),(),(

1

1

otherwiseyxN

TkyxfyxRifyxNyxN

k

kk ),(

),,(),(1),(),(

1

1

Page 18: Chapter 10, Part IV.  Definitions: ◦ Let M 1, M 2 ….M R be sets denoting the coordinates of the points in the regional. ◦ Let C(M i ) be a set denoting

Motion Detection Using ADIsMotion Detection Using ADIs

1. The location and size of the moving object can be determined in the positive ADI.

2. The direction and speed of the moving object can be determined in the absolute and negative ADIs.

Page 19: Chapter 10, Part IV.  Definitions: ◦ Let M 1, M 2 ….M R be sets denoting the coordinates of the points in the regional. ◦ Let C(M i ) be a set denoting

A key to the success of these techniques is to select a proper reference image.

The difference of two images cancels the stationary parts in both images.

Extracting the background as a reference image makes it easy to inspect moving objects in motion pictures.

Page 20: Chapter 10, Part IV.  Definitions: ◦ Let M 1, M 2 ….M R be sets denoting the coordinates of the points in the regional. ◦ Let C(M i ) be a set denoting

Let the first image as initial image. Use the positive ADI to outline the size and

location of the moving object.

This region becomes entirely black

Page 21: Chapter 10, Part IV.  Definitions: ◦ Let M 1, M 2 ….M R be sets denoting the coordinates of the points in the regional. ◦ Let C(M i ) be a set denoting

When the moving object has moved completely out of the position in the reference image, the background in the present frame can be duplicated in the location previously occupied by the object.

When all moving objects are completely out of their original positions, the reference image with the background left can be generated.

Page 22: Chapter 10, Part IV.  Definitions: ◦ Let M 1, M 2 ….M R be sets denoting the coordinates of the points in the regional. ◦ Let C(M i ) be a set denoting

Example 10.20Example 10.20