-
Notifications
You must be signed in to change notification settings - Fork 80
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
Correct way to read photometric interpretation? #254
Comments
That's probably the best way to get the photometric interpretation at the moment. There's also the option of calling |
@fintelia Ah yeah so I'm already using colortype, in this case I have two tiffs with the same colortype but flipped if zero is black or white is black which isn't encoded into the colortype. Thank you! |
That conversion is actually handled internally: image-tiff/src/decoder/image.rs Lines 661 to 663 in 96d3a02
|
Huh! Thanks for taking the time to answer. I must be dealing with some other issue! |
What's the intended way to access the photometric interpretation tag? By the time I have a decoder it's been parsed and stored in the Image. But the image field is private and the Decoder doesn't offer a method to access it. Should I just fall back on munging about with tags?
The text was updated successfully, but these errors were encountered: