Some notes about this function: 1. Input should be a matrix 2. Shouldn't receive negative values 3. Shouldn't receive all NA values 4. Shouldn't be an empty matrix (i.e.: nrow = 0, ncol = 0) 5. 'n_grey' shouldn't be larger than the number of unique values
.calcGLCM(data, n_grey, angle, d = 1, normalize = TRUE)
matrix. Input image
integer. Number of grey levels used to discretize image
integer. Angle at which GLCM will be calculated. Valid inputs are 0, 45, 90, or 135
numeric. Distance for calculating GLCM
boolean. Normalize output if TRUE