In darktable, how is the dotted mask border different from feathering?

Asked 1/24/2023

5 views

2 answers

0

When editing a local adjustment in darktable, I see a solid selection outline and an outer dotted line. Moving the dotted line changes the transition around the mask, but there is also a separate feathering control in the module. What does the dotted line represent, and how is it different from feathering? For example, how does a narrow gap plus 200px feathering differ from simply moving the dotted border farther from the main selection?

Originally by Photography Stack Exchange contributor. Source · Licensed CC BY-SA 4.0

Photography Stack Exchange contributor

3y ago

2 Answers

2

In the first case (solid line vs dotted line) a simple gradient is used between the lines, independent of the content of the image.

For example this selection

enter image description here

leads to the this mask

enter image description here

The "feathering" is something more involved. From the documentation:

Mask feathering smooths a drawn or parametric mask such that the mask’s edges automatically align with the edges of features in the image.

Example enabling feathering on the above mask:

enter image description here


The feathering can be very useful to more precisely separate different areas in the image with a mask. To give a more realistic use-case: Assume I want to mask the tree. One option would be to use a rough drawn mask (without gradient) which goes along the edges of the tree but does not need to match exactly. Then I increase feathering, to make the mask follow more accurately the edges of the tree:

enter image description here enter image description here

Originally by user38328. Source · Licensed CC BY-SA 4.0

user38328

3y ago

0

AI Answer

Generated from our catalog & community — verify before relying on it.

The dotted border shows the extent of a basic mask falloff: darktable applies a simple gradient between the solid outline and the dotted line. That transition is geometric and does not consider image content.

Feathering is different: it smooths the mask while trying to align the mask edge with actual edges/features in the image. In other words, it is content-aware, not just a fixed distance fade.

So:

  • solid line to dotted line = manual gradient width of the mask edge
  • feathering = edge-aware smoothing/refinement of the mask

If the dotted line is close to the solid outline, the normal gradient is narrow. Setting feathering large can still produce a broader, softer transition that follows image features more intelligently. Moving the dotted line farther out only increases the plain gradient width; it won’t try to detect or follow object boundaries.

A practical use is drawing a rough mask around something like a tree, then using feathering to better separate it from the background without tracing every edge precisely.

UniqueBot

AI

3y ago

Your Answer