DPReview.com is closing April 10th - Find out more

SDQH - Kalpanika X3F Extract purple image issues with DNG in LR & Other Software

Started Mar 9, 2018 | Questions
EEvan
EEvan Regular Member • Posts: 343
SDQH - Kalpanika X3F Extract purple image issues with DNG in LR & Other Software

Been using a DP2M for a while, using a flow with the x3f_extract tool ( X3F TOOLS VERSION = 0.57-windows-x86_64 )to bring the files into LR which has been working great.

Inside Darktable with message " 'Sigma SD Quattro H' color matrix not found"

Windows DNG preview

Upgraded to a SDQH this week, and the one issue that I can't find a good answer for is the images are purple.

Compressed, Uncompressed. With Wrapper without, tiff, DNG, with Adobe DNG converter, ect.

It looks like there is no camera color profile being included with the DNG (Or unreadable) As I can apply older .DNG profiles that improve it a little bit.

Has anyone else seen this? Is there a combination of flags for x3fextract that need to be used to get color information imbedded into the DNG properly?

Do I need to build a color profile from a Color Checker reference card? Is this a bug in the Kalpanika tool?

Thanks to whomever has a solution for this!

ANSWER:
This question has not been answered yet.
Sigma DP2 Merrill Sigma sd Quattro
If you believe there are incorrect tags, please send us this post using our feedback form.
tagscuderia
tagscuderia Senior Member • Posts: 1,957
Re: SDQH - Kalpanika X3F Extract purple image issues with DNG in LR & Other Software

Reads very much like a WB issue, can you upload the DNG? Without the EXIF and DCP file, I can only guess as to what the issue is. Cheers.

P.S. why not shoot SOOC DNGs? For the chroma edge artefacts, running a 3x3 Median filter in CIELAB on the colour channels will help.

 tagscuderia's gear list:tagscuderia's gear list
Sigma DP3 Merrill Sigma SD1 Merrill Sigma 15mm F2.8 EX DG Diagonal Fisheye Sigma 18-35mm F1.8 DC HSM Art Sigma 50-100mm F1.8 DC HSM Art
EEvan
OP EEvan Regular Member • Posts: 343
Re: SDQH - Kalpanika X3F Extract purple image issues with DNG in LR & Other Software

The original x3f file or the converted DNG? It's not fixable with WB, it appears there isn't a color profile. They look like images from my old 1020 do when first loaded before the embedded profile is applied.

Also how should I upload them? They are quite large (55MB x3f, 174MB DNG).

Which is part of the reason I would like to replicate my Merril flow. The x3f provides a smaller original on the card that also allows SPP when I need it, but the converted DNG allows me to edit normally other times.

I could share part of the Meta Data. The one produced by x3f extract is quite large so unsure which part is helpful. Most is matrix meta data. But even the "details" under the:

BEGIN: CAMF property meta data (IncludeBlocks)

Is all set to no value. So nothing appears to be read.

But dcraw from the DNG shows:

Camera: DNG
DNG Version: 1.4.0.0
ISO speed: 0
Shutter: 0.0 sec
Aperture: f/0.0
Focal length: 0.0 mm
Embedded ICC profile: no
Number of raw images: 1
Thumb size: 269 x 180
Full size: 6656 x 4480
Image size: 6192 x 4128
Output size: 6192 x 4128
Raw colors: 3
Daylight multipliers: 1.039250 1.049692 1.039739
Camera multipliers: 1.025206 1.049988 1.120313 0.00000

Edit: Additional Data point: the x3f files from DPreview convert/Display correctly with the 32bit tool. There are no obvious differences between the meta data or version numbers between the files.

Additionally from looking at the -meta dump:

Working:

"F23_CalibrationSoft Version:1.171

header.
version = 00040001
END: file header meta data

Nor Working:

F23_CalibrationSoft Version:1.172

header.
version = 00040002
END: file header meta data

Roland Karlsson Forum Pro • Posts: 30,033
Re: SDQH - Kalpanika X3F Extract purple image issues with DNG in LR & Other Software

EEvan wrote:

Been using a DP2M for a while, using a flow with the x3f_extract tool ( X3F TOOLS VERSION = 0.57-windows-x86_64 )to bring the files into LR which has been working great.

Upgraded to a SDQH this week, and the one issue that I can't find a good answer for is the images are purple.

