SlideShare a Scribd company logo
Course: Machine Vision
Shape Features
Session 08
D5627 – I Gede Putra Kusuma Negara, B.Eng., PhD
Outline
• Thresholding
• Identifying Boundary
• Chain Code
• Fourier Descriptor
• Identifying Region
• Moments
Thresholding
Segmentation
• Segmentation: subdivides an image into its constituent region or
objects
• The purpose of image segmentation is to decompose the image into
parts that are meaningful with respect to a particular application
• Example, automatic PCB (printed circuit board) inspection,
Segmentation
• Segmentation is one of the most difficult tasks in image processing
• Segmentation accuracy determines the success or failure of
automated analysis procedure
• Considerable care should be taken to improve the probability of
rugged segmentation
Segmentation
Image segmentation generally are based on basic properties of intensity
values:
1. Discontinuity: partition an image based on abrupt changes in
intensity, such as edges
2. Similarity: partition image into regions that are similar according to
a set of predefined criteria
Thresholding
• Thresholding is a fundamental approach to segmentation
• Popular in applications where speed is an important factor
• Single value thresholding can be given mathematically as follows:






T
y
x
f
if
T
y
x
f
if
y
x
g
)
,
(
0
)
,
(
1
)
,
(
Thresholding (example)
• For example, we are going to build poker playing robot
• This robot should be able to visually interpret the card in its hand
What is the Correct Threshold?
• Wrong threshold leads to disastrous results
Basic Global Thresholding
• Partition the image histogram using a single global
threshold
• The basic global threshold, T, is calculated as follows:
1. Select an initial estimate for T (typically the average grey level
in the image)
2. Segment the image using T to produce two groups of pixels: G1
consisting of pixels with grey levels >T and G2 consisting pixels
with grey levels ≤ T
3. Compute the average grey levels of pixels in G1 to give μ1 and
G2 to give μ2
Basic Global Thresholding
4. Compute a new threshold value:
5. Repeat steps 2 – 4 until the difference in T in successive
iterations is less than a predefined limit T∞
• This algorithm works very well for finding thresholds when the
histogram is suitable
2
2
1 
 

T
Basic Global Thresholding
(example)
Problems with Single Value
Thresholding
• Single value thresholding only works for bimodal histograms
• Images with other kinds of histograms need more than a single
threshold
Thresholding (example)
• For example, we want to
isolate the contents
of the bottles
• Think about what the
histogram for this
image would look like
• Single threshold value can’t be used
in this problem
• The second picture shows the single
value thresholding result
Double Value Threshold
• We need a double value to
segment this kind of image
• There are two objects in this
image, bottle and liquid
• After we applied double
threshold value, we can
distinguish bottle and liquid
Identifying Boundary
Object Descriptor
• Objects are represented as a collection of pixels in an image
• To support the object recognition, we need to describe the
properties of group pixels  object descriptor
• Two forms of object descriptor:
1. Boundary descriptor: characterize an arrangement of pixels in
the object perimeter or boundary
2. Region descriptor: characterize an arrangement of pixels within
the area of the object
Important Properties
of Object Descriptor
1. Complete set: two objects must have the same descriptors if and only
if they have the same shape
2. Congruent: able to recognize similar objects when they have similar
descriptors
3. Convenient: they have invariant properties (position, rotation, scale,
or affine/perspective changes)
4. Compact set: represent the essence of an object in an efficient way
Boundary
• Boundary: a region describes contents that are surrounded
by a boundary (or perimeter)  region’s contour
• The boundary found by following the object contour:
– First, find one point on the contour
– Progress round the contour either in a clockwise/anticlockwise
direction, finding the nearest (or next) contour point.
Chain Code
• We can represents a contour with the coordinates of a sequence of
pixels in the image
• Alternatively, we can just store the relative position between
consecutive pixels. This is the basic idea behind chain code
• The set of pixels in the border of a shape is translated into a set of
connections between them
Chain Code: Example
Start Point Invariance
in Chain Code
• Chain code will be different when the start point changes
• We need start point invariance. This can be achieved by considering the
elements of the code to constitute the digits in an integer.
• We can shift the digits cyclically (replacing the least significant digit with
the most significant one, and shifting all other digits left one place).
Fourier Descriptor
• Let x[m] and y[m] be the coordinates of the m-th pixel on the boundary
of a given 2D shape containing pixels, a complex number can be formed
as z[m]=x[m]+jy[m], and the Fourier Descriptor (FD) of this shape is
defined as the DFT of z[m]:
• FD is independent of its location, scaling, rotation and starting point
• We could use M < N FDs corresponding to the low frequency
components of the boundary to represent the 2D shape
Z[k]= DFT[z[m]]=
1
N
z[m]e- j2pmk/N
m=0
N-1
å
Fourier Descriptor
(example)
25-Jun-21 Image Processing and Multimedia Retrieval 24
Original shape Reconstructed
Using 9 FD
Reconstructed
Using 19 FD
Reconstructed
Using 29 FD
Fourier Descriptor Properties
• Fourier descriptors inherit several properties from the Fourier transform.
• Translation invariant: no matter where the shape is located in the image,
the Fourier descriptors remain the same.
• Scaling invariant: if the shape is scaled by a factor, the Fourier descriptors
are scaled by that same factor.
• Rotation and starting point invariant: rotating the shape or selecting a
different starting point only affects the phase of the descriptors.
25-Jun-21 Image Processing and Multimedia Retrieval 25
Identifying Region
Region
There are two main region descriptors:
1. Basic: characterize the geometric properties of the region
2. Moment: characterize the density of the region
Basic Region Descriptors
• A region can be described by considering scalar measures based on its
geometric properties
Descriptor Formula
Area
Perimeter
Compactness
Dispersion
A(S) = I(x, y)DA
y

x

P(S) = (xi - xi-1)2
+(yi - yi-1)2
i
å
C(S) =
A(s)
P2
(s) / 4p
IR(S) =
max (xi - x)2
+(yi - y)2
( )
min (xi - x)2
+(yi - y)2
( )
Basic Region Descriptors
(example)
Moments
• Moments describe a shape’s layout, a bit like combining area,
compactness, irregularity, and higher-order descriptions together
• The moment of order p and q, mpq of a function I(x,y) is defined as
• Example
mpq = xp
yq
y

x
 I(x, y)DA
m00 = I(x, y)DA
y

x
 m10 = xI(x, y)DA
y

x
 m01 = yI(x, y)DA
y

x

Centralized Moments
• General formula:
• Example
• This moment descriptors are translation invariant
mpq = (x - x)p
(y - y)q
y

x
 I(x, y)DA
m01 = m01 -
m01
m00
m00
m10 = m01
m20 = m20 -
m10
2
m00
Centralized Moments: Example
Invariant Moments
• Centralized moments are only translation invariant
• Normalized central moments are invariant to translation, scale and
rotation
hpq =
mpq
m00
g
where g=
p + q
2
"p+ q ³ 2
Invariant Moments (cont.)
Invariant Moments: Example
Acknowledgment
Some of slides in this PowerPoint presentation are adaptation from
various slides, many thanks to:
1. Dr. Brian Mac Namee, School of Computing at the Dublin Institute
of Technology (http://www.comp.dit.ie/bmacnamee/gaip.htm)
2. James Hays, Computer Science Department, Brown University,
(http://cs.brown.edu/~hays/)
Thank You

More Related Content

What's hot

Image segmentation
Image segmentationImage segmentation
Image segmentation
Md Shabir Alam
 
TYBSC (CS) SEM 6- DIGITAL IMAGE PROCESSING
TYBSC (CS) SEM 6- DIGITAL IMAGE PROCESSINGTYBSC (CS) SEM 6- DIGITAL IMAGE PROCESSING
TYBSC (CS) SEM 6- DIGITAL IMAGE PROCESSING
Kamana Tripathi
 
Image segmentation
Image segmentation Image segmentation
Feature detection and matching
Feature detection and matchingFeature detection and matching
Feature detection and matching
Kuppusamy P
 
TYBSC (CS) SEM 6- DIGITAL IMAGE PROCESSING
TYBSC (CS) SEM 6- DIGITAL IMAGE PROCESSINGTYBSC (CS) SEM 6- DIGITAL IMAGE PROCESSING
TYBSC (CS) SEM 6- DIGITAL IMAGE PROCESSING
Kamana Tripathi
 
Segmentation Techniques -I
Segmentation Techniques -ISegmentation Techniques -I
Segmentation Techniques -I
Hemantha Kulathilake
 
Image segmentation
Image segmentationImage segmentation
Image segmentation
MadhuriMulik1
 
Edge Detection and Segmentation
Edge Detection and SegmentationEdge Detection and Segmentation
Edge Detection and Segmentation
A B Shinde
 
Image feature extraction
Image feature extractionImage feature extraction
Image feature extractionRushin Shah
 
Image segmentation
Image segmentationImage segmentation
Image segmentationMukul Jindal
 
Image segmentation
Image segmentationImage segmentation
Image segmentationDeepak Kumar
 
Image segmentation
Image segmentationImage segmentation
Image segmentation
Bulbul Agrawal
 
Texture based feature extraction and object tracking
Texture based feature extraction and object trackingTexture based feature extraction and object tracking
Texture based feature extraction and object tracking
Priyanka Goswami
 
Features image processing and Extaction
Features image processing and ExtactionFeatures image processing and Extaction
Features image processing and Extaction
Ali A Jalil
 
Segmentation Techniques -II
Segmentation Techniques -IISegmentation Techniques -II
Segmentation Techniques -II
Hemantha Kulathilake
 
Image segmentation
Image segmentationImage segmentation
Image segmentation
Rania H
 
Image segmentation
Image segmentation Image segmentation
Image segmentation
Amnaakhaan
 
Image segmentation in Digital Image Processing
Image segmentation in Digital Image ProcessingImage segmentation in Digital Image Processing
Image segmentation in Digital Image Processing
DHIVYADEVAKI
 

What's hot (20)

Image segmentation
Image segmentationImage segmentation
Image segmentation
 
TYBSC (CS) SEM 6- DIGITAL IMAGE PROCESSING
TYBSC (CS) SEM 6- DIGITAL IMAGE PROCESSINGTYBSC (CS) SEM 6- DIGITAL IMAGE PROCESSING
TYBSC (CS) SEM 6- DIGITAL IMAGE PROCESSING
 
Image segmentation
Image segmentation Image segmentation
Image segmentation
 
Feature detection and matching
Feature detection and matchingFeature detection and matching
Feature detection and matching
 
TYBSC (CS) SEM 6- DIGITAL IMAGE PROCESSING
TYBSC (CS) SEM 6- DIGITAL IMAGE PROCESSINGTYBSC (CS) SEM 6- DIGITAL IMAGE PROCESSING
TYBSC (CS) SEM 6- DIGITAL IMAGE PROCESSING
 
Segmentation Techniques -I
Segmentation Techniques -ISegmentation Techniques -I
Segmentation Techniques -I
 
Image segmentation
Image segmentationImage segmentation
Image segmentation
 
Edge Detection and Segmentation
Edge Detection and SegmentationEdge Detection and Segmentation
Edge Detection and Segmentation
 
Image feature extraction
Image feature extractionImage feature extraction
Image feature extraction
 
Image segmentation
Image segmentationImage segmentation
Image segmentation
 
Image segmentation
Image segmentationImage segmentation
Image segmentation
 
Image segmentation
Image segmentationImage segmentation
Image segmentation
 
Dip Image Segmentation
Dip Image SegmentationDip Image Segmentation
Dip Image Segmentation
 
Texture based feature extraction and object tracking
Texture based feature extraction and object trackingTexture based feature extraction and object tracking
Texture based feature extraction and object tracking
 
Features image processing and Extaction
Features image processing and ExtactionFeatures image processing and Extaction
Features image processing and Extaction
 
Segmentation Techniques -II
Segmentation Techniques -IISegmentation Techniques -II
Segmentation Techniques -II
 
Image segmentation
Image segmentationImage segmentation
Image segmentation
 
Image Segmentation
 Image Segmentation Image Segmentation
Image Segmentation
 
Image segmentation
Image segmentation Image segmentation
Image segmentation
 
Image segmentation in Digital Image Processing
Image segmentation in Digital Image ProcessingImage segmentation in Digital Image Processing
Image segmentation in Digital Image Processing
 

Similar to PPT s07-machine vision-s2

ImSeg04.ppt
ImSeg04.pptImSeg04.ppt
ImSeg04.ppt
ssuser1cc06c1
 
ImSeg04 (2).ppt
ImSeg04 (2).pptImSeg04 (2).ppt
ImSeg04 (2).ppt
Dhaval Bhojani
 
ACMP340.pptx
ACMP340.pptxACMP340.pptx
ACMP340.pptx
FelixGathage
 
SIRG-BSU_3_used-important.pdf
SIRG-BSU_3_used-important.pdfSIRG-BSU_3_used-important.pdf
SIRG-BSU_3_used-important.pdf
DrAhmedElngar
 
DIP Notes Unit-1 PPT.pdf
DIP Notes Unit-1 PPT.pdfDIP Notes Unit-1 PPT.pdf
DIP Notes Unit-1 PPT.pdf
Gaurav Sharma
 
Image enhancement
Image enhancementImage enhancement
Image enhancementAyaelshiwi
 
DIP Notes Unit-1 PPT , engineering, computer Science
DIP Notes Unit-1 PPT , engineering, computer ScienceDIP Notes Unit-1 PPT , engineering, computer Science
DIP Notes Unit-1 PPT , engineering, computer Science
baaburao4200
 
Module-V 096.pdf
Module-V 096.pdfModule-V 096.pdf
Module-V 096.pdf
SamrajECE
 
Various object detection and tracking methods
Various object detection and tracking methodsVarious object detection and tracking methods
Various object detection and tracking methods
sujeeshkumarj
 
DTAM: Dense Tracking and Mapping in Real-Time, Robot vision Group
DTAM: Dense Tracking and Mapping in Real-Time, Robot vision GroupDTAM: Dense Tracking and Mapping in Real-Time, Robot vision Group
DTAM: Dense Tracking and Mapping in Real-Time, Robot vision Group
Lihang Li
 
Images Analysis  in matlab
Images Analysis  in matlabImages Analysis  in matlab
Images Analysis  in matlab
mustafa_92
 
regions
regionsregions
regions
mjbahmani
 
image segmentation by ppres.pptx
image segmentation by ppres.pptximage segmentation by ppres.pptx
image segmentation by ppres.pptx
mohan134666
 
J017426467
J017426467J017426467
J017426467
IOSR Journals
 
Parking space detect
Parking space detectParking space detect
Parking space detect
Amanullah Tariq
 
Lecture 4 Digital Image Processing (1).pptx
Lecture 4 Digital Image Processing (1).pptxLecture 4 Digital Image Processing (1).pptx
Lecture 4 Digital Image Processing (1).pptx
sivan96
 
Module-5-1_230523_171754 (1).pdf
Module-5-1_230523_171754 (1).pdfModule-5-1_230523_171754 (1).pdf
Module-5-1_230523_171754 (1).pdf
vikasmittal92
 
4-RSSI-Spectral Domain Image Transforms_1.pdf
4-RSSI-Spectral Domain Image Transforms_1.pdf4-RSSI-Spectral Domain Image Transforms_1.pdf
4-RSSI-Spectral Domain Image Transforms_1.pdf
muhammadwalidmido
 

Similar to PPT s07-machine vision-s2 (20)

ImSeg04.ppt
ImSeg04.pptImSeg04.ppt
ImSeg04.ppt
 
ImSeg04 (2).ppt
ImSeg04 (2).pptImSeg04 (2).ppt
ImSeg04 (2).ppt
 
Im seg04
Im seg04Im seg04
Im seg04
 
ACMP340.pptx
ACMP340.pptxACMP340.pptx
ACMP340.pptx
 
SIRG-BSU_3_used-important.pdf
SIRG-BSU_3_used-important.pdfSIRG-BSU_3_used-important.pdf
SIRG-BSU_3_used-important.pdf
 
DIP Notes Unit-1 PPT.pdf
DIP Notes Unit-1 PPT.pdfDIP Notes Unit-1 PPT.pdf
DIP Notes Unit-1 PPT.pdf
 
Image enhancement
Image enhancementImage enhancement
Image enhancement
 
DIP Notes Unit-1 PPT , engineering, computer Science
DIP Notes Unit-1 PPT , engineering, computer ScienceDIP Notes Unit-1 PPT , engineering, computer Science
DIP Notes Unit-1 PPT , engineering, computer Science
 
Module-V 096.pdf
Module-V 096.pdfModule-V 096.pdf
Module-V 096.pdf
 
Various object detection and tracking methods
Various object detection and tracking methodsVarious object detection and tracking methods
Various object detection and tracking methods
 
DTAM: Dense Tracking and Mapping in Real-Time, Robot vision Group
DTAM: Dense Tracking and Mapping in Real-Time, Robot vision GroupDTAM: Dense Tracking and Mapping in Real-Time, Robot vision Group
DTAM: Dense Tracking and Mapping in Real-Time, Robot vision Group
 
Images Analysis  in matlab
Images Analysis  in matlabImages Analysis  in matlab
Images Analysis  in matlab
 
regions
regionsregions
regions
 
image segmentation by ppres.pptx
image segmentation by ppres.pptximage segmentation by ppres.pptx
image segmentation by ppres.pptx
 
J017426467
J017426467J017426467
J017426467
 
Parking space detect
Parking space detectParking space detect
Parking space detect
 
project_PPT_final
project_PPT_finalproject_PPT_final
project_PPT_final
 
Lecture 4 Digital Image Processing (1).pptx
Lecture 4 Digital Image Processing (1).pptxLecture 4 Digital Image Processing (1).pptx
Lecture 4 Digital Image Processing (1).pptx
 
Module-5-1_230523_171754 (1).pdf
Module-5-1_230523_171754 (1).pdfModule-5-1_230523_171754 (1).pdf
Module-5-1_230523_171754 (1).pdf
 
4-RSSI-Spectral Domain Image Transforms_1.pdf
4-RSSI-Spectral Domain Image Transforms_1.pdf4-RSSI-Spectral Domain Image Transforms_1.pdf
4-RSSI-Spectral Domain Image Transforms_1.pdf
 

More from Binus Online Learning

LN s12-machine vision-s2
LN s12-machine vision-s2LN s12-machine vision-s2
LN s12-machine vision-s2
Binus Online Learning
 
LN s10-machine vision-s2
LN s10-machine vision-s2LN s10-machine vision-s2
LN s10-machine vision-s2
Binus Online Learning
 
LN s09-machine vision-s2
LN s09-machine vision-s2LN s09-machine vision-s2
LN s09-machine vision-s2
Binus Online Learning
 
LN s08-machine vision-s2
LN s08-machine vision-s2LN s08-machine vision-s2
LN s08-machine vision-s2
Binus Online Learning
 
LN s07-machine vision-s2
LN s07-machine vision-s2LN s07-machine vision-s2
LN s07-machine vision-s2
Binus Online Learning
 
LN s06-machine vision-s2
LN s06-machine vision-s2LN s06-machine vision-s2
LN s06-machine vision-s2
Binus Online Learning
 
LN s05-machine vision-s2
LN s05-machine vision-s2LN s05-machine vision-s2
LN s05-machine vision-s2
Binus Online Learning
 
LN s04-machine vision-s2
LN s04-machine vision-s2LN s04-machine vision-s2
LN s04-machine vision-s2
Binus Online Learning
 
LN s03-machine vision-s2
LN s03-machine vision-s2LN s03-machine vision-s2
LN s03-machine vision-s2
Binus Online Learning
 
LN s02-machine vision-s2
LN s02-machine vision-s2LN s02-machine vision-s2
LN s02-machine vision-s2
Binus Online Learning
 
LN s01-machine vision-s2
LN s01-machine vision-s2LN s01-machine vision-s2
LN s01-machine vision-s2
Binus Online Learning
 
PPT s09-machine vision-s2
PPT s09-machine vision-s2PPT s09-machine vision-s2
PPT s09-machine vision-s2
Binus Online Learning
 
PPT s05-machine vision-s2
PPT s05-machine vision-s2PPT s05-machine vision-s2
PPT s05-machine vision-s2
Binus Online Learning
 
PPT s03-machine vision-s2
PPT s03-machine vision-s2PPT s03-machine vision-s2
PPT s03-machine vision-s2
Binus Online Learning
 
PPT s02-machine vision-s2
PPT s02-machine vision-s2PPT s02-machine vision-s2
PPT s02-machine vision-s2
Binus Online Learning
 
LN sesi 2 delivering quality-1
LN sesi 2 delivering quality-1LN sesi 2 delivering quality-1
LN sesi 2 delivering quality-1
Binus Online Learning
 
PPT Sesi 2 FO the guest delivering quality-1
PPT Sesi 2 FO the guest delivering quality-1PPT Sesi 2 FO the guest delivering quality-1
PPT Sesi 2 FO the guest delivering quality-1
Binus Online Learning
 
PPT Sesi 3 FO the guest - delivering quality 2
PPT Sesi 3 FO the guest - delivering quality 2 PPT Sesi 3 FO the guest - delivering quality 2
PPT Sesi 3 FO the guest - delivering quality 2
Binus Online Learning
 
LN sesi 3 delivering quality-2
LN sesi 3 delivering quality-2LN sesi 3 delivering quality-2
LN sesi 3 delivering quality-2
Binus Online Learning
 
LN sesi 4 managing guest reservation-1
LN sesi 4 managing guest reservation-1LN sesi 4 managing guest reservation-1
LN sesi 4 managing guest reservation-1
Binus Online Learning
 

More from Binus Online Learning (20)

LN s12-machine vision-s2
LN s12-machine vision-s2LN s12-machine vision-s2
LN s12-machine vision-s2
 
LN s10-machine vision-s2
LN s10-machine vision-s2LN s10-machine vision-s2
LN s10-machine vision-s2
 
LN s09-machine vision-s2
LN s09-machine vision-s2LN s09-machine vision-s2
LN s09-machine vision-s2
 
LN s08-machine vision-s2
LN s08-machine vision-s2LN s08-machine vision-s2
LN s08-machine vision-s2
 
LN s07-machine vision-s2
LN s07-machine vision-s2LN s07-machine vision-s2
LN s07-machine vision-s2
 
LN s06-machine vision-s2
LN s06-machine vision-s2LN s06-machine vision-s2
LN s06-machine vision-s2
 
LN s05-machine vision-s2
LN s05-machine vision-s2LN s05-machine vision-s2
LN s05-machine vision-s2
 
LN s04-machine vision-s2
LN s04-machine vision-s2LN s04-machine vision-s2
LN s04-machine vision-s2
 
LN s03-machine vision-s2
LN s03-machine vision-s2LN s03-machine vision-s2
LN s03-machine vision-s2
 
LN s02-machine vision-s2
LN s02-machine vision-s2LN s02-machine vision-s2
LN s02-machine vision-s2
 
LN s01-machine vision-s2
LN s01-machine vision-s2LN s01-machine vision-s2
LN s01-machine vision-s2
 
PPT s09-machine vision-s2
PPT s09-machine vision-s2PPT s09-machine vision-s2
PPT s09-machine vision-s2
 
PPT s05-machine vision-s2
PPT s05-machine vision-s2PPT s05-machine vision-s2
PPT s05-machine vision-s2
 
PPT s03-machine vision-s2
PPT s03-machine vision-s2PPT s03-machine vision-s2
PPT s03-machine vision-s2
 
PPT s02-machine vision-s2
PPT s02-machine vision-s2PPT s02-machine vision-s2
PPT s02-machine vision-s2
 
LN sesi 2 delivering quality-1
LN sesi 2 delivering quality-1LN sesi 2 delivering quality-1
LN sesi 2 delivering quality-1
 
PPT Sesi 2 FO the guest delivering quality-1
PPT Sesi 2 FO the guest delivering quality-1PPT Sesi 2 FO the guest delivering quality-1
PPT Sesi 2 FO the guest delivering quality-1
 
PPT Sesi 3 FO the guest - delivering quality 2
PPT Sesi 3 FO the guest - delivering quality 2 PPT Sesi 3 FO the guest - delivering quality 2
PPT Sesi 3 FO the guest - delivering quality 2
 
LN sesi 3 delivering quality-2
LN sesi 3 delivering quality-2LN sesi 3 delivering quality-2
LN sesi 3 delivering quality-2
 
LN sesi 4 managing guest reservation-1
LN sesi 4 managing guest reservation-1LN sesi 4 managing guest reservation-1
LN sesi 4 managing guest reservation-1
 

Recently uploaded

Halogenation process of chemical process industries
Halogenation process of chemical process industriesHalogenation process of chemical process industries
Halogenation process of chemical process industries
MuhammadTufail242431
 
weather web application report.pdf
weather web application report.pdfweather web application report.pdf
weather web application report.pdf
Pratik Pawar
 
Railway Signalling Principles Edition 3.pdf
Railway Signalling Principles Edition 3.pdfRailway Signalling Principles Edition 3.pdf
Railway Signalling Principles Edition 3.pdf
TeeVichai
 
The role of big data in decision making.
The role of big data in decision making.The role of big data in decision making.
The role of big data in decision making.
ankuprajapati0525
 
H.Seo, ICLR 2024, MLILAB, KAIST AI.pdf
H.Seo,  ICLR 2024, MLILAB,  KAIST AI.pdfH.Seo,  ICLR 2024, MLILAB,  KAIST AI.pdf
H.Seo, ICLR 2024, MLILAB, KAIST AI.pdf
MLILAB
 
MCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdfMCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdf
Osamah Alsalih
 
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&BDesign and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Sreedhar Chowdam
 
Forklift Classes Overview by Intella Parts
Forklift Classes Overview by Intella PartsForklift Classes Overview by Intella Parts
Forklift Classes Overview by Intella Parts
Intella Parts
 
Architectural Portfolio Sean Lockwood
Architectural Portfolio Sean LockwoodArchitectural Portfolio Sean Lockwood
Architectural Portfolio Sean Lockwood
seandesed
 
Immunizing Image Classifiers Against Localized Adversary Attacks
Immunizing Image Classifiers Against Localized Adversary AttacksImmunizing Image Classifiers Against Localized Adversary Attacks
Immunizing Image Classifiers Against Localized Adversary Attacks
gerogepatton
 
Student information management system project report ii.pdf
Student information management system project report ii.pdfStudent information management system project report ii.pdf
Student information management system project report ii.pdf
Kamal Acharya
 
J.Yang, ICLR 2024, MLILAB, KAIST AI.pdf
J.Yang,  ICLR 2024, MLILAB, KAIST AI.pdfJ.Yang,  ICLR 2024, MLILAB, KAIST AI.pdf
J.Yang, ICLR 2024, MLILAB, KAIST AI.pdf
MLILAB
 
road safety engineering r s e unit 3.pdf
road safety engineering  r s e unit 3.pdfroad safety engineering  r s e unit 3.pdf
road safety engineering r s e unit 3.pdf
VENKATESHvenky89705
 
Vaccine management system project report documentation..pdf
Vaccine management system project report documentation..pdfVaccine management system project report documentation..pdf
Vaccine management system project report documentation..pdf
Kamal Acharya
 
Automobile Management System Project Report.pdf
Automobile Management System Project Report.pdfAutomobile Management System Project Report.pdf
Automobile Management System Project Report.pdf
Kamal Acharya
 
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Dr.Costas Sachpazis
 
addressing modes in computer architecture
addressing modes  in computer architectureaddressing modes  in computer architecture
addressing modes in computer architecture
ShahidSultan24
 
Courier management system project report.pdf
Courier management system project report.pdfCourier management system project report.pdf
Courier management system project report.pdf
Kamal Acharya
 
LIGA(E)11111111111111111111111111111111111111111.ppt
LIGA(E)11111111111111111111111111111111111111111.pptLIGA(E)11111111111111111111111111111111111111111.ppt
LIGA(E)11111111111111111111111111111111111111111.ppt
ssuser9bd3ba
 
Quality defects in TMT Bars, Possible causes and Potential Solutions.
Quality defects in TMT Bars, Possible causes and Potential Solutions.Quality defects in TMT Bars, Possible causes and Potential Solutions.
Quality defects in TMT Bars, Possible causes and Potential Solutions.
PrashantGoswami42
 

Recently uploaded (20)

Halogenation process of chemical process industries
Halogenation process of chemical process industriesHalogenation process of chemical process industries
Halogenation process of chemical process industries
 
weather web application report.pdf
weather web application report.pdfweather web application report.pdf
weather web application report.pdf
 
Railway Signalling Principles Edition 3.pdf
Railway Signalling Principles Edition 3.pdfRailway Signalling Principles Edition 3.pdf
Railway Signalling Principles Edition 3.pdf
 
The role of big data in decision making.
The role of big data in decision making.The role of big data in decision making.
The role of big data in decision making.
 
H.Seo, ICLR 2024, MLILAB, KAIST AI.pdf
H.Seo,  ICLR 2024, MLILAB,  KAIST AI.pdfH.Seo,  ICLR 2024, MLILAB,  KAIST AI.pdf
H.Seo, ICLR 2024, MLILAB, KAIST AI.pdf
 
MCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdfMCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdf
 
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&BDesign and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
 
Forklift Classes Overview by Intella Parts
Forklift Classes Overview by Intella PartsForklift Classes Overview by Intella Parts
Forklift Classes Overview by Intella Parts
 
Architectural Portfolio Sean Lockwood
Architectural Portfolio Sean LockwoodArchitectural Portfolio Sean Lockwood
Architectural Portfolio Sean Lockwood
 
Immunizing Image Classifiers Against Localized Adversary Attacks
Immunizing Image Classifiers Against Localized Adversary AttacksImmunizing Image Classifiers Against Localized Adversary Attacks
Immunizing Image Classifiers Against Localized Adversary Attacks
 
Student information management system project report ii.pdf
Student information management system project report ii.pdfStudent information management system project report ii.pdf
Student information management system project report ii.pdf
 
J.Yang, ICLR 2024, MLILAB, KAIST AI.pdf
J.Yang,  ICLR 2024, MLILAB, KAIST AI.pdfJ.Yang,  ICLR 2024, MLILAB, KAIST AI.pdf
J.Yang, ICLR 2024, MLILAB, KAIST AI.pdf
 
road safety engineering r s e unit 3.pdf
road safety engineering  r s e unit 3.pdfroad safety engineering  r s e unit 3.pdf
road safety engineering r s e unit 3.pdf
 
Vaccine management system project report documentation..pdf
Vaccine management system project report documentation..pdfVaccine management system project report documentation..pdf
Vaccine management system project report documentation..pdf
 
Automobile Management System Project Report.pdf
Automobile Management System Project Report.pdfAutomobile Management System Project Report.pdf
Automobile Management System Project Report.pdf
 
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
 
addressing modes in computer architecture
addressing modes  in computer architectureaddressing modes  in computer architecture
addressing modes in computer architecture
 
Courier management system project report.pdf
Courier management system project report.pdfCourier management system project report.pdf
Courier management system project report.pdf
 
LIGA(E)11111111111111111111111111111111111111111.ppt
LIGA(E)11111111111111111111111111111111111111111.pptLIGA(E)11111111111111111111111111111111111111111.ppt
LIGA(E)11111111111111111111111111111111111111111.ppt
 
Quality defects in TMT Bars, Possible causes and Potential Solutions.
Quality defects in TMT Bars, Possible causes and Potential Solutions.Quality defects in TMT Bars, Possible causes and Potential Solutions.
Quality defects in TMT Bars, Possible causes and Potential Solutions.
 

PPT s07-machine vision-s2

  • 1. Course: Machine Vision Shape Features Session 08 D5627 – I Gede Putra Kusuma Negara, B.Eng., PhD
  • 2. Outline • Thresholding • Identifying Boundary • Chain Code • Fourier Descriptor • Identifying Region • Moments
  • 4. Segmentation • Segmentation: subdivides an image into its constituent region or objects • The purpose of image segmentation is to decompose the image into parts that are meaningful with respect to a particular application • Example, automatic PCB (printed circuit board) inspection,
  • 5. Segmentation • Segmentation is one of the most difficult tasks in image processing • Segmentation accuracy determines the success or failure of automated analysis procedure • Considerable care should be taken to improve the probability of rugged segmentation
  • 6. Segmentation Image segmentation generally are based on basic properties of intensity values: 1. Discontinuity: partition an image based on abrupt changes in intensity, such as edges 2. Similarity: partition image into regions that are similar according to a set of predefined criteria
  • 7. Thresholding • Thresholding is a fundamental approach to segmentation • Popular in applications where speed is an important factor • Single value thresholding can be given mathematically as follows:       T y x f if T y x f if y x g ) , ( 0 ) , ( 1 ) , (
  • 8. Thresholding (example) • For example, we are going to build poker playing robot • This robot should be able to visually interpret the card in its hand
  • 9. What is the Correct Threshold? • Wrong threshold leads to disastrous results
  • 10. Basic Global Thresholding • Partition the image histogram using a single global threshold • The basic global threshold, T, is calculated as follows: 1. Select an initial estimate for T (typically the average grey level in the image) 2. Segment the image using T to produce two groups of pixels: G1 consisting of pixels with grey levels >T and G2 consisting pixels with grey levels ≤ T 3. Compute the average grey levels of pixels in G1 to give μ1 and G2 to give μ2
  • 11. Basic Global Thresholding 4. Compute a new threshold value: 5. Repeat steps 2 – 4 until the difference in T in successive iterations is less than a predefined limit T∞ • This algorithm works very well for finding thresholds when the histogram is suitable 2 2 1     T
  • 13. Problems with Single Value Thresholding • Single value thresholding only works for bimodal histograms • Images with other kinds of histograms need more than a single threshold
  • 14. Thresholding (example) • For example, we want to isolate the contents of the bottles • Think about what the histogram for this image would look like • Single threshold value can’t be used in this problem • The second picture shows the single value thresholding result
  • 15. Double Value Threshold • We need a double value to segment this kind of image • There are two objects in this image, bottle and liquid • After we applied double threshold value, we can distinguish bottle and liquid
  • 17. Object Descriptor • Objects are represented as a collection of pixels in an image • To support the object recognition, we need to describe the properties of group pixels  object descriptor • Two forms of object descriptor: 1. Boundary descriptor: characterize an arrangement of pixels in the object perimeter or boundary 2. Region descriptor: characterize an arrangement of pixels within the area of the object
  • 18. Important Properties of Object Descriptor 1. Complete set: two objects must have the same descriptors if and only if they have the same shape 2. Congruent: able to recognize similar objects when they have similar descriptors 3. Convenient: they have invariant properties (position, rotation, scale, or affine/perspective changes) 4. Compact set: represent the essence of an object in an efficient way
  • 19. Boundary • Boundary: a region describes contents that are surrounded by a boundary (or perimeter)  region’s contour • The boundary found by following the object contour: – First, find one point on the contour – Progress round the contour either in a clockwise/anticlockwise direction, finding the nearest (or next) contour point.
  • 20. Chain Code • We can represents a contour with the coordinates of a sequence of pixels in the image • Alternatively, we can just store the relative position between consecutive pixels. This is the basic idea behind chain code • The set of pixels in the border of a shape is translated into a set of connections between them
  • 22. Start Point Invariance in Chain Code • Chain code will be different when the start point changes • We need start point invariance. This can be achieved by considering the elements of the code to constitute the digits in an integer. • We can shift the digits cyclically (replacing the least significant digit with the most significant one, and shifting all other digits left one place).
  • 23. Fourier Descriptor • Let x[m] and y[m] be the coordinates of the m-th pixel on the boundary of a given 2D shape containing pixels, a complex number can be formed as z[m]=x[m]+jy[m], and the Fourier Descriptor (FD) of this shape is defined as the DFT of z[m]: • FD is independent of its location, scaling, rotation and starting point • We could use M < N FDs corresponding to the low frequency components of the boundary to represent the 2D shape Z[k]= DFT[z[m]]= 1 N z[m]e- j2pmk/N m=0 N-1 å
  • 24. Fourier Descriptor (example) 25-Jun-21 Image Processing and Multimedia Retrieval 24 Original shape Reconstructed Using 9 FD Reconstructed Using 19 FD Reconstructed Using 29 FD
  • 25. Fourier Descriptor Properties • Fourier descriptors inherit several properties from the Fourier transform. • Translation invariant: no matter where the shape is located in the image, the Fourier descriptors remain the same. • Scaling invariant: if the shape is scaled by a factor, the Fourier descriptors are scaled by that same factor. • Rotation and starting point invariant: rotating the shape or selecting a different starting point only affects the phase of the descriptors. 25-Jun-21 Image Processing and Multimedia Retrieval 25
  • 27. Region There are two main region descriptors: 1. Basic: characterize the geometric properties of the region 2. Moment: characterize the density of the region
  • 28. Basic Region Descriptors • A region can be described by considering scalar measures based on its geometric properties Descriptor Formula Area Perimeter Compactness Dispersion A(S) = I(x, y)DA y  x  P(S) = (xi - xi-1)2 +(yi - yi-1)2 i å C(S) = A(s) P2 (s) / 4p IR(S) = max (xi - x)2 +(yi - y)2 ( ) min (xi - x)2 +(yi - y)2 ( )
  • 30. Moments • Moments describe a shape’s layout, a bit like combining area, compactness, irregularity, and higher-order descriptions together • The moment of order p and q, mpq of a function I(x,y) is defined as • Example mpq = xp yq y  x  I(x, y)DA m00 = I(x, y)DA y  x  m10 = xI(x, y)DA y  x  m01 = yI(x, y)DA y  x 
  • 31. Centralized Moments • General formula: • Example • This moment descriptors are translation invariant mpq = (x - x)p (y - y)q y  x  I(x, y)DA m01 = m01 - m01 m00 m00 m10 = m01 m20 = m20 - m10 2 m00
  • 33. Invariant Moments • Centralized moments are only translation invariant • Normalized central moments are invariant to translation, scale and rotation hpq = mpq m00 g where g= p + q 2 "p+ q ³ 2
  • 36. Acknowledgment Some of slides in this PowerPoint presentation are adaptation from various slides, many thanks to: 1. Dr. Brian Mac Namee, School of Computing at the Dublin Institute of Technology (http://www.comp.dit.ie/bmacnamee/gaip.htm) 2. James Hays, Computer Science Department, Brown University, (http://cs.brown.edu/~hays/)