Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

Panasonic G3/G5 support

2012-10-01
2013-02-27
  • doctordruidphd
    doctordruidphd
    2012-10-01

    Hello,

    To enable decoding and the color matrix for the G3 and the G5, you need to insert these lines into the dcraw.cc file (best place is below the G2 line) before compiling:

        { "Panasonic DMC-G3", 143, 0xfff,
            { 6763,-1919,-863,-3868,11515,2684,-1216,2387,5879 } },
        { "Panasonic DMC-G5", 143, 0xfff,
            { 7122,-2092,-419,-4643,11769,3283,-1363,2413,5944 } },
    

    The G3 values come from the most recent version of dcraw's code, the G5 values I worked out myself. May not be perfect, but it's workable for now.

     
  • doctordruidphd
    doctordruidphd
    2012-10-01

    For the record, how I got these numbers:

    1. Download the latest Adobe DNG converter (free) here:

    http://labs.adobe.com/downloads/cameraraw7-2.html

    This is a windows program, but it will install and run under wine.

    2. Photograph an X-rite Passport, making sure that nothing on it is overexposed. About 1/2 to 1 stop underexposed seems to work best.

    3. Run the DNG converter on your RW2 file.

    4. Install the X-rite profiling software that comes with the Passport; this too is a windows program, but it also works with wine.  Use the .dng from step 3 to create a dcp profile.

    5. Install the dcp2icc tool from:

    http://dcp2icc.sourceforge.net

    6. Run the dcp2icc program on the dcp file you just created with the X-rite software.
    This will print out the color matrix values, which you can then plug in to dcraw.c (or dcraw.cc for building ufraw).

    This is how I did it. i didn't say it was easy…

     
  • Support for the G3 has been in the cvs repository for a while. I hope to get an update for dcraw.cc from Dave Coffin soon with the color matrices from ACR 7.2 which includes the G5. I will update the cvs code then.

    Regards,
    Niels Kristian