if (FALSE) {
#Discretize loaded image and then calculate GLCM statistics for all matrices
RIA_image <- discretize(RIA_image, bins_in = c(4, 8), equal_prob = TRUE,
use_orig = TRUE, write_orig = FALSE)
RIA_image <- glcm_all(RIA_image, use_type = "discretized", distance = c(1:2))
RIA_image <- glcm_stat(RIA_image)
#Calculate the average of the different GLCM matrices in the different directions
RIA_image <- glcm_stat_all(RIA_image)
}
Run the code above in your browser using DataLab