Luminous Landscape Forum

Raw & Post Processing, Printing => Colour Management => Topic started by: Iliah on March 11, 2013, 11:46:45 am

Title: Flat field correction for CGATS
Post by: Iliah on March 11, 2013, 11:46:45 am
New version of RawDigger available for download at http://www.rawdigger.com/node/194 includes the flat field correction based on a separate shot of a uniform surface replacing the target.

To illustrate how the flat field works I used a Zeiss 2/50 Makro lens on a Olympus OM-D EM-5. Contrary to normal, the aperture was fully opened and the traget was filling the frame. That allows to see sort of real life scenario. The target and reference white sheet of regular thick matt paper were not perfectly flat as I used clips to mount it instead of more fancy hold I normally do.

The shot of the target, raw (https://s3.amazonaws.com/IliahBorg/FlatField/_1010921.ORF)

The reference shot for the flat field, raw (https://s3.amazonaws.com/IliahBorg/FlatField/_1010930.ORF)

The CGATS file without the flat field compensation (https://s3.amazonaws.com/IliahBorg/FlatField/_1010921_ORF_CGATS_g18_242_NoFFD.txt), if converted to bitmap it looks like
(https://s3.amazonaws.com/IliahBorg/FlatField/_1010921_ORF_CGATS_g18_242_NoFFD.jpg)

The CGATS with flat field correction applied (https://s3.amazonaws.com/IliahBorg/FlatField/_1010921_ORF_CGATS_g18_248.txt), if converted to bitmap it looks like
(https://s3.amazonaws.com/IliahBorg/FlatField/_1010921_ORF_CGATS_g18_248.jpg)

It is interesting to compare the corrected and non-corrected for flat field files (CGATS data or JPEG renditions) for the difference between the RGB values on the peripheral and central white patches, as well as between neutral patches in different locations on the periphery of the target.

For the reference, the values measured off the target (https://s3.amazonaws.com/IliahBorg/FlatField/DigitalColorCheckerSG.txt) itself and generic RGB rendition of the reference values

(https://s3.amazonaws.com/IliahBorg/FlatField/DigitalColorCheckerSG.jpg)

Now, the profile can be calculated using the free Argyll CMS, one of the ways:

txt2ti3 -v -i CGATS_From_RD.txt Orig_Digital_ColorChecker_SG.txt Data4ProfileCalculation

colprof -v -A "CameraMake" -M "CameraModel" -D "Profile Description" -C "Your Copyright" -y -qu -aG -nc -O ProfileName.icc Data4ProfileCalculation

You can also use http://www.rawdigger.com/node/193 for questions, bug reports, and feature requests.