|
Mryka Hall-Beyer |
|
Transposing: making the matrix symmetrical around the diagonal The texture calculations require a symmetrical matrix. The next step is therefore to get the GLCM into this form. A symmetrical matrix means that the same values occur in cells on opposite sides of the diagonal. For example, the value in cell 3,2 would be the same as the value in cell 2,3. The east matrix calculated above is not symmetrical. The east matrix counted each
reference pixel with the neighbour to its right (east). If counting is done this
way, using one direction only, then the number of times the combination 2,3
occurs is not the same as the number of times the combination 3,2 occurs (for
example 3 may be to the right of 2 three times, but to the left of 2 only once).
However, symmetry will be achieved if each pixel pair is counted twice: once
"forwards" and once "backwards" (interchanging reference and neighbour pixels
for the second count).
Symmetry also means that when considering an eastern (1,0)
relation, a western (-1,0) relation is also counted. This could now be called
a "horizontal" matrix.
|
|
|