Compressed, Uncompressed. With Wrapper without, tiff, DNG, with Adobe DNG converter, ect.

It looks like there is no camera color profile being included with the DNG (Or unreadable) As I can apply older .DNG profiles that improve it a little bit.

Has anyone else seen this? Is there a combination of flags for x3fextract that need to be used to get color information imbedded into the DNG properly?

Do I need to build a color profile from a Color Checker reference card? Is this a bug in the Kalpanika tool?

Thanks to whomever has a solution for this!

Hi . I am not sure what you are trying to do. I have some question.

  • Do the DNG file that the camera produce work fine?
  • Do the OOC JPEG work fine?
  • Is the first, very dark and grayish image, OK?

You can always go here and post a new issue: https://github.com/Kalpanika/x3f/issues

NOTE - the windows DNG preview will probably never work. It has probably not support for Linear RAW version of DNG, that we use. Almost no one, except Adobe has that.

-- hide signature --

/Roland
Kalpanika X3F tools:
https://github.com/kalpanika/x3f

 Roland Karlsson's gear list:Roland Karlsson's gear list
Sigma DP3 Merrill Sigma dp2 Quattro Sony RX100 III Pentax K-3 Pentax K-1 +14 more
EEvan
OP EEvan Regular Member • Posts: 343
Re: SDQH - Kalpanika X3F Extract purple image issues with DNG in LR & Other Software
1

Hi Roland,

I didn't expect to see a response from one of the creators directly! Your tool is pretty awesome and really makes sigma's cameras much more versatile, so thanks for the work you guys did on it.

Let me try to answer your questions

1. I am not sure what you are trying to do.

I am trying to convert the x3f files to DNGs to be used in LR or darktable (or other) for editing.

2. Do the DNG file that the camera produce work fine?

They appear to render correctly. I made new versions of everything with the same settings for reference. It's a Color checker so we should all know what the colors should more or less be. I realize my original images left some ambiguity.

SDQH - OOC DNG - In Light room - F16 1/125th in direct sunlight (Little underexposed it seems)

3. Do the OOC JPEG work fine?

They appear to work fine

OOC JPEG as viewed in LR - F16 1/125th

4. Is the first, very dark and grayish image, OK?

No, it should be really colorful. It was how Dark table rendered it. But this is how LR renders it with no profile and the embedded

x3f Extract DNG (Default settings) - In LR with Embedded Profile - f16 1/125th

Now with unconverted selected:

x3f Extract DNG (Default settings) - In LR with Unconverted profile selected - f16 1/125th

Extra reference: This is the same x3f opened in SPP:

X3f RAW file in SPP (Same file used with x3f extract) - f 16 1/125th

If you think I am not doing something wrong with the tool and want me to post this as a summary on the GitHub I will go ahead and do it. I was just making sure there wasn't something I missed in using the tool with the SDQH.

tagscuderia
tagscuderia Senior Member • Posts: 1,957
Re: SDQH - Kalpanika X3F Extract purple image issues with DNG in LR & Other Software

Can you post a link to the DNG? There are a million and one ways to do it so, take your pick e.g. Dropbox

 tagscuderia's gear list:tagscuderia's gear list
Sigma DP3 Merrill Sigma SD1 Merrill Sigma 15mm F2.8 EX DG Diagonal Fisheye Sigma 18-35mm F1.8 DC HSM Art Sigma 50-100mm F1.8 DC HSM Art
EEvan
OP EEvan Regular Member • Posts: 343
Re: SDQH - Kalpanika X3F Extract purple image issues with DNG in LR & Other Software
tagscuderia
tagscuderia Senior Member • Posts: 1,957
Re: SDQH - Kalpanika X3F Extract purple image issues with DNG in LR & Other Software

EEvan wrote:

The files are here: https://www.dropbox.com/sh/lwicgm3x41s2mhz/AAApcf0rx5KS0a2WWQAbjDpBa?dl=0

Occam's razor demands that I ask whether or not you used the "-unprocessed" tag?

Because your DNG reads:

