It is possible to convert a pure RAW_SENSOR Image to a bitmap with 16bits of precision and get their pixels out of it?
Asked
Active
Viewed 247 times
1 Answers
3
A RAW "image" is not really an image. It represents the raw (hence the name) sensor data from the camera. To get a bitmap you would need to "develop" the photo.
However a good, general-purpose algorithm for developing a RAW photo is very hard to develop. If I knew a bit more about your situation I could suggest a possible solution but I think your best bet is either using the developed image directly or find some way to convert it using a preexisting algorithm.
I strongly recommend the former because the phone's built-in algorithm will most likely be better than whatever library you might find.
-
You are right however the only problem with built-in algorithms is that they convert a 16-bit raw data into a 8-bit "readable" image. So information is lost in the process – Jotarata Apr 01 '21 at 02:23
-
I may have misunderstood but I'm pretty sure that RAW files store more data because they are an inherently different format. Naturally you're losing data by developing the image but the number of bits in the resulting image is not the actual culprit. – Apr 01 '21 at 03:27
-
Well I finally managed to do this, thanks for your help anyway I'll post my solution if anyone asks – Jotarata Apr 10 '21 at 01:46
-
-