SlideShare a Scribd company logo
Shape Features
Jamil Ahmad
1
Contents
• Shape Features
• Properties of Shape Features
• Shape Descriptor
• Descriptors Classification
• Simple Shape Features
• One-dimensional function for shape representation
• Some other shape features
• Conclusion
• References
2
Shape Feature
• A prominent attribute or aspect of a shape
3
Properties of Shape Features
Efficient shape features must present some essential
properties such as:
•Identifiability: perceptually similar objects have
similar (or the same) features.
•Translation, rotation and scale invariance: the
location, the rotation and the scaling changing of the
shape must not affect the extracted features.
4
Properties of Shape Features
• Affine invariance: (preserving parallelism and
straightness): shape distortion that preserve shape
characteristics should not alter the descriptor.
 Noise resistance: features must be as robust as possible
against noise, i.e., they must be the same whichever be
the strength of the noise in a give range that affects the
pattern.
5
Properties of Shape Features
• occultation invariance: partial occlusion should
not change the descriptor.
• Statistically independent: compact descriptor.
• Reliability: as long as one deals with the same
pattern, the extracted features must remain the
same.
6
Shape Descriptor
• Shape Descriptor is a set of numbers that are produced to
represent a given shape feature. A descriptor attempts to
quantify the shape in ways that agree with human intuition.
• Usually, the descriptors are in the form of a vector.
7
Descriptors Classification
• Contour-Based Methods:
• Use shape boundary points
• Region-Based Methods:
• Use shape interior points
8
Simple Shape Features
• Some simple geometric features can be used to describe shapes.
Usually, the simple geometric features can only discriminate shapes
with large differences; therefore, they are usually used as filters to
eliminate false hits or combined with other shape descriptors to
discriminate shapes.
• Center of gravity
• Eccentricity
• Circularity ratio
• Rectangularity
• Convexity
• Solidity
• Euler number
• Hole area ratio
9
1. Center of Gravity
• The center of gravity is also called centroid. Its position should
be fixed in relation to the shape.
10
2. Circularity ratio
• Circularity ratio represents how a shape is similar to a circle.
• Circularity ratio is the ratio of the area of a shape to the
shape's perimeter square:
11
3. Rectangularity
• Rectangularity represents how rectangular a shape is, i.e.
how much it fills its minimum bounding rectangle:
• where AS is the area of a shape; AR is the area of the
minimum bounding rectangle.
12
4. Convexity
• Convexity is defined as the ratio of perimeters of the
convex hull over that of the original contour.
13
5. Solidity
• Solidity describes the extent to which the shape is
convex or concave.
• where, As is the area of the shape region and H is the
convex hull area of the shape. The solidity of a convex
shape is always 1.
14
6. Euler number
• Euler number describes the relation between the
number of contiguous parts and the number of holes on
a shape. Let S be the number of contiguous parts and N
be the number of holes on a shape. Then the Euler
number is:
15
9. Hole area ratio
• Hole area ratio HAR is defined as
• where As is the area of a shape and Ah is the total area of all
holes in the shape
16
One-dimensional function
for shape representation
• Also known as Shape Signature
• It is derived from shape boundary coordinates
• The shape signature usually captures the perceptual feature
of the shape
• Centroid distance function
• Area function
• Chord length function
17
1. Centroid distance function
• The centroid distance function is expressed by the
distance of the boundary points from the centroid of a
shape:
• Translation Invariant
18
2. Area Function
• When the boundary
points change along the
shape boundary, the
area of the triangle
formed by two
successive boundary
points and the center of
gravity also changes. This
forms an area function
which can be exploited
as shape representation.
19
3. Chord Length Function
• For each boundary point P, its chord length function is the
distance between P and another boundary point P’.
20
Some other shape features
• Basic Chain Code
• Differential Chain Code
• Chain Code Histogram
• Shape Matrix
21
Chain Codes
(Basic + Differential
• Notation to record a list of boundary bounds along a
contour.
• describes the movement along a digital curve or a
sequence of border pixels by using so-called 8-
connectivity or 4-connectivity.
22
Shape Numbers
• To make the chain code rotational invariant, we consider
all cyclic rotations of the differential chain code and
choose among them the lexicographically smallest such
code. The resulting code is called Shape Number.
• Chain Code:
• 3 0 0 3 0 1 1 2 1 1 2 3 2
• Differential Chain Code:
• 1 0 3 1 1 0 1 3 1 1 3
• Shape Number:
• 0 1 3 1 1 3 1 0 3 1 1
23
Chain Code Histogram
• The CCH reflects the probabilities of different directions
present in a contour.
24
Shape Matrix
• Shape matrix descriptor is an M × N matrix to represent
a shape region.
• Matrix itself is not a feature
• Histograms in x- and y-direction
• Texture of shape matrix
• Frequency analysis
25
Conclusion
• A shape signature represents a shape by a 1-D function
derived from shape contour.
• To obtain the translation invariant property, they are
usually defined by relative values.
• To obtain the scale invariant property, normalization is
necessary.
• Shape signatures are sensitive to noise, and slight
changes in the boundary can cause large errors in
matching procedure.
• A shape signature can be simplified by quantizing the
signature into a signature histogram, which is
rotationally invariant.
26
References
• Yang Mingqiang, Kpalma Kidiyo and Ronsin Joseph, “A Survey of Shape
Feature Extraction Techniques” Pattern Recognition Techniques,
Technology and Applications, Book edited by: Peng-Yeng Yin, ISBN 978-953-
7619-24-4, pp. 626, November 2008, I-Tech, Vienna, Austria
27
Thank you
28

More Related Content

What's hot

Image enhancement
Image enhancementImage enhancement
Image enhancement
Ayaelshiwi
 

What's hot (20)

Morphological image processing
Morphological image processingMorphological image processing
Morphological image processing
 
Image filtering in Digital image processing
Image filtering in Digital image processingImage filtering in Digital image processing
Image filtering in Digital image processing
 
Image processing fundamentals
Image processing fundamentalsImage processing fundamentals
Image processing fundamentals
 
Wavelet transform in image compression
Wavelet transform in image compressionWavelet transform in image compression
Wavelet transform in image compression
 
Chapter 9 morphological image processing
Chapter 9   morphological image processingChapter 9   morphological image processing
Chapter 9 morphological image processing
 
Color Image Processing: Basics
Color Image Processing: BasicsColor Image Processing: Basics
Color Image Processing: Basics
 
Digital Image Fundamentals
Digital Image FundamentalsDigital Image Fundamentals
Digital Image Fundamentals
 
Image segmentation
Image segmentationImage segmentation
Image segmentation
 
Image enhancement
Image enhancementImage enhancement
Image enhancement
 
Image Restoration
Image RestorationImage Restoration
Image Restoration
 
digital image processing
digital image processingdigital image processing
digital image processing
 
Image Representation & Descriptors
Image Representation & DescriptorsImage Representation & Descriptors
Image Representation & Descriptors
 
Image enhancement
Image enhancementImage enhancement
Image enhancement
 
Digital Image Processing: Digital Image Fundamentals
Digital Image Processing: Digital Image FundamentalsDigital Image Processing: Digital Image Fundamentals
Digital Image Processing: Digital Image Fundamentals
 
Image segmentation
Image segmentation Image segmentation
Image segmentation
 
Digital Image Processing: Image Segmentation
Digital Image Processing: Image SegmentationDigital Image Processing: Image Segmentation
Digital Image Processing: Image Segmentation
 
Image Processing: Spatial filters
Image Processing: Spatial filtersImage Processing: Spatial filters
Image Processing: Spatial filters
 
IMAGE SEGMENTATION TECHNIQUES
IMAGE SEGMENTATION TECHNIQUESIMAGE SEGMENTATION TECHNIQUES
IMAGE SEGMENTATION TECHNIQUES
 
Region based segmentation
Region based segmentationRegion based segmentation
Region based segmentation
 
Edge Detection and Segmentation
Edge Detection and SegmentationEdge Detection and Segmentation
Edge Detection and Segmentation
 

Similar to Shape Features

Geometric_Dimensions_and_Tolerances.pptx
Geometric_Dimensions_and_Tolerances.pptxGeometric_Dimensions_and_Tolerances.pptx
Geometric_Dimensions_and_Tolerances.pptx
dyamagar2016
 

Similar to Shape Features (20)

GD&T saravanan kulasekaran 27.06.16
GD&T saravanan kulasekaran 27.06.16GD&T saravanan kulasekaran 27.06.16
GD&T saravanan kulasekaran 27.06.16
 
Unit 2 curves & surfaces
Unit 2  curves & surfacesUnit 2  curves & surfaces
Unit 2 curves & surfaces
 
Introduction to Geometric Dimensioning and Tolerancing (GD&T)
Introduction to Geometric Dimensioning and Tolerancing (GD&T)Introduction to Geometric Dimensioning and Tolerancing (GD&T)
Introduction to Geometric Dimensioning and Tolerancing (GD&T)
 
Curves wire frame modelling
Curves wire frame modellingCurves wire frame modelling
Curves wire frame modelling
 
Geometric_Dimensions_and_Tolerances.pptx
Geometric_Dimensions_and_Tolerances.pptxGeometric_Dimensions_and_Tolerances.pptx
Geometric_Dimensions_and_Tolerances.pptx
 
Geometric dimensioning and tolerancing
Geometric dimensioning and tolerancingGeometric dimensioning and tolerancing
Geometric dimensioning and tolerancing
 
UNIT 2- GEOMETRIC MODELLING
UNIT 2- GEOMETRIC MODELLINGUNIT 2- GEOMETRIC MODELLING
UNIT 2- GEOMETRIC MODELLING
 
cg mod2.pdf
cg mod2.pdfcg mod2.pdf
cg mod2.pdf
 
Engineering Drawning & Graphics-Introduction-lettering and dimension-Lecture ...
Engineering Drawning & Graphics-Introduction-lettering and dimension-Lecture ...Engineering Drawning & Graphics-Introduction-lettering and dimension-Lecture ...
Engineering Drawning & Graphics-Introduction-lettering and dimension-Lecture ...
 
Hidden line removal algorithm
Hidden line removal algorithmHidden line removal algorithm
Hidden line removal algorithm
 
Introduction to the curves
Introduction to the curvesIntroduction to the curves
Introduction to the curves
 
1516 contouring
1516 contouring1516 contouring
1516 contouring
 
Lec-3(CE3209) Horizontal Curves.pptx
Lec-3(CE3209) Horizontal Curves.pptxLec-3(CE3209) Horizontal Curves.pptx
Lec-3(CE3209) Horizontal Curves.pptx
 
14 symbols of gd&t
14 symbols of gd&t14 symbols of gd&t
14 symbols of gd&t
 
Chapter 6.pptx
Chapter 6.pptxChapter 6.pptx
Chapter 6.pptx
 
GDT CHAPTER 3- Form Tol.pdf
GDT CHAPTER 3- Form Tol.pdfGDT CHAPTER 3- Form Tol.pdf
GDT CHAPTER 3- Form Tol.pdf
 
TQM PRESENTATION.pptx
TQM PRESENTATION.pptxTQM PRESENTATION.pptx
TQM PRESENTATION.pptx
 
TOLERACIAS_GEOMETRICAS.pptx
TOLERACIAS_GEOMETRICAS.pptxTOLERACIAS_GEOMETRICAS.pptx
TOLERACIAS_GEOMETRICAS.pptx
 
Introdr
IntrodrIntrodr
Introdr
 
Gd&t introductory presentation
Gd&t introductory presentationGd&t introductory presentation
Gd&t introductory presentation
 

Recently uploaded

Prosigns: Transforming Business with Tailored Technology Solutions
Prosigns: Transforming Business with Tailored Technology SolutionsProsigns: Transforming Business with Tailored Technology Solutions
Prosigns: Transforming Business with Tailored Technology Solutions
Prosigns
 

Recently uploaded (20)

top nidhi software solution freedownload
top nidhi software solution freedownloadtop nidhi software solution freedownload
top nidhi software solution freedownload
 
Innovating Inference - Remote Triggering of Large Language Models on HPC Clus...
Innovating Inference - Remote Triggering of Large Language Models on HPC Clus...Innovating Inference - Remote Triggering of Large Language Models on HPC Clus...
Innovating Inference - Remote Triggering of Large Language Models on HPC Clus...
 
TROUBLESHOOTING 9 TYPES OF OUTOFMEMORYERROR
TROUBLESHOOTING 9 TYPES OF OUTOFMEMORYERRORTROUBLESHOOTING 9 TYPES OF OUTOFMEMORYERROR
TROUBLESHOOTING 9 TYPES OF OUTOFMEMORYERROR
 
Using IESVE for Room Loads Analysis - Australia & New Zealand
Using IESVE for Room Loads Analysis - Australia & New ZealandUsing IESVE for Room Loads Analysis - Australia & New Zealand
Using IESVE for Room Loads Analysis - Australia & New Zealand
 
AI/ML Infra Meetup | ML explainability in Michelangelo
AI/ML Infra Meetup | ML explainability in MichelangeloAI/ML Infra Meetup | ML explainability in Michelangelo
AI/ML Infra Meetup | ML explainability in Michelangelo
 
Agnieszka Andrzejewska - BIM School Course in Kraków
Agnieszka Andrzejewska - BIM School Course in KrakówAgnieszka Andrzejewska - BIM School Course in Kraków
Agnieszka Andrzejewska - BIM School Course in Kraków
 
WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital Transformation
WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital TransformationWSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital Transformation
WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital Transformation
 
Cyaniclab : Software Development Agency Portfolio.pdf
Cyaniclab : Software Development Agency Portfolio.pdfCyaniclab : Software Development Agency Portfolio.pdf
Cyaniclab : Software Development Agency Portfolio.pdf
 
Globus Compute Introduction - GlobusWorld 2024
Globus Compute Introduction - GlobusWorld 2024Globus Compute Introduction - GlobusWorld 2024
Globus Compute Introduction - GlobusWorld 2024
 
Enhancing Research Orchestration Capabilities at ORNL.pdf
Enhancing Research Orchestration Capabilities at ORNL.pdfEnhancing Research Orchestration Capabilities at ORNL.pdf
Enhancing Research Orchestration Capabilities at ORNL.pdf
 
In 2015, I used to write extensions for Joomla, WordPress, phpBB3, etc and I ...
In 2015, I used to write extensions for Joomla, WordPress, phpBB3, etc and I ...In 2015, I used to write extensions for Joomla, WordPress, phpBB3, etc and I ...
In 2015, I used to write extensions for Joomla, WordPress, phpBB3, etc and I ...
 
Dominate Social Media with TubeTrivia AI’s Addictive Quiz Videos.pdf
Dominate Social Media with TubeTrivia AI’s Addictive Quiz Videos.pdfDominate Social Media with TubeTrivia AI’s Addictive Quiz Videos.pdf
Dominate Social Media with TubeTrivia AI’s Addictive Quiz Videos.pdf
 
Globus Compute wth IRI Workflows - GlobusWorld 2024
Globus Compute wth IRI Workflows - GlobusWorld 2024Globus Compute wth IRI Workflows - GlobusWorld 2024
Globus Compute wth IRI Workflows - GlobusWorld 2024
 
Prosigns: Transforming Business with Tailored Technology Solutions
Prosigns: Transforming Business with Tailored Technology SolutionsProsigns: Transforming Business with Tailored Technology Solutions
Prosigns: Transforming Business with Tailored Technology Solutions
 
De mooiste recreatieve routes ontdekken met RouteYou en FME
De mooiste recreatieve routes ontdekken met RouteYou en FMEDe mooiste recreatieve routes ontdekken met RouteYou en FME
De mooiste recreatieve routes ontdekken met RouteYou en FME
 
Large Language Models and the End of Programming
Large Language Models and the End of ProgrammingLarge Language Models and the End of Programming
Large Language Models and the End of Programming
 
Understanding Globus Data Transfers with NetSage
Understanding Globus Data Transfers with NetSageUnderstanding Globus Data Transfers with NetSage
Understanding Globus Data Transfers with NetSage
 
First Steps with Globus Compute Multi-User Endpoints
First Steps with Globus Compute Multi-User EndpointsFirst Steps with Globus Compute Multi-User Endpoints
First Steps with Globus Compute Multi-User Endpoints
 
Developing Distributed High-performance Computing Capabilities of an Open Sci...
Developing Distributed High-performance Computing Capabilities of an Open Sci...Developing Distributed High-performance Computing Capabilities of an Open Sci...
Developing Distributed High-performance Computing Capabilities of an Open Sci...
 
How Does XfilesPro Ensure Security While Sharing Documents in Salesforce?
How Does XfilesPro Ensure Security While Sharing Documents in Salesforce?How Does XfilesPro Ensure Security While Sharing Documents in Salesforce?
How Does XfilesPro Ensure Security While Sharing Documents in Salesforce?
 

Shape Features

  • 2. Contents • Shape Features • Properties of Shape Features • Shape Descriptor • Descriptors Classification • Simple Shape Features • One-dimensional function for shape representation • Some other shape features • Conclusion • References 2
  • 3. Shape Feature • A prominent attribute or aspect of a shape 3
  • 4. Properties of Shape Features Efficient shape features must present some essential properties such as: •Identifiability: perceptually similar objects have similar (or the same) features. •Translation, rotation and scale invariance: the location, the rotation and the scaling changing of the shape must not affect the extracted features. 4
  • 5. Properties of Shape Features • Affine invariance: (preserving parallelism and straightness): shape distortion that preserve shape characteristics should not alter the descriptor.  Noise resistance: features must be as robust as possible against noise, i.e., they must be the same whichever be the strength of the noise in a give range that affects the pattern. 5
  • 6. Properties of Shape Features • occultation invariance: partial occlusion should not change the descriptor. • Statistically independent: compact descriptor. • Reliability: as long as one deals with the same pattern, the extracted features must remain the same. 6
  • 7. Shape Descriptor • Shape Descriptor is a set of numbers that are produced to represent a given shape feature. A descriptor attempts to quantify the shape in ways that agree with human intuition. • Usually, the descriptors are in the form of a vector. 7
  • 8. Descriptors Classification • Contour-Based Methods: • Use shape boundary points • Region-Based Methods: • Use shape interior points 8
  • 9. Simple Shape Features • Some simple geometric features can be used to describe shapes. Usually, the simple geometric features can only discriminate shapes with large differences; therefore, they are usually used as filters to eliminate false hits or combined with other shape descriptors to discriminate shapes. • Center of gravity • Eccentricity • Circularity ratio • Rectangularity • Convexity • Solidity • Euler number • Hole area ratio 9
  • 10. 1. Center of Gravity • The center of gravity is also called centroid. Its position should be fixed in relation to the shape. 10
  • 11. 2. Circularity ratio • Circularity ratio represents how a shape is similar to a circle. • Circularity ratio is the ratio of the area of a shape to the shape's perimeter square: 11
  • 12. 3. Rectangularity • Rectangularity represents how rectangular a shape is, i.e. how much it fills its minimum bounding rectangle: • where AS is the area of a shape; AR is the area of the minimum bounding rectangle. 12
  • 13. 4. Convexity • Convexity is defined as the ratio of perimeters of the convex hull over that of the original contour. 13
  • 14. 5. Solidity • Solidity describes the extent to which the shape is convex or concave. • where, As is the area of the shape region and H is the convex hull area of the shape. The solidity of a convex shape is always 1. 14
  • 15. 6. Euler number • Euler number describes the relation between the number of contiguous parts and the number of holes on a shape. Let S be the number of contiguous parts and N be the number of holes on a shape. Then the Euler number is: 15
  • 16. 9. Hole area ratio • Hole area ratio HAR is defined as • where As is the area of a shape and Ah is the total area of all holes in the shape 16
  • 17. One-dimensional function for shape representation • Also known as Shape Signature • It is derived from shape boundary coordinates • The shape signature usually captures the perceptual feature of the shape • Centroid distance function • Area function • Chord length function 17
  • 18. 1. Centroid distance function • The centroid distance function is expressed by the distance of the boundary points from the centroid of a shape: • Translation Invariant 18
  • 19. 2. Area Function • When the boundary points change along the shape boundary, the area of the triangle formed by two successive boundary points and the center of gravity also changes. This forms an area function which can be exploited as shape representation. 19
  • 20. 3. Chord Length Function • For each boundary point P, its chord length function is the distance between P and another boundary point P’. 20
  • 21. Some other shape features • Basic Chain Code • Differential Chain Code • Chain Code Histogram • Shape Matrix 21
  • 22. Chain Codes (Basic + Differential • Notation to record a list of boundary bounds along a contour. • describes the movement along a digital curve or a sequence of border pixels by using so-called 8- connectivity or 4-connectivity. 22
  • 23. Shape Numbers • To make the chain code rotational invariant, we consider all cyclic rotations of the differential chain code and choose among them the lexicographically smallest such code. The resulting code is called Shape Number. • Chain Code: • 3 0 0 3 0 1 1 2 1 1 2 3 2 • Differential Chain Code: • 1 0 3 1 1 0 1 3 1 1 3 • Shape Number: • 0 1 3 1 1 3 1 0 3 1 1 23
  • 24. Chain Code Histogram • The CCH reflects the probabilities of different directions present in a contour. 24
  • 25. Shape Matrix • Shape matrix descriptor is an M × N matrix to represent a shape region. • Matrix itself is not a feature • Histograms in x- and y-direction • Texture of shape matrix • Frequency analysis 25
  • 26. Conclusion • A shape signature represents a shape by a 1-D function derived from shape contour. • To obtain the translation invariant property, they are usually defined by relative values. • To obtain the scale invariant property, normalization is necessary. • Shape signatures are sensitive to noise, and slight changes in the boundary can cause large errors in matching procedure. • A shape signature can be simplified by quantizing the signature into a signature histogram, which is rotationally invariant. 26
  • 27. References • Yang Mingqiang, Kpalma Kidiyo and Ronsin Joseph, “A Survey of Shape Feature Extraction Techniques” Pattern Recognition Techniques, Technology and Applications, Book edited by: Peng-Yeng Yin, ISBN 978-953- 7619-24-4, pp. 626, November 2008, I-Tech, Vienna, Austria 27