<CalibrationIlluminant1>0</CalibrationIlluminant1>
<CalibrationIlluminant2>0</CalibrationIlluminant2>
<ColorMatrix1 Rows="0" Cols="0"/>
<ColorMatrix2 Rows="0" Cols="0"/>
<ForwardMatrix1 Rows="0" Cols="0"/>
<ForwardMatrix2 Rows="0" Cols="0"/>
<ReductionMatrix1 Rows="0" Cols="0"/>
<ReductionMatrix2 Rows="0" Cols="0"/>
<EmbedPolicy>0</EmbedPolicy>
<ProfileLookTableEncoding>0</ProfileLookTableEncoding>
<BaselineExposureOffset>0.000000</BaselineExposureOffset>
<DefaultBlackRender>0</DefaultBlackRender>

i.e. it contains zero information for colour conversion

Not sure what to suggest now... has the sd Q H received a firmware update recently?

 tagscuderia's gear list:tagscuderia's gear list
Sigma DP3 Merrill Sigma SD1 Merrill Sigma 15mm F2.8 EX DG Diagonal Fisheye Sigma 18-35mm F1.8 DC HSM Art Sigma 50-100mm F1.8 DC HSM Art
geni1105 Regular Member • Posts: 149
Re: SDQH - Kalpanika X3F Extract purple image issues with DNG in LR & Other Software

I have tried to convert that file on my Mac, using x3f-extract 0.57.

Same result, the DNG file can be opened but is corrupted color-wise. The original X3F opens just fine in SPP however.

In verbose mode, x3f_extract outputs lots of messages which sound like warnings to me:

dbg: Matrix entry for LUT_RR_x1/Channel is out of order (index/1 != order/0)
dbg: Matrix entry for LUT_RR_x1/InputVal is out of order (index/0 != order/1)
dbg: Matrix entry for LUT_RR_x2/Channel is out of order (index/1 != order/0)
dbg: Matrix entry for LUT_RR_x2/InputVal is out of order (index/0 != order/1)
dbg: Matrix entry for LUT_RR_x4/Channel is out of order (index/1 != order/0)
dbg: Matrix entry for LUT_RR_x4/InputVal is out of order (index/0 != order/1)
dbg: Matrix entry for ColumnOffsets_HI_TOP/Channel is out of order (index/1 != order/0)
dbg: Matrix entry for ColumnOffsets_HI_TOP/InputVal is out of order (index/0 != order/1)
dbg: Matrix entry for ColumnOffsets_HI_BOTTOM/Channel is out of order (index/1 != order/0)

... (and so on)

 geni1105's gear list:geni1105's gear list
Sigma DP2 Merrill Sigma DP3 Merrill Olympus PEN-F Olympus E-M1 III
MarkWW
MarkWW Contributing Member • Posts: 881
Re: SDQH - Kalpanika X3F Extract purple image issues with DNG in LR & Other Software

EEvan wrote:

Been using a DP2M for a while, using a flow with the x3f_extract tool ( X3F TOOLS VERSION = 0.57-windows-x86_64 )to bring the files into LR which has been working great.

Inside Darktable with message " 'Sigma SD Quattro H' color matrix not found"

Windows DNG preview

Upgraded to a SDQH this week, and the one issue that I can't find a good answer for is the images are purple.

Compressed, Uncompressed. With Wrapper without, tiff, DNG, with Adobe DNG converter, ect.

It looks like there is no camera color profile being included with the DNG (Or unreadable) As I can apply older .DNG profiles that improve it a little bit.

Has anyone else seen this? Is there a combination of flags for x3fextract that need to be used to get color information imbedded into the DNG properly?

Do I need to build a color profile from a Color Checker reference card? Is this a bug in the Kalpanika tool?

Thanks to whomever has a solution for this!

my first DNG file out of a Quattro was quite weird as well - I suspect white balance issues.

Open the DNG in Raw Therapee. It has a wider latitude when dealing with color than Adobe products - and perhaps Darktable (I have little experience with Dark Table).

Other advise - always set the white balance manually.

-- hide signature --

Good design is something that works & is not in the way.

 MarkWW's gear list:MarkWW's gear list
Ricoh GR Digital III Panasonic Lumix DMC-LX5 Sigma DP2 Merrill Sigma DP3 Merrill Ricoh GR +8 more
tagscuderia
tagscuderia Senior Member • Posts: 1,957
Re: SDQH - Kalpanika X3F Extract purple image issues with DNG in LR & Other Software

