Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Correlation returns NA values #9

Open
acanion opened this issue Apr 14, 2020 · 0 comments
Open

Correlation returns NA values #9

acanion opened this issue Apr 14, 2020 · 0 comments

Comments

@acanion
Copy link

acanion commented Apr 14, 2020

This is perhaps more of a clarification issue. In areas of an image where the window and shifted window all contain the same value (i.e. all in the same bin), variance = 0, and thus, correlation cannot be calculated (divide by 0). I ran glcm on WorldView satellite data in both R and ENVI, and these areas (often water) returned NA in R and 1.0 in ENVI. So it appears the R package is coded to return no data, but ENVI assigns a value of exactly 1.0. This may be good to clarify in the documentation. Thanks.

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

No branches or pull requests

1 participant