I would like to know if it is possible to get the RAW tuple values of a pixel after a snapshot with the “BAYER” mode. I’m am actually using the get_pixel() function with “True” parameter to get the tuple value. However, I noticed that the “Blue” value is always the same as the “Red” one. In “RGB565” mode it works fine, but I would like to do it in “BAYER” mode to get the RAW values. I also noticed that the “BAYER” mode is on 8-bits, is it the reason why it is not working?
Finally, I just want to know if it is possible to do it and how with the IDE. My goal is simply to print each value after that.
The current code doesn’t do what you want. What you’d like for it to do is to Debayer the image for that particular pixel and then return the RGB888 tuple for that pixel. And then rgbtuple is not true you’d like the grayscale pixel bayer value right?
If this is correct, please create a github issue ticket for this.
I can create one for you also if this is difficult.
When you say the red and blue value is always the same, do you mean for every pixel in the image (which would imply a bug that should be fixed), or for some particular pixel or set of pixels? Sounds like you’re looking at the green pixels of the Bayer matrix. When you say you want the RAW value of a pixel, do you mean as close to the original sensor pixel value as possible, which is a single value, not an RGB tuple, namely the intensity of light captured by the pixel after going through a red, green, or blue Bayer filter over that pixel? Or do you mean you want a “raw RGB” value, which isn’t really a meaningful concept, but I can see how one might think it is a thing since a lot of photo software will open a RAW image and then display it in color, giving people the impression that RAW images are color images, when, strictly speaking, they are single channel mosaics of three colors (Bayer patterns)? When RAW software displays a RAW image in color, it is deBayering the image before it displays it to you. The “real RAW” image is grayscale. Which is why, as you pointed out, the Bayer images are 8-bit images. They only contain a single value per pixel.