Error saving a demosaiced image: "Cannot handle this data type: (1, 1, 3), <f4" #58
Answered
by
KelSolaar
alessandrofrancesconi
asked this question in
Q&A
-
I'm trying to demosaic a BMP image based on "GRBG" Bayer pattern, this way:
But To be noted, the program shows this warning at the beginning: If useful, this is the input image: input.zip Can you help me? Thanks! |
Beta Was this translation helpful? Give feedback.
Answered by
KelSolaar
Oct 28, 2023
Replies: 1 comment 1 reply
-
After installing OpenImageIO, it worked. Anyway, I'm wondering what could be the issue with Imageio. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @alessandrofrancesconi,
We always convert the image type to
float32
and normalise it between [0, 1] if it is of an integer type:When it come to writing, Imageio is not as smart as OpenImageIO and tries to write that
float32
data into a 8-bit Bitmap container, so it fails.Hope that makes sense!
Cheers,
Thomas