[Digikam-users] dcraw and rw2

Gilles Caulier caulier.gilles at gmail.com
Mon Jan 12 07:18:53 GMT 2009


2009/1/11 Sven Burmeister <sven.burmeister at gmx.net>

> Am Sonntag, 11. Januar 2009 19:10:05 schrieb Gilles Caulier:
> > First. Which version of digiKam you use ?
>
> 0.10 svn
>
> > Second, which libkdcraw and libraw you use (go to about dialog for
> details)
>
>

>
> LibKdcraw: 0.4.0
> LibRaw: 0.6.3-Release


It's a pretty ol release we use now LibRaw 0.6.7 included in libkdcraw from
KDE 4.2 svn branch.

I recommend to use this version. libkdcraw is included in kdegraphics
package (published with KDE releases)

You can compile yourself this library using source code from KDE repository.
Look here for details :

http://www.digikam.org/sharedlibs


>
> > Third, Look on the console which debug info you have when Raw import tool
> > is loaded.
>
> The output seems to be normal:
>
> digikam(8817)/digikam (core) Digikam::DImg::load:
> "/media/Bueffel/Bilder/Private Photos/2009-01-05 Schnee in
> Aachen/p1000164.rw2"  : RAW file identified
> Wavelet denoising...
> timeChanged
> void SunLocator::update()
> Scaling with darkness 15, saturation 4095, and
> multipliers 1,832700 1,000000 1,760456 1,000000
> Bilinear interpolation...
> Median filter pass 1...
> timeChanged
> void SunLocator::update()
> Median filter pass 2...
> timeChanged
> void SunLocator::update()
> Median filter pass 3...
> Median filter pass 4...
> Median filter pass 5...
> Converting to sRGB colorspace...
> LibRaw: data info: width 3668 height 2754 rgbmax 255
>

Sound like you don't have any debug output here. Look my console output when
a CR2 file is open in Raw import tool :

digikam(24086) Digikam::DImg::load: "/mnt/data/photos/Albums/Test
Pictures/RAW/Horizontal/CANON-EOS350D-01.CR2"  : RAW file identified
digikam(24086) KDcrawIface::KDcraw::loadFromDcraw: LibRaw: dcraw emulation:
("-4", "-h", "-H 0", "-w", "-q 3", "-n 100", "-o1",
"/mnt/data/photos/Albums/Test Pictures/RAW/Horizontal/CANON-EOS350D-01.CR2")
digikam(24086) KDcrawIface::KDcrawPriv::progressCallback: LibRaw progress:
Reading metadata  pass  0  of  2
digikam(24086) KDcrawIface::KDcrawPriv::progressCallback: LibRaw progress:
Reading metadata  pass  1  of  2
digikam(24086) KDcrawIface::KDcrawPriv::progressCallback: LibRaw progress:
Reading RAW data  pass  0  of  2
digikam(24086) KDcrawIface::KDcrawPriv::progressCallback: LibRaw progress:
Interpolating  pass  6  of  10
digikam(24086) KDcrawIface::KDcrawPriv::progressCallback: LibRaw progress:
Interpolating  pass  7  of  10
digikam(24086) KDcrawIface::KDcrawPriv::progressCallback: LibRaw progress:
Interpolating  pass  8  of  10
digikam(24086) KDcrawIface::KDcrawPriv::progressCallback: LibRaw progress:
Reading RAW data  pass  1  of  2
digikam(24086) KDcrawIface::KDcrawPriv::progressCallback: LibRaw progress:
Scaling colors  pass  0  of  2
Wavelet denoising...
digikam(24086) KDcrawIface::KDcrawPriv::progressCallback: LibRaw progress:
Interpolating  pass  9  of  10
digikam(24086) KDcrawIface::KDcrawPriv::progressCallback: LibRaw progress:
Converting to RGB  pass  0  of  2
Converting to sRGB colorspace...
digikam(24086) KDcrawIface::KDcrawPriv::progressCallback: LibRaw progress:
Converting to RGB  pass  1  of  2
LibRaw: data info: width 3474 height 2314 rgbmax 65535
Scaling with darkness 256, saturation 4095, and
multipliers 2.238703 1.000000 1.450884 1.001965
digikam(24086) KDcrawIface::KDcrawPriv::progressCallback: LibRaw progress:
Scaling colors  pass  1  of  2
digikam(24086) KDcrawIface::KDcrawPriv::progressCallback: LibRaw progress:
Pre-interpolating  pass  0  of  2
digikam(24086) KDcrawIface::KDcrawPriv::progressCallback: LibRaw progress:
Pre-interpolating  pass  1  of  2
digikam(24086) KDcrawIface::KDcrawPriv::progressCallback: LibRaw progress:
Converting to RGB  pass  0  of  2
Converting to sRGB colorspace...
digikam(24086) KDcrawIface::KDcrawPriv::progressCallback: LibRaw progress:
Converting to RGB  pass  1  of  2
LibRaw: data info: width 1737 height 1157 rgbmax 65535
digikam(24086) Digikam::EditorToolThreaded::slotEffect: Preview  "Raw
Import"  started...
digikam(24086) Digikam::EditorToolThreaded::slotFilterFinished: Preview
"Raw Import"  completed...

