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 stored upside down #3
Comments
AFAIK imageio saves the images in the same "orientation" as e.g. I was not aware that most other toolkits do it differently. If this is
|
Please have a look at scikit-image/scikit-image#1101 I think this is the same issue and really a bug. |
Ah, I did not understand that this was specific to 16bits images. I backported Stefan's Fix. Can you try and see whether it works? |
Yep it's working. |
Great! |
I find it extremely unintuitive that imageio (through freeimage) expects image arrays to be upside down to be saved correctly. Virtually every other library does it the other way. There should be a big fat warning in the imageio documentation that I have to flip my image. Ideally though, imageio would do the flipping for me (when reading or writing using freeimage). Or did I miss something fundamental? Btw, I'm writing 16bit tiff files.
Quoting freeimage docs:
EDIT: Just noticed that I actually have to flip both axes, so img[::-1,::-1], really confusing.
EDIT2: Seems to be the same issue as in scikit-image/scikit-image#1101
The text was updated successfully, but these errors were encountered: