ailich / GLCMTextures

This R package calculates the most common gray-level co-occurrence matrix (GLCM) texture metrics used for spatial analysis on raster data.
https://ailich.github.io/GLCMTextures/
GNU General Public License v3.0
12 stars 4 forks source link

GLCMTextures in Python #22

Closed henzb72 closed 1 year ago

henzb72 commented 1 year ago

Hi Ailich,

Is there any sort of this GLCM codes in python? I've tried to develop one, but it seems it needs something to correct.

Cheers, Hendra

ailich commented 1 year ago

I don't really work in python so I'm not too aware of what's out there but from some quick googling here are some resources.

https://towardsdatascience.com/glcms-a-great-tool-for-your-ml-arsenal-7a59f1e45b65 https://github.com/MartimChaves/glcm_sat_img https://scikit-image.org/docs/stable/auto_examples/features_detection/plot_glcm.html https://github.com/tzm030329/GLCM

ailich commented 1 year ago

You can also pass objects between R and python using the reticulate package in R or the rpy2 package in python if you'd like to use GLCMTextures but mainly work in python. Also if you want to code it yourself in python you can follow the ReadMe for this repository as well as the texture tutorial by Mryka Hall-Beyer

henzb72 commented 1 year ago

Well noted. Thank you