Interesting to note the differences between the dp0 and sd Q H: 2048 vs 256 Black Point and no mention of Analog Gain for the sd Q H, rather Digital which is accepted as being detrimental to Dynamic Range

When I run it through my own dp0 tuned converter, it renders much the same as Kalpanika but I don't account for DigitalISOGain (B,G,R = 4,4,2).

N.B. the EXIF tag "Exposure Compensation : +255" points to it being a RAW White Balancing issue. I would guess that this would require new code in order for X3F_Extract to support it, it's not a bug.

The developer of Iridient Developer told me that he gave up on supporting X3Fs because SIGMA kept significantly moving the goal posts with each sensor generation... looks like they're doing it with firmware updates now too!

 tagscuderia's gear list:tagscuderia's gear list
Sigma DP3 Merrill Sigma SD1 Merrill Sigma 15mm F2.8 EX DG Diagonal Fisheye Sigma 18-35mm F1.8 DC HSM Art Sigma 50-100mm F1.8 DC HSM Art
Roland Karlsson Forum Pro • Posts: 30,033
Re: SDQH - Kalpanika X3F Extract purple image issues with DNG in LR & Other Software

tagscuderia wrote:

Interesting to note the differences between the dp0 and sd Q H: 2048 vs 256 Black Point and no mention of Analog Gain for the sd Q H, rather Digital which is accepted as being detrimental to Dynamic Range

When I run it through my own dp0 tuned converter, it renders much the same as Kalpanika but I don't account for DigitalISOGain (B,G,R = 4,4,2).

N.B. the EXIF tag "Exposure Compensation : +255" points to it being a RAW White Balancing issue. I would guess that this would require new code in order for X3F_Extract to support it, it's not a bug.

The developer of Iridient Developer told me that he gave up on supporting X3Fs because SIGMA kept significantly moving the goal posts with each sensor generation... looks like they're doing it with firmware updates now too!

Yes, they are moving them all the time.

-- hide signature --

/Roland
Kalpanika X3F tools:
https://github.com/kalpanika/x3f

 Roland Karlsson's gear list:Roland Karlsson's gear list
Sigma DP3 Merrill Sigma dp2 Quattro Sony RX100 III Pentax K-3 Pentax K-1 +14 more
Roland Karlsson Forum Pro • Posts: 30,033
Re: SDQH - Kalpanika X3F Extract purple image issues with DNG in LR & Other Software

geni1105 wrote:

I have tried to convert that file on my Mac, using x3f-extract 0.57.

Same result, the DNG file can be opened but is corrupted color-wise. The original X3F opens just fine in SPP however.

In verbose mode, x3f_extract outputs lots of messages which sound like warnings to me:

dbg: Matrix entry for LUT_RR_x1/Channel is out of order (index/1 != order/0)
dbg: Matrix entry for LUT_RR_x1/InputVal is out of order (index/0 != order/1)
dbg: Matrix entry for LUT_RR_x2/Channel is out of order (index/1 != order/0)
dbg: Matrix entry for LUT_RR_x2/InputVal is out of order (index/0 != order/1)
dbg: Matrix entry for LUT_RR_x4/Channel is out of order (index/1 != order/0)
dbg: Matrix entry for LUT_RR_x4/InputVal is out of order (index/0 != order/1)
dbg: Matrix entry for ColumnOffsets_HI_TOP/Channel is out of order (index/1 != order/0)
dbg: Matrix entry for ColumnOffsets_HI_TOP/InputVal is out of order (index/0 != order/1)
dbg: Matrix entry for ColumnOffsets_HI_BOTTOM/Channel is out of order (index/1 != order/0)

... (and so on)

This is normal. We do not know what order those entries shall be in. But, so far, it is only entries we do not use.

-- hide signature --

/Roland
Kalpanika X3F tools:
https://github.com/kalpanika/x3f

 Roland Karlsson's gear list:Roland Karlsson's gear list
Sigma DP3 Merrill Sigma dp2 Quattro Sony RX100 III Pentax K-3 Pentax K-1 +14 more
tagscuderia
tagscuderia Senior Member • Posts: 1,957
Re: SDQH - Kalpanika X3F Extract purple image issues with DNG in LR & Other Software

tagscuderia wrote:

...

When I run it through my own dp0 tuned converter, it renders much the same as Kalpanika but I don't account for DigitalISOGain (B,G,R = 4,4,2).

