Home > Blockchain >  Python: Convert RAW image to PNG
Python: Convert RAW image to PNG

Time:03-25

I am struggling with processing a raw image with Python to convert it to png format. Processing these type of data is new to me and I don't quite understand the logic yet.

The image data (as per the camera doc) is 12 bit, little-Endian order with a Bayer pattern. The image is 2048x1944 px. Image available enter image description here

The moon is not the best choice, because we can't verify the correctness of the colors...

Note:
I "manually" scaled up the red and the blue color channels to make the moon gray (instead of green).
We may refer the scaling as manual White Balance.

  • Related