Learn R Programming

ForestTools (version 0.2.5)

glcm_img: Get GLCM statistics for a single unsegmented image

Description

Get GLCM statistics for a single unsegmented image

Usage

glcm_img(img, n_grey = 32, angle = 0, d = 1, normalize = TRUE)

Arguments

img

matrix or raster. Input image

n_grey

integer. Number of grey levels used to discretize image

angle

integer. Angle at which GLCM will be calculated. Valid inputs are 0, 45, 90, or 135

d

numeric. Distance for calculating GLCM

normalize

boolean. Normalize output image before calculating statistics