-
Notifications
You must be signed in to change notification settings - Fork 83
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
histMatch()
fails on multiband rasters
#117
Comments
I think I have found a solution that fixes this issue! Here is my proposed solution:
And you can check the results with the example rasters from above with this code:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi Benjamin,
I have been doing some processing to Sentinel 2 imagery, and I think I have discovered a bug with
histMatch()
when I attempt to do color balancing between tiles withhistMatch()
I have noticed that many bands show much lower maximum values than what is in the corresponding band of the reference raster. Digging into this, I think the issue arises whentotalFun()
gets passed toterra:::app()
.terra::app()
doesn't cycle through the multiple inverse reference empirical cumulative density functions that are created fromlayerFun
You can observe the behavior with this reproducible example:Here is my session info:
The text was updated successfully, but these errors were encountered: