View source: R/glcm-marginals.R
dissimilarity.matrix | R Documentation |
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.
dissimilarity.matrix(glcm)
glcm |
gray-level co-occurrence matrix |
int or double (the weighted sum of differences)
# 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))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.