out of the box RAW rendering not up to JPEGs

I can confirm that the blue bridge goes all squirrely with the default matrix. With Rec2020 as input profile it looks way better.

Here is what one can achieve by using the “Fujifilm X-T2 Adobe Standard.dcp” profile (available from CameraRaw), plus a slight contrast curve:

I had to use another image editor as DT does not support DCP profiles… anyway, one can see that in this case the DCP does really a good job!

I wonder if the magenta cast on the bridge in the camera Jpeg corresponds to reality, or if the DCP result is more realistic.

Here’s what it looks like with linear Rec2020 RGB input profile here, for what it’s worth:

It does look slightly better, but still completely blue and not magenta. I’m now left to wonder how the camera figured out this was magenta in the first place. :wink: That bridge is a (huge!) multimedia installation and I know some of those people that made it (the installation, not the bridge of course), so technically I could try to figure out what color it was supposed to be if that’s useful…

And just for the record: absolutely no harm done here. I am positively amazed at the response I’m getting here. Incredible support, really positive and constructive comments. I am sorry if my comments come out as frustration… I think I’ve been using Darktable for about 5 years now (according to my storage anyways), so I’ve had that issue bug me for a while… I’ll try to be a little more positive next time. :slight_smile:

Here’s the darktable X-Trans III Velvia preset + a rec709 input profile workaround in action:

DSCF1110_03

DSCF1110_01.RAF.xmp (8.6 KB)

It’s not exact, but pretty close. Switching to rec709 muted the colors a bit (not surprising, as it changed the input color space), so I bumped them back up with the “velvia” module to compensate. Between the input profile (rec709 setting) and velvia modules, the colors shifted a tiny bit, so I nudged the hue of the bridge until it looked similar your JPEG.

This is a tricky scene: It’s dark overall and the bright lights of the bridge are way out of gamut. I’ve got to say that Fuji cameras are quite good at making JPEGs in most situations. (One exception: Waxy skin when ISO is cranked way up. It doesn’t affect raws thankfully.) Still, you’ll want to keep shooting raw. You could, for example, work on top of the raw of this scene to change white balance, recover a bit more detail in the darker parts, and so on. The JPEG would start to fall apart if you wanted to do that.

But I think this proves that you can have your RAWs and your Fuji colors too. Even with my short amount of time with darktable, I can say that it’s usually much closer to where you want it under more optimal settings.

That is quite impressive, I got to say. It’s almost exactly what I expected… Your mention of “velvia” reminds me that I did choose a specific “landscape” film emulation (called “Velvia” too! coincidence?) on the camera for that shot.

I see you used the “color look up table” early on in the history stack: what does that do? It seems to be the key change the fixes the color on the bridge to restore the original JPEG… or maybe the history is not ordered the same way here?

Yeah. I think most of the problems I had in that space were night shots with odd colors like this. Day shots are way more faithful to the original scene. And for sure, RAWs do allow much more flexibility, but the amount of work required just to get to a basic “normal” scene seems a little prohibitive in those cases…

Definitely. I’ve had great experience recovering lost dark zones or compensating for exposure with DT, don’t get me wrong. But this makes me think I should definitely look at the styles uploaded in that thread:

Maybe they could give me a better basis to work from without too much work?

And yeah, I obviously have a lot more to learn. But thankfully, there’s an awesome community here (and elsewhere!): that helps tremendously.

It would be great if the rendering was better out of the box. I still can’t quite fathom why the colors were so out of whack on that bridge: it’s not just that it doesn’t match the original JPEG’s color, there’s just something weird with the overexposure or something. Maybe, as you said, it’s something to do with the gamut: those are LEDs, after all, on that bridge, and those might show up weirdly on the sensor or something. If only I could remember what the actual color was with my eyes now… :wink:

Anyways: thank you so much everyone, that is a really impressive response!

Turns out, they do help quite a bit:

That is the “Fujifilm XTrans III - Velvia” style out of the box. Of course some more work would be required on that shot, but it’s already an improvement over the original DT rendering, in my opinion.

It would be great if we could have camera-specific styles shipped with Darktable, so that we get a little better experience out of the box. Those could be auto-detected to match the settings used on the camera: it’s kind of too bad to have done some “editing” work done on the camera only to have it dropped when imported in DT… We already detect stuff like basecurves and white balance from the camera, why not add those styles as well? :slight_smile:

1 Like

Okay, here’s another example of the issues I found with this rendering. I’m probably nitpicking like crazy here, but here we go.

Here’s a crop of the bridge of the original:

And here’s a similar crop of the image as beautifully rendered by @garrett:

