Hello everyone. Rather than a generic ‘how would you edit this’, I thought to ask for a very specific thing so I (and hopefully perhaps others?) can focus on a specific skill.
The ask is: please select the sky on the RAW file attached. To demonstrate the selection, you can darken or recolour it.
The guidance is:
the selection has to be perfect, or as near as possible - meaning there should be no halo resulting from a blurred mask (various masking techniques result in either a 1px-thick ‘border’ on the edge of the mask where the mask does not perfectly transition between what should and should not be selected, or in a ‘halo’ where to hide mask’s imperfections, the mask is heavily blurred. There should be none of these here)
the mask should minimise manual effort - meaning while I believe it is possible to zoom in to 400% and trace a perfect path, this is very inefficient and should be avoided.
Bonus points for a brief description of the masking approach you take.
In my imagination, what you plan to do with the masked area is an input into the masking decision itself. If I wanted to mask for replacement, for example, I might do things differently.
OK, this is not perfect, but the mask could be improved with a bit more effort.
I went for a realistic color tone for the mountains.
This is a simple drawn & parametric mask in Color balance rgb (2nd instance), with the parametric mask excluding some of the blue range. I didn’t spend enough time on the drawn mask (needed to exclude a portion of the sky).
Nothing except an exaggerated local contrast gradient mask; low opacity, high contrast, very high feather and blur. Could probably be refined, but I think it’s one I would reuse a bit further down the line with exposure and the contrast eq.
Found the reference sky from a free to share and use image search and blended with original to taste. Not hard in this case since the image sky was easily selected and removed.
This is a classical use case for external masks created with a suitable tool - in this case, GIMP.
Start with a neutral rendering of the RAW file. Export as a PNG. Open with GIMP. Activate the Fuzzy Select tool. Set the selection mode to Composite and the threshold to 8.0. Click a few times on various parts of the sky. All that remains is to remove holes from the selection, fill it with white and the rest with black, save it, and use it as an external mask.
The question is, what do you want to achieve with masking? I usually rely on a combination of drawn and parametric masks and accept that it is not 100% perfect. But I don’t exchange skies or stuff like that. So usually it is ok to have not a 100% making. If that’s needed, I would prefer to do things in GIMP.
Treating this as a generic Play RAW this time, I went for the ultra-high-contrast look and masked the forest, not the sky. In theory, the sky and the mountain ridge would need separate masks, but in practice, the same look worked for both.
The mask for the forest was created in GIMP using the same technique as demonstrated in my previous comment and then shifted down by several pixels.
Here is the whole workflow in ART:
Tried to add contrast to the sky
Corrected the vignette (partially) so that the naive approach started working
Found, accidentally, that mountains look gorgeous under the same high-contrast treatment, but this destroys the forest
Created (in GIMP) a mask for the forest, used it twice - inverted and non-inverted
Desaturated and darkened the forest to match the overall look
Couple of notes from my review of all the responses.
I never had the intention to replace the sky. I do often like to darken the sky however and, depending on what the landscape is, it isn’t always easy to select the sky with just parametric masks
I thought that @Sean_Liu’s effort was close - but there is a really bright blue edge along the ridge, especially prominent near the right edge. I’ve ran into the same problem.
@priort also looks quite good with delicate edits - but when a dramatic edit is made, the edges of the mask are more visible
@patrakov - thanks for the video, really appreciated! I think I agree with you that this method appears to give the best results. I was curious to see if anyone can get close to this directly in darktable
@Popanz - I think you also have quite a good mask, but running into the same issue as mine and Sean_Liu’s
For my own mask, I used 3 channels (R, Cz, hz) trying to capture all of the sky and as little else as possible, and also use the ‘refinement’ parameters as sparingly as possible (because the more they are used, the more messy the mask does look in the end. I then combined this with some drawn shapes to exclude all the bits that got selected in the landscape.
In most places the mask is very close to perfect, but I did end up with an ugly bit that was not selected. If I do add it via the parametric mask - by expanding the Cz channel to include more pixels with low chromacity - then I end up with more and more pixels in the mountain selected and would need more precise shapes hand-drawn, which I wanted to avoid.
So, I was hoping I could just draw a shape with opposite polarity that the others to add this little bit of sky to the selection manually. I tried with a shape set to ‘difference’ mode, but unfortunately this didn’t work as I hoped:
Anyway, here’s the xmp if anyone wants: DSCF0419.RAF.xmp (36.6 KB)
I am still hoping there is a way, directly in darktable, to do something between my and @priort 's solution. Draw a rough path approximating where the transition should be, and then use the parametric mask to perfect the edge. If anyone has knowledge how to get such a mask done well, I’d love to hear how.