Image Processing Computer Vision Texture Segmentation 1 Texture





















- Slides: 21

Image Processing & Computer Vision Texture Segmentation 1



Texture Segmentation l Example of Texture 4

Grey Level Co-occurrence Matrix (GLCM) l Three different co-occurrence matrices for a gray-tone image. Horizontal Vertical Diagonal 5


Grey Level Co-occurrence Matrix (GLCM) l การแบงชวงสเชน l l l ชวง ชวง pixel 4 -gray level intensity 0 – 63 0 intensity 64 – 127 1 intensity 128 – 191 2 intensity 192 – 255 4 การแบงชวงสสามารถทำไดมากกวา 4 level ตามความละเอยดของ texture (ลวดลาย( 7

Grey Level Co-occurrence Matrix (GLCM) )Count Matrix( Fill in Count Matrix (Right spatial Relationship or Horizontal Relationship) 0 2 1 3 0 1 2 Test image pattern 3 Count Matrix 8

Grey Level Co-occurrence Matrix (GLCM) l Transpose Matrix เพอทำให Symmetric Matrix สมมาตร หรอ Count Matrix 2 0 0 0 2 2 0 0 1 0 3 0 Transpose Matrix 0 0 1 1 2 2 1 0 + 0 2 0 0 3 1 0 0 0 1 Count Matrix + Transpose Matrix = Symmetrical Matrix 4 2 1 0 2 4 0 0 1 0 6 1 0 0 1 2 9

Grey Level Co-occurrence Matrix (GLCM) l Normalized symmetrical Horizontal GLCM Symmetrical Matrix / Sum of elements = Horizontal GLCM 4 (1/24) * 2 1 0 2 4 0 0 1 0 6 1 0 0 1 2 Horizontal GLCM = นจะแสดงเปนคา 0. 167 0. 083 0. 042 0 0. 083 0. 167 0 0 0. 042 0 0. 25 0. 042 0 0 0. 042 0. 083 Probability 10

Grey Level Co-occurrence Matrix (GLCM) นอกจากจะทำการนบคา Co-occurrence ในระดบแนวนอน (Horizontal) แลว ยงสามารถทจะทำในระดบแนวตง (Vertical) หรอแนวทแยงมม (Diagonal) ได Vertical Co-occurrence Diagonal Co-occurrence 11

Example of Vertical GLCM 0 1 2 3 Vertical Co-occurrence Transpose Matrix Count Matrix 12

Example of Vertical GLCM)ตอ ( Symmetrical Matrix Vertical GLCM) Probability( 13

Example of Diagonal GLCM 0 1 2 3 Diagonal Co-occurrence Transpose Matrix Count Matrix 14

Example of Diagonal GLCM)ตอ ( Symmetrical Matrix Diagonal GLCM) Probability( 15




GLCM and Contrast weight 0 1 4 9 1 0 1 4 4 1 0 1 9 4 1 0 Contrast weight = 0 0. 083 0. 168 0 0. 083 0 0. 168 0 0 0. 042 0 Contrast Matrix 0. 167 0. 083 0. 042 0 * 0. 083 0. 167 0 0 0. 042 0 0. 25 0. 042 0. 083 0 Horizontal GLCM 19

GLCM and Dissimilarity Weight 0 1 2 3 1 0 1 2 2 1 0 1 3 2 1 0 Dissimilarity weight = 0 0. 083 0. 084 0 0. 083 0 0. 084 0 0 0. 042 0 Dissimilarity Matrix 0. 167 0. 083 0. 042 0 * 0. 083 0. 167 0 0 0. 042 0 0. 25 0. 042 0. 083 0 Horizontal GLCM 0. 083+0. 084+0. 042+0. 042 = 0. 418 20

GLCM and Homogeneity (Similarity) 1 0. 5 0. 333 0. 25 0. 5 1 0. 5 0. 333 0. 5 0. 25 0. 333 0. 5 1 similarity weight = * 0. 083 0. 167 0 0 0. 042 0 0. 25 0. 042 0. 083 0 Horizontal GLCM 0. 167 0. 042 0. 014 0 0. 042 0. 167 0 0 0. 014 0 0. 25 0. 021 0 0 0. 021 0. 083 Similarity Matrix 0. 167 0. 083 0. 042 0 0. 167+0. 042+0. 014+0. 042+0. 167+ 0. 014+0. 25+0. 021+0. 083 = 0. 804 21