Creating blacker blacks on a grey day from a flat image

But I thought we are warned against doing that because of the risk of bringing RGB values into the negative range.

Seems like you figured it out on your own. Not clear what you need or want from me.


IMG_1454.CR2.xmp (7.8 KB)

I’m not sure if this is something like what you’re after.
I used color balance rgb’s contrast control with a low fulcrum value of about 12%, and an extreme contrast value of 80%.

5 Likes

Been staring at this one intermittently, looking for the opportunity to spend time with it…

Getting blacker blacks is fundamentally about contrast, and that’s an easy change with a s-shaped tone curve. But going monochrome opens other opportunities, per-channel shaping and other things you wouldn’t do to protect those precious colors. Here’s my take on that, in rawproc:


I used a two-part curve strategy, a loggamma to lift the shadows out of the toe and then a s-shaped control point curve to introduce the contrast. I grayscaled with only the blue channel, offered the most contrast in some of the textures. Crop to put that indignant face in the proper context with the anterior presentations :laughing: , and a more aggressive post-resize sharpen to punch out the textures. Then, I just had to get rid of that line so I just dragged the JPEG over to GIMP and cloned it out.

2 Likes

And two with LUTs:


IMG_1454_01.CR2.xmp (10.1 KB)
IMG_1454_02.CR2.xmp (6.3 KB)

The Fuji XTrans III - Acros+R is from this site, I think: Fuji Film Simulation Profiles – Stuart Sowerby
The BW5 LUT is from: Free LUTs

You can crank up dehaze for something like this…if you can’t get it in diffuse module

1 Like


IMG_1454.jpg.out.pp3 (14.4 KB)

IMG_1454.jpg.out.pp3 (14.4 KB)

IMG_1454.jpg.out.pp3 (14.5 KB)

IMG_1454.CR2.xmp (17.8 KB)

2 Likes

You can crank up dehaze for something like this…if you can’t get it in diffuse module

Actually the tone eq and local contrast don’t do a bad job either…

IMG_1454_01.CR2.xmp (11.5 KB)

Bonsoir,
J’espère qu’elle va dans le sens que tu attends, mais par mauvais temps il ne faut pas attendre de miracle :wink:

IMG_1454.CR2.xmp (12.7 KB)

1 Like

I like the grain! Can you share details on your ‘experimental grain algo’? Is this something that will be added to dt anytime soon? Or a standalone tool? Is this based on overlaying noise scans or entirely algorithmic?

There is a grain module in DT so an added algo might go there if it got traction…might first be worth figuring out what it would add vs what is present…

Glad you like it!
Very happy to share more details, it is fully algorithmic and in python for now (not very fast, a few seconds for 24MP images).
It is kind of mimicking the Poisson/binomial process of the silver halide particles in every pixel but uses the beta distribution function from scipy as a continuous approximation. Then I use opensimplex to generate spatially correlated noise patterns that are then distorted by the beta distribution.
My main addition compared to state-of-the-art and darktable grain is also to add artistic knobs to change the apparent color of grain (like in more salty or more peppery), and the overall shape of the noise distribution (aka to have some control on variance, skewness, and kurtosis of the noise distribution with parameters).

I made a quick and dirty gui for testing using napari and magicgui, too.


Right now there are definitely a lot of parameters :laughing:

I could make a full post if people are interested. I am still experimenting with a few things, though. (like in the rabbit hole) :grin:

5 Likes

that’s very cool!

Definetely too many options for mere mortals (thinking about a possible implementation in darktable), maybe you can reduce it with some presets and/or 3-4 ‘knobs’ max?

Quoting Todd @priort I also think would be nice to see a comparison between one straight image, one with added grain using the current grain module available in darktable and another using a couple of different sets of parameters according to your taste that could emulate different kind of grains perhaps (if you’ve managed to isolate those params that could emulate for example the tri-x pushed to 1600 or some other typical film – that’s the thing that I always aim for because on the wall just next to my monitor I have a panel with scattered prints and the ones that I still love are old shots taken with tri-x).

EDIT my good friend @Claes reminded me of this thread where Andrea and other knowledgeable contributors have discussed grain and algorithms… I guess my little advice above is totally unnecessary, as it can be seen that Andrea is the sort of guy that has already figured it all out, so I would just say, forget everything else, it would be nice to see the new grain generator implemented somehow in darktable and perhaps a followup to that thread to show a few examples?

It’s funny because I completely forgot that I also added a comment to that thread above, almost 3 yrs after the initial post… and here I am all excited again for some grainy noise to be added to my too clean images!!

2 Likes

I’ve been thinking about film grain in my spare time for a while. Not sure why it is such a special interest of mine.

I’ll think about reducing the number of knowbs. My dream interface would be something like 3 sliders plus 2-3 curves like in the contrast-equalizer to fine-tune the look.

I haven’t developed presets matching film stocks, but with good reference images, it might be possible. For now, I just tried to match my result with a few analog photos from photographers I am following.

After vacation I’ll definitely make a separate post with a few examples, explaining better the idea! So we are not going off-topic in this thread.

1 Like

Thanks you for your inputs.

I understand about downloading these IMG_1454.CR2.xmp files but could someone tell me how to import them into Darktable so I can see the editing process of each one individually?

Thanks for giving me a clue of where to go with this.
From your suggestion I found this in the 4.0 manual
‘Do not use the black level correction to add more density in blacks as this can clip near-black colors out of gamut by generating negative RGB values.
This can cause problems with some modules later in the pixelpipe.
Instead, use a tone mapping curve to add density to the blacks.
For example, you can use the relative black exposure slider on the scene tab of the filmic rgb module, or establish a deeper toe in the base curve module.’

In lighttable view you will see on the right history…load a side car…this is where you would do it… create a duplicate and load it on that would be my advice so you can compare with your edit…

1 Like

Yes, that works well, thanks.
Using the scene referred pathway should one use the Lab or RGB color space?

Bit dated but likely a better resource than me…

Edit maybe browse this to so as to get some background … on the terminolgy and approach…

https://darktable-org.github.io/dtdocs/en/overview/workflow/process/

1 Like

Impressed with the GIMP cloning - did you just use the clone tool for that?