Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

dot-calcGLCM

Calculate GLCM


Description

Some notes about this internal 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

Usage

.calcGLCM(data, n_grey, angle, d = 1, normalize = TRUE)

Arguments

data

matrix. 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 if TRUE


ForestTools

Analyzing Remotely Sensed Forest Data

v0.2.4
GPL (>= 3)
Authors
Andrew Plowright, Jean-Romain Roussel
Initial release
2021-04-12

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.