I would like to create an application that performs recognition by looking at the color state of a specific area of an camera image. Therefore, I would like to know to if the color information can be accurately obtained. (I would like to know if it is linearly related to physical quantities.)
Question 1
Does the RGB image acquired by AVCapturePhotoOutput have gamma correction applied? If I want to remove the gamma correction, can I get the gamma value from the API? And are there any other corrections that should be turned off? I was able to turn off the exposure adjustment and white balance auto-tuning.
Question 2
If I use a RAW (Bayer) image that can be acquired with AVCapturePhotoOutput, can I get the value of each pixel?
Question 3 (optional)
I understand that camera images can be acquired through various processes (dead pixel removal, black level adjustment, noise reduction, white balance, demosaicing, gamma correction ...etc ). It would be very helpful to know the processing pipeline in the iPhone. And I would also like to know which step the RAW and RGB images are output from. Is this information available to the public?