The glcm
package enables calculating image textures derived from grey-level
co-occurrence matrics (GLCMs) in R. The texture calculation is coded in C++
to optimize computation time. The glcm
function in the package can compute
the following texture statistics: mean (using either of two definitions),
variance (using either of two definitions), homogeneity, contrast,
dissimilarity, entropy, second_moment, and, correlation. The window size,
shift, and grey-level quantization are user determined. See the help file for
glcm
(included in the package) for details.
To install the latest stable version of glcm
from
CRAN, fire up R and run:
install.packages('glcm')
If you want the very latest version of glcm
, you can install the development
version. Be aware this version might not install as it is not as well tested as
the stable version.
NOTE: If you are installing on Windows, you will need to install the
appropriate version of Rtools
for your version of R (as glcm
contains C++ code) before you follow the below
steps.
The easiest way to install the development version of the glcm
package is
using the
devtools
package by Hadley
Wickham. After installing devtools
from CRAN, type:
library(devtools)
install_github('azvoleff/glcm')
Alex Zvoleff
Postdoctoral Associate
Tropical Ecology Assessment and Monitoring (TEAM) Network
Conservation International
2011 Crystal Dr. Suite 500
Arlington, VA 22202
USA