Bug 266674 - green grid in images imported from raw file (cr2)
Summary: green grid in images imported from raw file (cr2)
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Plugin-DImg-RAW (show other bugs)
Version: 2.0.0
Platform: Unlisted Binaries Linux
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-02-19 17:11 UTC by Gandalf Lechner
Modified: 2012-06-27 10:24 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In: 2.0.0


Attachments
screenshot (88.43 KB, image/jpeg)
2011-02-19 17:11 UTC, Gandalf Lechner
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Gandalf Lechner 2011-02-19 17:11:52 UTC
Created attachment 57378 [details]
screenshot

Version:           2.0.0 (using KDE 4.6.0) 
OS:                Linux

After importing a raw file (cr2), a greenish grid appears in the imported image. screenshot attached.

Reproducible: Didn't try




OS: Linux (x86_64) release 2.6.35-26-generic
Compiler: cc
Comment 1 Marcel Wiesweg 2011-02-19 17:17:42 UTC
Can you provide the original file somewhere? If you dont have webspace, send it to me by private mail, I can upload to our test collection.
Then we can try to reproduce. Just as well, assuming this is a libraw problem, Alex may want to have the image.
Comment 2 caulier.gilles 2011-02-19 17:24:07 UTC
Alex,

I CC you for info...

Gandalf,

Got to Help/Components Info and copy and paste here the contents...

Gilles Caulier
Comment 3 Gandalf Lechner 2011-02-19 17:49:41 UTC
Here is the components info: 

digiKam version 2.0.0-beta3
Exiv2 kann in JP2 speichern: Ja
Exiv2 kann in JPEG speichern: Ja
Exiv2 kann in PGF speichern: Ja
Exiv2 kann in PNG speichern: Ja
Exiv2 kann in TIFF speichern: Ja
Exiv2 unterstützt XMP-Metadaten: Ja
LibCImg: 130
LibClapack: internal library
LibExiv2: 0.21
LibJPEG: 62
LibJasper: 1.900.1
LibKDE: 4.6.00 (4.6.0)
LibKExiv2: 2.0.0
LibKMap: 2.0.0
LibKdcraw: 2.0.0
LibLCMS: 118
LibPGF: 6.09.44 - internal library
LibPNG: 1.2.44
LibQt: 4.7.0
LibRaw: 0.13.0-Beta3
LibTIFF: LIBTIFF, Version 3.9.4 Copyright (c) 1988-1996 Sam Leffler Copyright (c) 1991-1996 Silicon Graphics, Inc.
Marble Widget: 0.11.0 (Stable Release)
Parallelisiertes Entfernen von Mosaikmustern: Ja
Datenbanktreiber: QSQLITE
LibGphoto2: 2.4.8
LibKface: 2.0.0
LibKipi: 2.0.0
LibOpenCV: 2.1.0
Libface: 0.1

I'll post a link to the raw file in a couple of minutes when it finished uploading.

Gandalf
Comment 4 Gandalf Lechner 2011-02-19 18:00:47 UTC
Here's the link: http://db.tt/bDwe1AX

I tried several files, and they all showed the same grid effect.

Gandalf
Comment 5 Alex Tutubalin 2011-02-19 18:06:20 UTC
Gandalf,

dcraw_emu (LibRaw's test front-end) does not show any grid with default settings.

What processing options do you use?

To be precise, I've tested with current LibRaw 0.13.1, not with -Beta3, but is should be no sifnificant difference
Comment 6 Gandalf Lechner 2011-02-19 18:27:37 UTC
I decoded the file in rawtherapee, no grid there. Then I played a little with the parameters in digikam and it seems that switching "interpolate RGB as four colors" (or similar, I'm guessing from the German translation here) on creates the effect. If that option is switched off the grid disappears.
Comment 7 Alex Tutubalin 2011-02-19 18:49:19 UTC
You dont need 'four color RGB' on cameras with equal green channels (e.g. Canons).

It *may* be useful if green channels are different and you have 4x3 matrix profile for your camera (either built-in in LibRaw or external profile)
Comment 8 Gandalf Lechner 2011-02-19 18:59:02 UTC
(In reply to comment #7)
> You dont need 'four color RGB' on cameras with equal green channels (e.g.
> Canons).

I see, so I'll just switch that off. Even if four color RGB is not needed, the grid was a little unexpected, though.
Comment 9 Alex Tutubalin 2011-02-19 19:07:24 UTC
Yes, this is definitely a bug.

Anyway, four-color-rgb itself cannot produce this kind of grid. The problem is due to incorrect interaction between four-channel-rgb and one of new noise correction routines.

Could you please specify what noise suppression settings do you use?
Comment 10 Gandalf Lechner 2011-02-19 19:26:48 UTC
> Could you please specify what noise suppression settings do you use?

I now tried all available noise reduction routines (none, wavelets, fbdd, cfa line denoise, impulse denoise), and saw the gird with all settings. with fdbb the whole image turns flashy pink, so the grid is pink as well.

However, playing with the chromatic aberration option, I got the impression that it is this one which causes the grid when combined with four color RGB.
Comment 11 Marcel Wiesweg 2011-04-18 21:58:02 UTC
Alex, anything we need to do here from the digikam side?
Comment 12 Alex Tutubalin 2011-04-19 05:41:25 UTC
Marcel,

since LibRaw 0.13.1 the fbdd denoising is disabled if four-color-rgb is turned on because of algorithm incompatibility.
So, problem is closed on 2011-02-15.

So, you may close this bug.
Comment 13 caulier.gilles 2011-04-19 09:37:31 UTC
Thanks Alex for the feedback.

Gilles Caulier