Docsity

Image Retrieval: Shape Descriptors - Contour, Curvature, Fourier, and Region-based Methods, Study notes of Electrical and Electronics Engineering

Partial preview of the text

Download Image Retrieval: Shape Descriptors - Contour, Curvature, Fourier, and Region-based Methods and more Study notes Electrical and Electronics Engineering in PDF only on Docsity!

Samson Cheung

EE 639, Fall 2004

Lecture 9: Content-based Image Retrieval

Shape

Multimedia Information

Systems

Why Shape?

Considerations about shapedescriptors 

Is the descriptor complete?

Can the object be reconstructed from it?



How are occlusions handled?

Can the descriptor be generated from partialobjects?



Invariant?

What transforms are allowed withoutsignificantly changing the descriptor?



Robust against noise and digitization?

Descriptor Taxonomy

[Zhang,Lu04]

Correspondence-based shapematching 

Hausdorff distance

Support partial matching

Could be made rotational and scale invariantby preprocessing

Sensitive to noise and sampling

O(N

2

) complexity

b

a

B

A

h

b b B a a A

B

b

A

a

q

p

−

=

=

=

∈

∈

min

max

)

,

(

}

,...,

{

},

,...,

{

:

shapes

Two

1

1

Shape context

[Belongie et al01]



Use a “context” rather than a single point



Two context matrices are compared using Hausdorffdistance

Context Matrix

Shape context

Contour shape descriptors 

Chain code

also known as Freeman code



8-connectivity is also common

Chain code based shapedescriptors 

Derivative chain code

[Bribiesca & Guzman 78]



1 = convex corner



2 = Two successive links in the same directio



3 = concave corner



Rotation and scale invariant



Unique representation



All cyclic rotation and pick the one that represents thesmallest ternary number



Similarity between two chain codes are measured byedit distances (substitution, deletion, and insertion)

Fourier Descriptor

[Zahn72]



Pick N points (x

i

,y

i

) around the boundary,

compute:



Compute Fourier transform of r

i



Derive scale, translation, and rotationalinvariant descriptor:

[

]

2

/

1

2

2

c

i

c

i

i

y

y

x

x

r

−

N

ni

j

r

N

u

N i

i

n

exp

1 0

0

2

/

2 0

1 0

u

u

u u

u u

FD

N

Fourier descriptor

Region based shapedescriptors 

Area = no. ofpixels



Height, width andprojections inother directions

More region-based shapedescriptors 

Eccentricity = longest chord/maxperpendicular width



Elongatedness = area/(2d)

2

, d=max radius



Rectangularity = max(region/boundingrectangle) in difference rotations



Compactness = perimenter

2

/area

Skeleton

Convex hull 

Minimal enclosing convex region



Convexity:

Every line inside an object joining any twopoints on the boundary is within the object



Convex deficiency is a useful shapedescriptor