Hi Everybody,
I'm currently working on a piece of software that has to read raw DNG image data. Everything seems to work fine except one nasty detail:
CfaRepeatPatternDim is: 2, 2
CfaPattern of the file is: 0, 1, 1, 2 (R, G, G, B)
CfaPlaneColor is: 0, 1, 2 (R, G, B)
CfaLayout is: 1 (Rectangular)
So I assumed the Sensor data is laid out as follows:
RGR G R G ...
GBGBGB ...
...
But the resulting image had completely wrong colors (way too green, unable to reconstruct the original colors by channel mixing)
I figured out that the image looks right when using a CfaPattern of 1, 0, 2, 1
GBGBGB ...
RGR G R G ...
...
What did I miss?
Some othe values that might help:
ImageWidth: 5344
ImageLength: 3516
ActiveArea: 51, 142, 3516, 5344
DefaultCropOrigin: 10/1 5/1
DefaultCropSize: 5184/1 3456/1
Model: Canon EOS 600D
Thanks in advance for any hint!