The most important line is this one :

digikam(24086) KDcrawIface::KDcraw::loadFromDcraw: LibRaw: dcraw emulation:
("-4", "-h", "-H 0", "-w", "-q 3", "-n 100", "-o1",
"/mnt/data/photos/Albums/Test Pictures/RAW/Horizontal/CANON-EOS350D-01.CR2")

...where you can see all dcraw emulated options done by LibRaw.

This preview section of debug message are generated by Raw Import preview
job which render image on tool using an half version of demosaiced RAW file.
When you press "Import" button, the job is done over whole image data :

digikam(26546) Digikam::DImg::load: "/mnt/data/photos/Albums/Test
Pictures/RAW/Horizontal/CANON-EOS350D-01.CR2"  : RAW file identified
digikam(26546) KDcrawIface::KDcraw::loadFromDcraw: LibRaw: dcraw emulation:
("-4", "-H 0", "-w", "-q 3", "-n 100", "-o 1", "/mnt/data/photos/Albums/Test
Pictures/RAW/Horizontal/CANON-EOS350D-01.CR2")
digikam(26546) KDcrawIface::KDcrawPriv::progressCallback: LibRaw progress:
Reading metadata  pass  0  of  2
digikam(26546) KDcrawIface::KDcrawPriv::progressCallback: LibRaw progress:
Reading metadata  pass  1  of  2
digikam(26546) KDcrawIface::KDcrawPriv::progressCallback: LibRaw progress:
Reading RAW data  pass  0  of  2
digikam(26546) KExiv2Iface::KExiv2::load: File '  ' is not readable.
digikam(26546) KDcrawIface::KDcrawPriv::progressCallback: LibRaw progress:
Reading RAW data  pass  1  of  2
digikam(26546) KDcrawIface::KDcrawPriv::progressCallback: LibRaw progress:
Scaling colors  pass  0  of  2
Wavelet denoising...
Scaling with darkness 256, saturation 4095, and
multipliers 2.238703 1.000000 1.450884 1.001965
digikam(26546) KDcrawIface::KDcrawPriv::progressCallback: LibRaw progress:
Scaling colors  pass  1  of  2
digikam(26546) KDcrawIface::KDcrawPriv::progressCallback: LibRaw progress:
Pre-interpolating  pass  0  of  2
digikam(26546) KDcrawIface::KDcrawPriv::progressCallback: LibRaw progress:
Pre-interpolating  pass  1  of  2
AHD interpolation...
digikam(26546) KDcrawIface::KDcrawPriv::progressCallback: LibRaw progress:
Interpolating  pass  0  of  10
digikam(26546) KDcrawIface::KDcrawPriv::progressCallback: LibRaw progress:
Interpolating  pass  1  of  10
digikam(26546) KDcrawIface::KDcrawPriv::progressCallback: LibRaw progress:
Interpolating  pass  2  of  10
digikam(26546) KDcrawIface::KDcrawPriv::progressCallback: LibRaw progress:
Interpolating  pass  3  of  10
digikam(26546) KDcrawIface::KDcrawPriv::progressCallback: LibRaw progress:
Interpolating  pass  4  of  10
digikam(26546) KDcrawIface::KDcrawPriv::progressCallback: LibRaw progress:
Interpolating  pass  5  of  10
digikam(26546) KDcrawIface::KDcrawPriv::progressCallback: LibRaw progress:
Interpolating  pass  6  of  10
digikam(26546) KDcrawIface::KDcrawPriv::progressCallback: LibRaw progress:
Interpolating  pass  7  of  10
digikam(26546) KDcrawIface::KDcrawPriv::progressCallback: LibRaw progress:
Interpolating  pass  8  of  10
digikam(26546) KDcrawIface::KDcrawPriv::progressCallback: LibRaw progress:
Interpolating  pass  9  of  10
digikam(26546) KDcrawIface::KDcrawPriv::progressCallback: LibRaw progress:
Converting to RGB  pass  0  of  2
Converting to sRGB colorspace...
digikam(26546) KDcrawIface::KDcrawPriv::progressCallback: LibRaw progress:
Converting to RGB  pass  1  of  2
LibRaw: data info: width 3474 height 2314 rgbmax 65535

... and take more time. Look the difference between dcraw option emulated
with preview and import sequence : only "-h" is used to render preview (Half
size demosaicing)



>
> > > Another dcraw/digikam related question, if I want to use the -W option
> > > via digikam, what do I have to set? Whitebalance: level = 0?
>
> Any hint on what I have to set in digikam to use the -W or is it not
> implemented yet? I need it because otherwise dcraw will add noise to the
> picture.


"-W" option is already implemened since a long time (in fact all 95% of
dcraw options are emulated by LibRaw). With -W, white balance is
automatically computed and all others settings relevant of WB are disabled.

Gilles
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/digikam-users/attachments/20090112/a719b0bb/attachment.html>


More information about the Digikam-users mailing list