55:148 Digital Image Processing
55:247 Image Analysis and Understanding

Chapter 6, Part II
Shape representation and description: Contour-based shape representation and description


Chapter 6.2 Overview:


Contour-based shape representation and description




Chain codes





Simple geometric border representation




















Fourier transforms of boundaries





















Boundary description using segment sequences













B-spline representation























Other contour-based shape description approaches







Shape invariants














Practical Experiment 5.1

  1. Open the image shape-invariants.pgm or shape-invariants.tif using cantata (located in ~dip/examples/images.dir)
  2. Determine coordinates of 4 collinear points from object type 1 and type 2 (corresponding within object types).
  3. Calculate the invariant I (eq. 6.25) for the two shape classes - you may use the simple Matlab shape.m program (located in ~dip/examples/khoros.dir).
  4. Are the invariants equal for smae objects imaged in different pose?
  5. Are the invariants different for the two shapes?

Hint: For the star-like object, no collinar points exist directly. However, 4 coplanar lines can always be used to generate 4 collinear points.


where M_ijk=(l_i, l_j, l_k).

l_i=(l_i^1,l_i^2,l_i^3)^T is a representation of a line l_i^1x+l_i^2y+ l_i^3=0, where i is from interval [1,5], and |M| is the determinant of M.

If the three lines forming the matrix M_ijk are concurrent, the matrix becomes singular and the invariant is undefined.






for x=(x,y,1)^T.


Then the conic may also be defined by a matrix C

















Last Modified: February 3, 1997

[Go Back]