-
Notifications
You must be signed in to change notification settings - Fork 14
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
12-bit images are saved with errors #181
Comments
Neither version is saving the data correctly, although the older version fails less spectacularly than the current one. Writing files with unusual bit depths has probably never been supported Fortunately, I had done some preparatory work for this scenario a while back, so I've been able to put a PR together without too much effort |
Maybe there is some error in what is saved by the old version, but I'm not aware of it. The data are in full correspondence with what I've got from a 12-bit camera. |
The actual bottom-right pixel in your example is If you load the file with |
Should be fixed on latest master thanks to @chrstphrbrns! |
When running some old code on an updated environment, I noticed that 12-bit images (that is, with elements of
Gray{N4f12}
type) are saved with errors.I have checked with the old version of TiffImages.jl; it works as expected. Here is a MWE:
The result is this
If you run the same MLE without specifying the version for TiffImages, the result is like this:
I'm on Windows, julia 1.11.2.
The text was updated successfully, but these errors were encountered: