ExifTool Forum

General => Metadata => Topic started by: blue-j on November 02, 2020, 06:42:29 PM

Title: CFA Pattern Decoding
Post by: blue-j on November 02, 2020, 06:42:29 PM
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 (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 (https://exiftool.org/TagNames/EXIF.html)

Thanks for considering this point!  - J
Title: Re: CFA Pattern Decoding
Post by: Phil Harvey on November 02, 2020, 09:13:44 PM
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
Title: Re: CFA Pattern Decoding
Post by: blue-j on November 03, 2020, 08:46:22 PM
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
Title: Re: CFA Pattern Decoding
Post by: Phil Harvey on November 03, 2020, 10:17:02 PM
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
Title: Re: CFA Pattern Decoding
Post by: blue-j on November 04, 2020, 12:18:18 PM
The documentation may need to be updated, as it doesn't show either of them decoded:

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

Thanks for your attention to this monumental matter!  :p
Title: Re: CFA Pattern Decoding
Post by: Phil Harvey on November 04, 2020, 12:26:01 PM
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
Title: Re: CFA Pattern Decoding
Post by: blue-j on November 06, 2020, 01:29:51 PM
I trust your judgment.  Thanks for having a look!   - J