Object Representation and Description
Object Representation and Description
00664422
Chain code : Rotation invariance
00664422 77553311
Chain code : Rotation invariance
0 0 6 6 4 4 2 2 7 7 5 5 3 3 1 1
0 6 0 6 0 6 0 6 0 6 0 6 0 6 0 6
Differential chain code
Minimum perimeter polygonal (MPP)
approximation
• Polygonal approximation: approximate a
boundary using a polygon
- Min. perimeter polygons, min. no. of segments
• Choose an appropriate grid
- The boundary is enclosed by a set of
concatenated cells
• Allow the boundary to shrink as a rubber band
• Shrinking produces a shape of MPP
MPP approximation
MPP approximation
MPP Approximation
• Boundary consists of 4-connected
straight line segments
• Traverse the boundary in anti-
clockwise direction
• Every turn will be either concave
(Black) or convex (White) vertex
• Every concave (B) vertex in dark gray
(bounded) region has corresponding
“mirror vertex” in light gray
(boundary wall) region
• Vertices of MPP coincide either with
“convex vertices of inner wall” (W) or
the “mirror of concave vertices of
outer wall” (B)
MPP approximation
Polygonal approximation : splitting techniques
• Splitting techniques
→ Subdivide a boundary segment successively
into two parts until a specified criterion is
satisfied
1. Find two points on the boundary that are
farthest away and draw a line
→ Splitting line divides the boundary into two
boundary segments
2. For each boundary segment, find a point on the
boundary that has a maximum perpendicular
distance to its corresponding line
Polygonal approximation : splitting techniques
3. Draw two lines joining the point and the two end
points, respectively, of the corresponding splitting
line
→ Subdivide the boundary segment into two
parts
4. Repeat Steps 2-3 until the perpendicular distance
is less than a threshold
Minimum polygonal approximation
Minimum polygonal approximation
• Merging techniques
1. Merge points along a boundary until the least
square error line fit of the points merged so far
exceeds a threshold
2. Record the the two end point of the line
3. Repeat Steps 1 and 2 until all boundary points
are processed
Minimum polygonal approximation
Merging techniques
Signature
𝐾−1
1 2𝜋𝑘
𝑗 𝐾 𝑢
𝑠(𝑘) = 𝑎(𝑢)𝑒
𝐾 , k = 0,1,2,…, K-1
𝑛=0
Object description: Boundary descriptors
• Fourier descriptors:
Object description: Boundary descriptors
• Fourier descriptors:
Example: Fourier descriptor
• Find Fourier-descriptors for the following
boundary coordinates starting from point O. and
Verify the FD’s translation property for translation
∆xy = 2+3j.
Object description: Boundary descriptors
• Statistical moments
Object description: Boundary descriptors
• Statistical moments
Object description: Regional descriptors
Simple Regional descriptors
Simple Regional descriptors
V= N. of vertices
Q=No. of edges
F=No. of faces
Texture descriptors
Histogram approaches
Histogram approaches
Histogram approaches
Structural approaches
Structural approaches
Spectral approaches
Spectral approaches
Spectral approaches
Spectral approaches
Spectral approaches
Moment invariants
Moment invariants
Moment invariants
Moment invariants
Moment invariants
Moment invariants
Principle component analysis
PCA
PCA
PCA
PCA
• Instead of mean and variance of random
variable we will use mean vector and
Coavariance matrix of random vectors
mx = E{x} and CX = E{(x-mx)(x-mx)T}
where, Cx is a nxn matrix (real and symmetric) and
its elements
Cii = variance of xi
Cij=covariance of xi and xj
For uncorrelated xi and xj => Cij = Cji = 0
PCA
• Given N data points x1, x2,…xN, in Rn
• We want to find a new set of features that are
linear combinations of the original ones
Cx =
PCA
PCA
• Because CX is real, symmetric and positive definite
its eigenvalues (λi) are non negative and its
eigenvectors (vi) are orthogonal.
Cx vi = λi vi
• Let 𝜆1 ≥ 𝜆2 ≥ 𝜆3 … . ≥ 𝜆𝑛 be the eigenvalues of CX in
descending order and A be a matrix whose rows
are the eigenvectors of CX
PCA
• Suppose we use the transformation matrix A
such that
y = A(x-mX)
(This is called Hotelling transform)
Here my = E{y} = 0
(mean of y-vectors is zero)
• Covariance of y-vectors is given as
Cy = ACXAT
PCA
• Cy is a diagonal matrix whose elements along
main diagonal are eigenvalues of CX