Skip to content

GLCM module - #455

Open
kelewinska wants to merge 18 commits into
davidfrantz:developfrom
kelewinska:develop_glcm_thr
Open

kelewinska wants to merge 18 commits into
davidfrantz:developfrom
kelewinska:develop_glcm_thr

Conversation

@kelewinska

Copy link
Copy Markdown
Contributor

Hi David,

In response top #449 I added a new high-level module to calculate second-order co-occurrence Metrics (GLCM): CONtrast, DISsimilarity, HOMogenity, ENTropy, and UNIformity. The returned statistics are aggregated over all main directions, i.e., unlike for some implementations this module can't be run only for a specific direction in mind.
The GLCM is controlled with GLCM_WINDOW which defines the size (in px) of the squared moving window used to calculate statistics. Furthermore, there is GLCM_MIN and GLCM_MAX with which user defines the range of grey levels to be used. All values below the GLCM_MIN are mapped to the declared min value, while all values greater than GLCM_MAX are rescaled to the declared max value. This way when running GLCM on an index [-1, 1] one can control for it with -10000 and 10000, respectively, while GLCM on NIR band could be done with, for example for a range of [1000, 7000].

Importantly, the following scaling factors are used for the output values: DIS ×100, CON ×10, HOM ×10000, ENT ×1000, UNI ×10000

The prm file does not include READ_ERROR_PRIMARY = SKIP - issue #450

I tested the module and it seems to work (for me ;) )

Cheers,
k

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant