normalize_glcm | R Documentation |
Function that normalizes a gray-level co-occurrence matrix (GLCM) so that the sum of all the elements equals unity. This has the added benefit of converting the GLCM to a probability distribution.
normalize_glcm(mat)
mat |
gray-level co-occurrence matrix |
normalized GLCM as a numeric matrix
# normalize an arbitrary matrix
a <- matrix(1:9, nrow = 3)
n_a <- normalize_glcm(a)
print(a)
print(n_a)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.