SHAPE ANALYSIS INEL 6088 Computer Vision Refs.: ch. 6, Davies; Ch. - - PowerPoint PPT Presentation

shape analysis
SMART_READER_LITE
LIVE PREVIEW

SHAPE ANALYSIS INEL 6088 Computer Vision Refs.: ch. 6, Davies; Ch. - - PowerPoint PPT Presentation

SHAPE ANALYSIS INEL 6088 Computer Vision Refs.: ch. 6, Davies; Ch. 2 Jain et al. TOPICS Connected components CC Labeling Image moments Geometrical properties: position and orientation Region-boundary following Algorithm


slide-1
SLIDE 1

SHAPE ANALYSIS

INEL 6088 Computer Vision

Refs.: ch. 6, Davies; Ch. 2 Jain et al.

slide-2
SLIDE 2
  • Connected components
  • CC Labeling
  • Image moments
  • Geometrical properties: position and
  • rientation
  • Region-boundary following Algorithm
  • Distance-metrics and skeleton
  • Morphological operations

TOPICS

slide-3
SLIDE 3

Distance metrics

q − − d4 = |xi − xj| + |yi − yj| = ( ) dE = q (xi − xj)2 + (yi − yj)2 | − | | − | d8 = max (|xi − xj|, |yi − yj|)

slide-4
SLIDE 4

DISK OF RADIOUS 3

Euclidean City-block Chessboard

slide-5
SLIDE 5

Distance transform: provides the minimum distance from a pixel of an object to the background. To compute, use where m is the iteration number for all pixels [u,v] such that d([u,v],[i,j])=1. Use 4-neighbors.

slide-6
SLIDE 6

SKELETON

skeleton, = medial axis = set of pixels that are at a locally- maximum distance from the background A pixel [i,j] is locally maximum if its distance to S is not less than that of all its neighboring pixels [u,v]. Here we are using 4- neighbors.

slide-7
SLIDE 7

Skeleton S*

skeleton, = medial axis = set of pixels that are at a locally- maximum distance from the background A pixel [i,j] is locally maximum if its distance to S is not less than that of all its neighboring pixels [u,v]. Here we are using 4- neighbors.

slide-8
SLIDE 8

THINNING

slide-9
SLIDE 9

THINNING

  • For each pixel in the CC,

examine its 3x3 pixel- neighborhood

  • Remove pixels that are in

the boundary until the region have been reduced to thin-lines

  • keep boundary pixels
  • that are needed to

maintain 8-connectivity

  • that are at the end of a

line

slide-10
SLIDE 10

EXPANDING AND SHRINKING

Expanding: Change pixel from 0 to 1 if any neighbors of the pixel are 1. Shrinking: Change a pixel from 1 to 0 if any neighbors of a pixel are 0. Expanding followed by shrinking can be used to fill holes. Shrinking followed by expanding can remove isolated noise pixels.

slide-11
SLIDE 11