I am trying to use Mathematica to import and process raw camera data in the Canon CR2 format. What I would like is data which has a linear relationship to exposure. I am thinking that the closest I could get to that would be demosaiced data imported with gamma = 1. Can anyone tell me what preprocessing occurs for Import[imageFile] when the imageFile is a raw format?
Thank you.
"RawImage"element is what you need. But I'd be interested to know what processing is done by default. – Alexey Popkov Oct 10 '17 at 04:30"ColorProfileData"element can shed light on the encoding. Then you can useColorConvertto convert to sRGB which on turn can be converted to linear RGB. – Alexey Popkov Oct 10 '17 at 04:34