What strikes me now is not much the difference in colors: that’s pretty close, and anyways, it’s just close enough. What seems to differ wildly now is the level of detail: the original JPEG is so much cleaner, so much sharper… I know that RAWs are less sharp, but I can’t figure out how to make it that clean. I see @garrett did some sharpening in the end to try and resolve that, but try as I might I cannot figure out a way to reproduce this mix of sharpness and softness in the bridge’s superstructure.

What is it about that JPEG that makes that picture so special? Shouldn’t I be able to get more detail out of the RAW than the original JPEG, if anything?

Looking at the “original” RAW rendering from DT, it sure looks like some data is just completely clipped off:


DSCF1110.RAF.xmp (3.8 KB)

Of course that looks much better with the linear Rec709 RGB input profile:


DSCF1110_03.RAF.xmp (5.2 KB)

but even there I can’t quite get the level of surreal precision of the original JPEG…

Thanks again for all the suggestions and comments!

Oh and for what it’s worth, I started asking around for that, just to see what the original color was. Stay tuned! :slight_smile:

[quote=“anarcat, post:17, topic:6669, full:true”]
What seems to differ wildly now is the level of detail: the original JPEG is so much cleaner, so much sharper…[/quote]

The detail is there, IMHO. The shodows in the ooc jpeg are just a little brighter. For example, you can use the shaodws and highlights module to bring up the shadows a bit more.


Also activated the local contrast module and used the equalizer to go for a little more sharpness.

So you used an Instagram filter in your camera and wonder why darktable’s output looks different? :roll_eyes:

I see you used the “color look up table” early on in the history stack: what does that do? It seems to be the key change the fixes the color on the bridge to restore the original JPEG… or maybe the history is not ordered the same way here?

The order of the entries in the history list if just reflecting in what order the user has used the modules. The processing order is always the same and can be seen on the right side of the screen: All active modules are processed from the bottom (“raw black/white point” for raw files) to the top.

Good to know, thanks!

I can get similar results, but I can’t fathom why I can’t get the same smoothness from the original JPEG. There seems to be some artifacts in the RAW that I cannot explain. It seems it has something to do with the input profile again: there are burnt pixels that show up differently depending on the profile, which don’t seem to show up in the original JPEG… Here’s a 200% zoom on the bridge in the OOC JPEG:

DSCF1110_08

Here’s the same crop with the standard input profile, with the rough deep blues:

DSCF1110_09

Notice how the blues are burnt off chart, but also how the truss edges of the bridge are pixelized… The linear Rec709 RGB profile restore the scene, but burnt pixels actually remain on the truss edges, if you look closely:

DSCF1110_10

Now, I’ve kept messing around with input profiles and I notice this phenomenon doesn’t occur with all input profiles. The linear XYZ profile, for example, doesn’t seem to have burnt pixels on the edges the same way the other two have:

DSCF1110_11

Now obviously the colors are off to the red and the green and look weird. But notice how we don’t get those burnt pixels anymore? I guess this is what @garrett was referring to regarding colors out of gamut?

I think this is one of the problems I can’t grasp here: is it common to have to mess around with the input profile in order to remove burnt pixels? In this case, I can see with the gamut check tool (thanks for that!) that the rec709 profile gives the best results, but it still breaks down on the bridge trusses, just less so than all the other profiles:

The Linear XYZ profile, even though it looks faithful there, is just completely off the chart for the whole bridge in terms of gamut, so I guess that’s a lost cause for rendering…?

Here is, for reference, the gamut check with the standard color matrix:

A bit better than the XYZ profile, but still way off…

I see that the Fujifilm cameras don’t have a custom matrix in the camera support page, could this explain the problems with input profiles here? Is this the same as the DCP profiles RawTherapee uses? They don’t have one for the X-T2, but they do have one for the X-Pro2, which has a similar sensor… Could this be imported into DT?

Otherwise, I’d be happy to help creating such a profile if it could help…

Thanks again for all the great answers!

Ah, and I have some results done with other software… Lightroom fares a little better:

lightroom%20sans%20modification

My Lightroom-using friend also did some edits over the base image to hide those clouds and highlight shadows:

lightroom%20corrig%C3%A9

One thing to note is that Lightroom agrees with Darktable that the bridge is blue, which is an interesting outcome. The level of detail is also comparable with Darktable, although a little better, but not better than the OOC JPEG…

lightroom%20sans%20modification

Rawtherapee also burns out the blues on the bridge, for what it’s worth:

28

Since I’m not very familiar with RT, I couldn’t figure out how to fix that at all to get a better image… But I guess this resolves the question of whether DCP profiles can fix this (although maybe RT couldn’t load the right profile in this case…)

My try using RawTherapee (without sharpening)
grafik

