ExifTool Forum

ExifTool => The "exiftool" Application => Topic started by: bwana on April 22, 2014, 06:28:23 PM

Title: cfapattern for raw files other than dng?
Post by: bwana on April 22, 2014, 06:28:23 PM
is there a way to determine the cfapattern for .raf, .nef, etc?
Title: Re: cfapattern for raw files other than dng?
Post by: Phil Harvey on April 23, 2014, 07:20:30 AM
Sorry, I don't know the answer to this.  I would look at a raw decoder like dcraw to figure out how it does it.

- Phil
Title: Re: cfapattern for raw files other than dng?
Post by: bwana on April 24, 2014, 11:29:07 PM
well i converted a fuji raf file (DSCF6002.raf) to dng using adobe dng converter 8.4
then i ran this command

C:\exiffolder\exiftool.exe "-cfapattern*" -g1 -k ir\DSCF6002.dng

and i got this

---- SubIFD ----
CFA Pattern 2                   : 0 1 0 2 1 2 1 2 1 1 0 1 1 0 1 1 2 1 2 1 2 0 1 0 1 0 1 1 2 1 1 2 1 1 0 1
---- Composite ----
CFA Pattern                     : [Red,Green,Red,Blue,Green,Blue][Green,Blue,Green,Green,Red,Green][Green,Red,Green,Green,Blue,Green][Blue,Green,Blue,Red,Green,Red][Green,Red,Green,Green,Blue,Green][Green,Blue,Green,Green,Red,Green]
-- press any key --

am i not supposed to get only four digits representing a grid? after all, even the fuji array is 1 red, 2 greens and 1 blue

What i am trying to do is swap the red and blue channels with a command like this:

exiftool.exe -SubIFD:CFAPattern2="0 1 0 2 1 2 1 2 1 1 0 1 1 0 1 1 2 1 2 1 2 0 1 0 1 0 1 1 2 1 1 2 1 1 0 1" "-filename=%f-CS.%e" -k

but the images look identical




Title: Re: cfapattern for raw files other than dng?
Post by: Phil Harvey on April 25, 2014, 07:23:32 AM
I know that some Fuji sensors are really funny, but I don't understand them in detail.

- Phil