dcraw and rw2

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

dcraw and rw2

S. Burmeister
Hello!

I want to debug some issue with importing .rw2 pictures. If I set median to 5
and noise reduction to 300 and click on update, I see a difference. However,
if I click on import, the picture imported looks as if I did not apply any
settings.

So first question, does anyone else see this with rw2 files?

I want to compare the pictures imported via digikam and those I get directly
from dcraw. I read the man-page of dcraw and I think what I need is:

dcraw -m 5 -n 300 -T

However, if I do so on the command line I get a corrupted image and:

p1000164.rw2: Unexpected end of file

Could this be the cause of the above described issue?

Another dcraw/digikam related question, if I want to use the -W option via
digikam, what do I have to set? Whitebalance: level = 0?

Thanks

Sven
_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users
Reply | Threaded
Open this post in threaded view
|

Re: dcraw and rw2

Gilles Caulier-4
First. Which version of digiKam you use ?

Second, which libkdcraw and libraw you use (go to about dialog for details)

Third, Look on the console which debug info you have when Raw import tool is loaded.

Best

Gilles Caulier

2009/1/11 Sven Burmeister <[hidden email]>
Hello!

I want to debug some issue with importing .rw2 pictures. If I set median to 5
and noise reduction to 300 and click on update, I see a difference. However,
if I click on import, the picture imported looks as if I did not apply any
settings.

So first question, does anyone else see this with rw2 files?

I want to compare the pictures imported via digikam and those I get directly
from dcraw. I read the man-page of dcraw and I think what I need is:

dcraw -m 5 -n 300 -T

However, if I do so on the command line I get a corrupted image and:

p1000164.rw2: Unexpected end of file

Could this be the cause of the above described issue?

Another dcraw/digikam related question, if I want to use the -W option via
digikam, what do I have to set? Whitebalance: level = 0?

Thanks

Sven
_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users


_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users
Reply | Threaded
Open this post in threaded view
|

Re: dcraw and rw2

S. Burmeister
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)

digiKam version 0.10.0-rc1 (rev.: 909372)
Exiv2 can write to Jp2: No
Exiv2 can write to Jpeg: Yes
Exiv2 can write to Png: No
Exiv2 can write to Tiff: No
Exiv2 support XMP metadata: Yes
LibCImg: 129
LibExiv2: 0.16
LibJPEG: 62
LibJasper: 1.900.1
LibKDE: 4.1.87 (KDE 4.1.87 (KDE 4.2 >= 20090101)) "release 78.2"
LibKExiv2: 0.5.0
LibKdcraw: 0.4.0
LibLCMS: 117
LibPNG: 1.2.26
LibQt: 4.4.3
LibRaw: 0.6.3-Release
LibTIFF: LIBTIFF, Version 3.8.2 Copyright (c) 1988-1996 Sam Leffler Copyright
(c) 1991-1996 Silicon Graphics, Inc.
Marble widget: pre 0.7 SVN
LibGphoto2: 2.4.1.2
LibKipi: 0.3.0


> 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

> > 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.

Sven
_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users
Reply | Threaded
Open this post in threaded view
|

Re: dcraw and rw2

Gilles Caulier-4


2009/1/11 Sven Burmeister <[hidden email]>
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

_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users