ShengFang Huang - PowerPoint PPT Presentation

1 / 22
About This Presentation
Title:

ShengFang Huang

Description:

Chain codes are used to represent a boundary as a connected sequence of straight ... Difficult in digit boundaries, because they are usually ragged. ... – PowerPoint PPT presentation

Number of Views:54
Avg rating:3.0/5.0
Slides: 23
Provided by: Gon47
Category:

less

Transcript and Presenter's Notes

Title: ShengFang Huang


1
Digital Image Processing
  • Sheng-Fang Huang
  • Chapter 11 part I

2
Chapter 11Representation and Description
  • After the image is segmented into regions, how to
    represent and describe these regions?
  • In terms of its external characteristics
    (boundary)
  • In terms of its internal characteristics (pixels
    in the region)

3
11.1 Representation Chain code
  • Chain codes are used to represent a boundary as a
    connected sequence of straight line segments of
    specified length and direction.
  • Based on 4- or 8- connectivity.
  • Chain code is generated by following a boundary
    in clockwise direction and assigning a direction
    to the segments connecting every pair of pixels.
  • Disadvantages
  • The chain code is quite long.
  • Any small disturbance along the boundary due to
    noise cause change in the code.
  • ?resample the boundary with a larger grid
    spacing.

4
(No Transcript)
5
(No Transcript)
6
11.1 Representation Chain codes
  • The chain code of a boundary depends on the
    starting point and is not rotation invariant.
  • We can normalize chain codes by using the first
    difference of the chain code.
  • Example
  • The 4-direction chain code 10103322
  • The first difference of the code 33133030
  • 3 (1-2) mod 4 3
  • 3 (0-1) mod 4 3
  • 1 (1-0) mod 4 1

7
11.1 Representation Signature
  • 1-D functional representation of a boundary.
  • Plot the distance from the centroid to the
    boundary as a function of angles, r(?).
  • Invariant to translation, but depend on the
    rotation and scaling.
  • Normalize with respect to rotation
  • Select the starting point as the point farthest
    to the centroid.
  • Normalize with respect to size
  • Scale all r(?) so that they always span the same
    range, say, 0, 1.
  • Divided by the maximum.
  • Divided by the variance of r(?).

8
(No Transcript)
9
11.1 Representation Skeletons
  • An important approach to representing the
    structural shape is to reduce it to a graph.
  • This reduction may be achieved by obtaining its
    skeleton via a thinning algorithm
    (skeletonization).
  • Medial axis transformation (MAT)
  • proposed by Blum 1967
  • For each point p in region R, we find its closest
    neighbor in the border B.
  • If p has more than one such neighbor, it is said
    to belong to the medial axis (skeleton) of R.

10
(No Transcript)
11
11.1 Representation Skeletons
  • Thinning algorithm iteratively delete the edge
    points of a region subject to the following
    constraints
  • Does not remove the end points,
  • Does not break connectivity, and
  • Does not cause excessive erosion of the region.

12
(No Transcript)
13
11.2 Boundary Descriptor
  • What is the difference between representation and
    description?
  • Simple descriptors
  • Length
  • Diameter Diam(B)maxD(pi, pj) where pi and pj
    are two furthest points on the boundary.
  • The line between these two extremes are called
    the major axis.
  • The minor axis is the one perpendicular to the
    major axis where the major and minor axes form
    the basic rectangle.
  • Eccentricity major axis/minor axis
  • Curvature changes of slope.
  • Difficult in digit boundaries, because they are
    usually ragged.
  • Can be improved by using the curvature between
    adjacent boundary segments.

14
11.2.4 Statistical Moments
  • The shape of boundary segments can be described
    by simple statistical moments, such as mean,
    variance, and higher-order moments.
  • The nth moment of v about its mean m is

15
11.2.4 Statistical Moments
  • Figure 11.5 represented as 1-D function g(r).
  • Treat the amplitude of g as a discrete random
    variable v and form an amplitude histogram p(vi),
    i0,1,A-1, where A is the number of discrete
    amplitude increments in which we divide the
    amplitude scale.

16
  • The two endpoints are linked by a line segment.
  • The coordinates of points are rotated until the
    line is horizontal.
  • The distance of each point to the horizontal
    axis is normalized and treated as a discrete
    random variable to form an histogram p(vi) where
    i0,1,A-1,
  • g(ri) is treated as the probability of which the
    value ri occurs.

17
  • The moments are
  • where
  • The second moment measures the spread of the
    curve about the mean value of r
  • The third moment measures its symmetry with
    reference to the mean.

18
11.3 Regional Descriptors -Simple Descriptor
  • The area of a region is the number of pixels in
    the region.
  • Perimeter is the length of the boundary.
  • Compactness perimeter2 / area.

19
(No Transcript)
20
11.3 Regional Descriptors - Topological Descriptor
  • Topology is the study of properties of a figure
    that are unaffected by any deformation
    (rubber-sheet distortion).
  • The number of holes H
  • The number of connected components C
  • Euler number E E C - H.
  • Regions represented by straight-line segments
    (polygonal networks), such as fig. 11.20, has the
    following relationship in topology as
  • E V - Q F C- H
  • where V is the number of vertices and Q is
    the number of edges.

21
(No Transcript)
22
(No Transcript)
Write a Comment
User Comments (0)
About PowerShow.com