CFA Pattern Decoding

Started by blue-j, November 02, 2020, 06:42:29 PM

Previous topic - Next topic

blue-j

I think this is already done with CR2 CFAs, but for tags exif:CFAPattern and exif:subifd4:CFAPattern2 we need to decode the raw values using this reference, I believe:

https://www.awaresystems.be/imaging/tiff/tifftags/privateifd/exif/cfapattern.html

(They seem to be exactly what the CR2 CFA decoding does exif:CR2CFAPattern

https://exiftool.org/TagNames/EXIF.html

Thanks for considering this point!  - J

Phil Harvey

Examples would be extremely useful here so I could understand what you are talking about.

Are you saying that the CFAPattern decoding is incomplete or incorrect?

Or are you just saying the ExifTool documentation is incomplete?

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

blue-j

I mean ET reports the numbers and not their meaning.  I'll try to find the files that evinced the issue and post, but that's what I meant to say.  - J

Phil Harvey

When I looked at this, it seemed to me that the CFAPattern numbers were converted to a meaningful RGB pattern, but CFAPattern2 wasn't.  I don't know exactly why not for CFAPattern2, but if that's the problem I could look into this.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

blue-j

The documentation may need to be updated, as it doesn't show either of them decoded:

https://exiftool.org/TagNames/EXIF.html

Thanks for your attention to this monumental matter!  :p

Phil Harvey

The documentation only shows translations that use a lookup table.  The CFAPattern translation is too complex for a lookup table (well, a complete lookup table at least).

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

blue-j

I trust your judgment.  Thanks for having a look!   - J