N.B. the EXIF tag "Exposure Compensation : +255" points to it being a RAW White Balancing issue. I would guess that this would require new code in order for X3F_Extract to support it, it's not a bug.

Analog vs Digital, the good news is that the steps are the same and the maths is simple so it's easy to apply the WB correction — realise that that's little benefit if you want to use Kalpanika... I'm doing it by hand

Edit: doesn't appear to require clipping the RAW channels, so even easier than the dp Quattro conversion!

 tagscuderia's gear list:tagscuderia's gear list
Sigma DP3 Merrill Sigma SD1 Merrill Sigma 15mm F2.8 EX DG Diagonal Fisheye Sigma 18-35mm F1.8 DC HSM Art Sigma 50-100mm F1.8 DC HSM Art
EEvan
OP EEvan Regular Member • Posts: 343
Re: SDQH - Kalpanika X3F Extract purple image issues with DNG in LR & Other Software

Roland Karlsson wrote:

tagscuderia wrote:

Interesting to note the differences between the dp0 and sd Q H: 2048 vs 256 Black Point and no mention of Analog Gain for the sd Q H, rather Digital which is accepted as being detrimental to Dynamic Range

When I run it through my own dp0 tuned converter, it renders much the same as Kalpanika but I don't account for DigitalISOGain (B,G,R = 4,4,2).

N.B. the EXIF tag "Exposure Compensation : +255" points to it being a RAW White Balancing issue. I would guess that this would require new code in order for X3F_Extract to support it, it's not a bug.

The developer of Iridient Developer told me that he gave up on supporting X3Fs because SIGMA kept significantly moving the goal posts with each sensor generation... looks like they're doing it with firmware updates now too!

Yes, they are moving them all the time.

Interesting, so if it's a WB issue, is there anything that can easily be done on my side to resolve it?

Even if it's not a BUG, should I post this to the GitHub as an issue? Do you need any additional examples or images that would be helpful?

Thanks

EEvan
OP EEvan Regular Member • Posts: 343
Re: SDQH - Kalpanika X3F Extract purple image issues with DNG in LR & Other Software

tagscuderia wrote:

tagscuderia wrote:

...

When I run it through my own dp0 tuned converter, it renders much the same as Kalpanika but I don't account for DigitalISOGain (B,G,R = 4,4,2).

N.B. the EXIF tag "Exposure Compensation : +255" points to it being a RAW White Balancing issue. I would guess that this would require new code in order for X3F_Extract to support it, it's not a bug.

Analog vs Digital, the good news is that the steps are the same and the maths is simple so it's easy to apply the WB correction — realise that that's little benefit if you want to use Kalpanika... I'm doing it by hand

Edit: doesn't appear to require clipping the RAW channels, so even easier than the dp Quattro conversion!

How are you doing it by hand?

Roland Karlsson Forum Pro • Posts: 30,033
Re: SDQH - Kalpanika X3F Extract purple image issues with DNG in LR & Other Software
1

EEvan wrote:

Roland Karlsson wrote:

tagscuderia wrote:

Interesting to note the differences between the dp0 and sd Q H: 2048 vs 256 Black Point and no mention of Analog Gain for the sd Q H, rather Digital which is accepted as being detrimental to Dynamic Range

When I run it through my own dp0 tuned converter, it renders much the same as Kalpanika but I don't account for DigitalISOGain (B,G,R = 4,4,2).

N.B. the EXIF tag "Exposure Compensation : +255" points to it being a RAW White Balancing issue. I would guess that this would require new code in order for X3F_Extract to support it, it's not a bug.

The developer of Iridient Developer told me that he gave up on supporting X3Fs because SIGMA kept significantly moving the goal posts with each sensor generation... looks like they're doing it with firmware updates now too!

Yes, they are moving them all the time.

Interesting, so if it's a WB issue, is there anything that can easily be done on my side to resolve it?

Even if it's not a BUG, should I post this to the GitHub as an issue? Do you need any additional examples or images that would be helpful?

Thanks

You can post it as an issue to github. It is nice to have it documented there. Write as much as possible.

I shall be frank. We are a bit fed up with the problems of keeping our software compatible with the every whim of Sigma. We do put some efforts in it and we really do want it to work. But, sometimes it feels impossible.

