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

Images on zenodo are all-black-image #1

Open
XiaoXiLe2023 opened this issue Aug 12, 2021 · 1 comment
Open

Images on zenodo are all-black-image #1

XiaoXiLe2023 opened this issue Aug 12, 2021 · 1 comment

Comments

@XiaoXiLe2023
Copy link

Thanks for your project!

I download images.tar.gz on zenodo and unzip it.
All of the images are black tif files wth the size of 366KB.

If there is nothing wrong with it, how can I transfer it into RGB image?

@mommermi
Copy link
Contributor

Please check the actual image data arrays - they should not be all zero. The images might appear black due to insufficient scaling. What I typically do is to scale each band based on its minimum and maximum values: x_scaled = a+b*(x-min(x))/(max(x)-min(x)), where x is one of your bands; you can start with a=0 and b=1 and then experiment with a and b to get nice images. Also, keep in mind that the image data has 13 bands; RGB is located in bands 4, 3, 2, respectively.

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

2 participants