For this picture its important to set input color profile to linear rec709.
I also used the colour checker lut module with a parametric mask on the C-Channel to exclude strong saturated colors.

For a good starting point I used my Basic DT Style which I created for my olympus EM10 with the IT8 target by wolf faust.
But I always use linear rec709 also with darktable-chart when creating styles for matching the in camera jpeg processing of the camera. this worked much better then standard colour matrix.
Oly_PM_Natural.dtstyle (3.5 KB)


DSCF1110.RAF.xmp (13.5 KB)

2 Likes

To retain the original color of the jpeg, I often use Fuji’s free raw converter to a tif file, and then finish the final touch with darktable. The color comes really close using this method.

If you care at all about color accuracy you should always use an input profile which matches your camera model.

The problem you’re experiencing is that the artificial light which illuminates the bridge is out of gamut, it’s not handled properly. All you need to do is to use an input profile which compresses the blues in some way. Which way? It’s a matter of taste. Your camera seems to shift the hues towards red, causing purple highlights to appear. A different solution could be to not shift the hues but to instead desaturate and increase the luminance of the deepest blues.

Using a simple matrix the blues go whack, but using the Fujifilm X-T1’s DCP (I don’t have an X-T2 DCP, though there is one in Adobe DNG Converter) resolves the problem:
screenshot_20180210_135445

I really like @Nor_man’s version, not in spite of but due to being creative with the colors. However this thread is more about the difficulty of preserving colors and matching them to what your camera shows without getting out-of-gamut blue artifacts, so that is what the following images achieve.

Using a proper input profile you can get good results (compare it to your out-of-camera JPEG from the first post):
DSCF1110 plain.jpg.out.pp3 (11.3 KB)
DSCF1110%20plain

And to add some industrial light and magic:
DSCF1110 fattal.jpg.out.pp3 (11.4 KB)
DSCF1110%20fattal

3 Likes

I did that using RawTherapee but I’m sure you can completely reproduce it in darktable. All I did was to use a proper DCP to prevent blue issues (well, not that proper, since it was for an X-T1 not an X-T2), a tone curve to match the image to the embedded JPEG’s tones, and some noise reduction and edge sharpening.

I see two main things in this thread:

  1. colors are radically different on the bridge (and only on the bridge) between the OOC JPEG and RAW rendering engines, regardless which one (e.g. LR, DT, RT all put the bridge blue unless some extra color mapping is applied)
  2. up close, there are significant artifacts on the bridge trusses when rendering from RAW (with DT and RT, LR seems to fare better here) when compared with the OOC JPEG.

As I understand it (after reading up on samples clipping), this might be due to out-of-gamut but also possible channel-specific overexposure on the bridge. Indeed, messing with highlights reconstruction does improve the detail on those trusses on the bridge significantly, but it never quite matches the results from Lightroom or the OOC JPEG.

Now, I understand much better the issue of gamut: it’s not something I considered for this at first, and it totally makes sense that the camera would shift pixels one way while rendering engines would shift them another way, especially if there was film emulation enabled on the camera (or, as @houz suggested, “instagram filters” :). I understand this and it makes sense: this is special changes made to the color mapping and we can’t expect rendering engines to reproduce that exactly, especially out of the box. So my immediate surprise at the difference of rendering at the color level is passed now and, well, I accept that the bridge may actually be blue (still an open question, btw - I haven’t found someone who could answer this definitely).

What concerns me more at this point is the difference in detail. There is precious data from the sensor, and it seems we (free software RAW rendering tools) are losing some of it, while our proprietary equivalent fare better. Is there something we’re missing in the algorithms to render this? Why can LR render those trusses without clipping?

Again, to compare, the OOC JPEG:

image

Darktable, linear Rec709:

image

Lightroom, out of the box:

image

And, for completeness, @heckflosse’s try with RawTherapee:

image

Now of course the colors are completely different in the four images: I understand better why, that makes sense. What I can’t wrap my head around is why the details are so different on the bridge truss. In the OOC JPEG and the LR rendering, I feel I could keep going and zoom another crop and still keep detail. In DT and RT, I feel I’ve already lost and we see a lot of grain on the trusses. I have tried to mess around with highlight reconstruction, but I couldn’t quite get the same result: I mostly end up with a washed out, blurry picture. Nothing as sharp as the original.

Now, I am very grateful for all the answers. The level of technical and artistic knowledge here is impressive and humbling, and I can only thank you again and again for all your efforts. I did feel it would be useful to reframe the question, since we have pretty much cleared the field of the color (blue/magenta) problem, I think.

So if people want to pursue the conversation here little further, I’d be very curious to hear what people think of the detail problem next. :slight_smile:

PS: is this something that should be in “play raw” next time I have a trick question like that?