dissimilarity.matrix {gtexture} | R Documentation |
Dissimilarity of a co-occurrence matrix
Description
Dissimilarity is the weighted sum of all of the absolute differences in the gray-levels assigned to neighboring nodes across the network or graph. For example, a diagonal matrix would represent only identical neighbors and no dissimilarity.
Usage
dissimilarity.matrix(glcm)
Arguments
glcm |
gray-level co-occurrence matrix |
Value
int or double (the weighted sum of differences)
Examples
# Calculate dissimilarity of a 2x2 uniform matrix
dissimilarity.matrix(matrix(1,2,2))
# Calculate dissimilarity of a diagonal matrix
dissimilarity.matrix(diag(1,5,5))
# Calculate dissimilarity of a sequential matrix
dissimilarity.matrix(matrix(1:16,4,4))
[Package gtexture version 1.0.0 Index]