-- hide signature --

/Roland
Kalpanika X3F tools:
https://github.com/kalpanika/x3f

 Roland Karlsson's gear list:Roland Karlsson's gear list
Sigma DP3 Merrill Sigma dp2 Quattro Sony RX100 III Pentax K-3 Pentax K-1 +14 more
tagscuderia
tagscuderia Senior Member • Posts: 1,957
Re: SDQH - Kalpanika X3F Extract purple image issues with DNG in LR & Other Software
1

EEvan wrote:

tagscuderia wrote:

tagscuderia wrote:

...

When I run it through my own dp0 tuned converter, it renders much the same as Kalpanika but I don't account for DigitalISOGain (B,G,R = 4,4,2).

N.B. the EXIF tag "Exposure Compensation : +255" points to it being a RAW White Balancing issue. I would guess that this would require new code in order for X3F_Extract to support it, it's not a bug.

Analog vs Digital, the good news is that the steps are the same and the maths is simple so it's easy to apply the WB correction — realise that that's little benefit if you want to use Kalpanika... I'm doing it by hand

Edit: doesn't appear to require clipping the RAW channels, so even easier than the dp Quattro conversion!

How are you doing it by hand?

I'm using ImageJ for the maths, colorMatrix for matrices and DCPs to apply LUTs and tone curves; all the info required is available in the EXIF and metadata. I have zero knowledge of coding but RAW development is surprisingly easy!

I wouldn't recommend it though, whilst SPP's Quattro conversion has steadily gotten worse in my eyes... it's incredible what they've achieved with the data — Quattro is a b*tch 

 tagscuderia's gear list:tagscuderia's gear list
Sigma DP3 Merrill Sigma SD1 Merrill Sigma 15mm F2.8 EX DG Diagonal Fisheye Sigma 18-35mm F1.8 DC HSM Art Sigma 50-100mm F1.8 DC HSM Art
MarkWW
MarkWW Contributing Member • Posts: 881
Re: SDQH - Kalpanika X3F Extract purple image issues with DNG in LR & Other Software

tagscuderia wrote:

EEvan wrote:

tagscuderia wrote:

tagscuderia wrote:

...

When I run it through my own dp0 tuned converter, it renders much the same as Kalpanika but I don't account for DigitalISOGain (B,G,R = 4,4,2).

N.B. the EXIF tag "Exposure Compensation : +255" points to it being a RAW White Balancing issue. I would guess that this would require new code in order for X3F_Extract to support it, it's not a bug.

Analog vs Digital, the good news is that the steps are the same and the maths is simple so it's easy to apply the WB correction — realise that that's little benefit if you want to use Kalpanika... I'm doing it by hand

Edit: doesn't appear to require clipping the RAW channels, so even easier than the dp Quattro conversion!

How are you doing it by hand?

I'm using ImageJ for the maths, colorMatrix for matrices and DCPs to apply LUTs and tone curves; all the info required is available in the EXIF and metadata. I have zero knowledge of coding but RAW development is surprisingly easy!

I wouldn't recommend it though, whilst SPP's Quattro conversion has steadily gotten worse in my eyes... it's incredible what they've achieved with the data — Quattro is a b*tch

I'm new to Quattro. What version of SPP would you recommend?

-- hide signature --

Good design is something that works & is not in the way.

 MarkWW's gear list:MarkWW's gear list
Ricoh GR Digital III Panasonic Lumix DMC-LX5 Sigma DP2 Merrill Sigma DP3 Merrill Ricoh GR +8 more
tagscuderia
tagscuderia Senior Member • Posts: 1,957
Re: SDQH - Kalpanika X3F Extract purple image issues with DNG in LR & Other Software

At this stage I don't think that there's much option or point in not using 6.5.4 (Win) / 6.5.5 (Mac). The sd Q H isn't compatible with the oldersoftware, nor is my dp0 after firmware updates

6.6 is a major release, maybe it will come with IQ improvements? Live in hope.

 tagscuderia's gear list:tagscuderia's gear list
Sigma DP3 Merrill Sigma SD1 Merrill Sigma 15mm F2.8 EX DG Diagonal Fisheye Sigma 18-35mm F1.8 DC HSM Art Sigma 50-100mm F1.8 DC HSM Art
Keyboard shortcuts:
FForum MMy threads