1.
Local Binary Pattern (LBP)
2. Complete Local Binary Pattern (CLBP)
3. Point detection
4. Sobel filters
5. Co-occurance Matrices
6. Quiz # 2
7. Assignment
By Fawad Khan, email: fawadmsee20@gmail.com
Texture
❖ A pattern of spatially distributed repeated structures
By Fawad Khan, email: fawadmsee20@gmail.com
Local Binary Pattern
Local Binary Pattern (LBP) is a technique used
to represent the texture.
LBP threshold pixels N8 neighbors with the center
pixel within each 3x3 block of the whole image.
By Fawad Khan, email: fawadmsee20@gmail.com
Local Binary Pattern
90 200 140 0 0 0 20 21 22
180 172 100 0 1 27 23 𝐿𝐵𝑃𝑐𝑜𝑑𝑒 = 48
170 181 152 0 1 1 26 25 24
90 200 140 0 0 0 20 21 22
180 172 100 0 0 27 23 𝐿𝐵𝑃𝑐𝑜𝑑𝑒 = 0
170 181 152 0 0 0 26 25 24
90 200 140 0 0 0 20 21 22
180 172 100 1 0 27 23 𝐿𝐵𝑃𝑐𝑜𝑑𝑒 = 192
170 181 152 1 0 0 26 25 24
By Fawad Khan, email: fawadmsee20@gmail.com
Local Binary Pattern
90 200 140 0 0 1 20 21 22
180 172 100 0 0 27 23 𝐿𝐵𝑃𝑐𝑜𝑑𝑒 = 20
170 181 152 0 0 1 26 25 24
90 200 140 0 0 0 20 21 22
180 172 100 0 1 27 23 𝐿𝐵𝑃𝑐𝑜𝑑𝑒 = 162
170 181 152 0 1 1 26 25 24
90 200 140 1 1 0 20 21 22
180 172 100 1 0 27 23 𝐿𝐵𝑃𝑐𝑜𝑑𝑒 = 227
170 181 152 1 1 0 26 25 24
By Fawad Khan, email: fawadmsee20@gmail.com
Local Binary Pattern
90 200 140 0 1 1 20 21 22
180 172 100 0 1 27 23 𝐿𝐵𝑃𝑐𝑜𝑑𝑒 = 14
170 181 152 0 0 0 26 25 24
90 200 140 0 0 0 20 21 22
180 172 100 0 0 27 23 𝐿𝐵𝑃𝑐𝑜𝑑𝑒 = 0
170 181 152 0 0 0 26 25 24
90 200 140 1 0 0 20 21 22
180 172 100 1 0 27 23 𝐿𝐵𝑃𝑐𝑜𝑑𝑒 = 129
170 181 152 0 0 0 26 25 24
By Fawad Khan, email: fawadmsee20@gmail.com
Local Binary Pattern
90 200 140 48 0 192
180 172 100 𝐿𝐵𝑃𝑐𝑜𝑑𝑒 = 20 162 227
170 181 152 14 0 129
2
90 200 140
1
180 172 100 𝐿𝐵𝑃ℎ𝑖𝑠𝑡 =
0
170 181 152 0 14 20 48 129 162 192 227
By Fawad Khan, email: fawadmsee20@gmail.com
Completed Local Binary Pattern
Completed Local Binary Pattern (CLBP) is
another technique used to represent the texture.
CLBP consist of three different operators:
1. CLBP_S (sign)
2. CLBP_M (magnitude)
3. CLBP_C (center)
CLBP_S is the signed operator of CLBP, It is calculated
in a similar way as LBP.
By Fawad Khan, email: fawadmsee20@gmail.com
Completed Local Binary Pattern
CLBP_M is the magnitude operator of CLBP, it is
calculated as follows:
90 200 140 -90 -90 -90 90 90 90 91.5 91.5 91.5
180 172 100 -90 110 90 110 91.5 91.5
170 181 152 -90 90 82 90 90 82 91.5 91.5 91.5
Difference Absolute Mean
0 0 0 20 21 22
0 1 27 23 𝐶𝐿𝐵𝑃_𝑀𝑐𝑜𝑑𝑒 = 8
0 0 0 26 25 24
By Fawad Khan, email: fawadmsee20@gmail.com
By Fawad Khan, email: fawadmsee20@gmail.com
Gray Level Co-occurance Matrices
GLCM direction analysis
900
1350 450
1800
00
By Fawad Khan, email: fawadmsee20@gmail.com
Gray Level Co-occurance Matrices
Test image General form of GLCM
0 0 1 1 Gray 0 1 2 3
tone
0 0 1 1 0 #(0,0) #(0,1) #(0,2) #(0,3)
0 2 2 2 1 #(1,0) #(1,1) #(1,2) #(1,3)
2 #(2,0) #(2,1) #(2,2) #(2,3)
2 2 3 3 3 #(3,0) #(3,1) #(3,2) #(3,3)
4 2 1 0 6 0 2 0 4 1 0 0 2 1 3 0
2 4 0 0 0 4 2 0 1 2 2 0 1 2 1 0
1 0 6 1 2 2 2 2 0 2 4 1 3 1 0 2
0 0 1 2 0 0 2 0 0 0 1 0 0 0 2 0
GLCM for 𝜹=1 & 𝜽=𝟎𝟎 GLCM for 𝜹=1 & 𝜽=𝟗𝟎𝟎 GLCM for 𝜹=1 & 𝜽=𝟒𝟓𝟎 GLCM for 𝜹=1 & 𝜽=𝟏𝟑𝟓𝟎
By Fawad Khan, email: fawadmsee20@gmail.com
Point Detection
1 1 -1 -1 -1
1 1 X -1 8 -1
1 -1 -1 -1 =
1
1 1
1
By Fawad Khan, email: fawadmsee20@gmail.com
Line detection
1 2 1 1 0 -1
0 0 0 2 0 -2
-1 -2 -1 1 0 -1
1 1 1 1 1 1
1 1 1 1 1 1
1 1 1 1 1 1 0 -1 -2 2 1 0
1 1 1 1 1 1 1 0 -1 1 0 -1
2 1 0 0 -1 -2
By Fawad Khan, email: fawadmsee20@gmail.com
Assignment #
-Assignment#3#Write a detailed note on Canny Edge
Detector.
By Fawad Khan, email: fawadmsee20@gmail.com
Quiz
By Fawad Khan, email: fawadmsee20@gmail.com