Professional Documents
Culture Documents
CSC-455
Today’s Lecture
Feature Extractor
Camera (Image Processing) Classifier
Image Analysis
Typical steps:
• Pre-processing
• Segmentation (object
detection)
• Feature extraction
• Feature selection
• Classifier training
• Evaluation of classifier
performance.
Feature types (regional features)
• Colour features
• Gray level
features
• Shape features
• Histogram
(texture) features
Techniques for Image Features
Extraction
• Hough Transform
• Corners
• Shape features
• GLCM
• HOG
• SIFT
• SURF
• Gabor and Wavelet
• LBP
Techniques for Image Features
Extraction
• Hough Transform
• Corners
• Shape features
• GLCM
• HOG
• SIFT
• SURF
• Gabor and Wavelet
• LBP
Properties of Shape Features
3
5. Solidity
• Solidity describes the extent to which the
shape is convex or concave.
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:
Texture Analysis: GLCM Features
Computation of Co-occurrence Matrix
- It has size N×N (N = Number of gray-values) i.e., the
rows & columns represent the set of possible pixel
values.
0 #(0,0)
0 0 1 1 2
0 0 1 1
0 2 2 2
2 2 3 3
Example: Computation (contd.)
0 0 1 1 2 2 1 0
0 0 1 1
Image
0 2 2 2
2 2 3 3
i/j 0 1 2 3 CM for the Image
3
Example: Computation (contd.)
0 0 1 1 2 2 1 0
0 0 1 1 0 2 0 0
Image 0 0 3 1
0 2 2 2
2 2 3 3 0 0 0 1
i/j 0 1 2 3
CM for the Image
0 0 1 1 3 0 2 0
0 0 1 1 0 2 2 0
Image 0 0 1 2
0 2 2 2
2 2 3 3 0 0 0 0
i/j 0 1 2 3
CM for the Image
Co-occurrence Matrices
(d,θ) = (1,)
Angular Second Moment (ASM) feature
Input image Contrast feature Feature
Entropy feature Vector
Variance feature
(d,θ) = (1,)
Correlation feature
Inverse Difference Moment (IDM) feature
Sum Average feature
Sum Variance feature
(d,θ) = (1,) Sum Entropy feature
Information Measures of Correlation feature – 1
Information Measures of Correlation feature – 2
(d,θ) =(1,)
ENERGY
• Also called Uniformity or Angular second moment.
• Measures the textural uniformity that is pixel pair
repetitions.
• Detects disorders in textures.
• Energy reaches a maximum value equal to one.
2
𝐸𝑛𝑒𝑟𝑔𝑦 =∑ ∑ 𝑝 𝑖𝑗
𝑖 𝑗
Entropy
•
Contrast
• Measures the spatial frequency of an image
and is difference moment of GLCM.
• It is the difference between the highest and the
lowest values of a contiguous set of pixels.
• It measures the amount of local variations
present in the image.
• Contrast(con)=