Masks and models

Segmentation vs Matting: Why Cutout Edges Differ.

Segmentation estimates which regions belong to a subject; matting estimates foreground coverage more finely at mixed edges. A sharp silhouette can be useful without being a physically accurate matte for hair or glass.

By Backdropless · Published October 29, 2026 · Last checked October 29, 2026

The useful distinctions
ConceptWhat it means here
SegmentationLocate and separate the subject region
MattingEstimate coverage at mixed foreground/background pixels
CompositingPlace the resulting foreground over a new background

Begin with the editing problem

A solid product on a contrasting background can look good with a relatively simple boundary. Fine hair against a busy wall is a different problem. Glass is different again because the old scene is visible through the object. Calling every result a cutout can hide these distinctions. The useful question is what information must survive when the background changes.

A segmentation mask gives an estimate of subject membership. It may contain soft values, but the existence of gray values does not by itself prove that the model reconstructed a physically correct foreground. A matting method is designed around mixed pixels and coverage. Even then, the source, training domain and deployment settings affect whether the result is suitable for a particular photograph.

What the cited papers contribute

The U2-Net paper describes salient object detection with a nested U-shaped architecture. Backdropless uses the portable U2netp variant as a practical starting mask. The BiRefNet paper addresses high-resolution dichotomous segmentation, while MODNet is a portrait-matting approach. Those scopes help explain why model names should not be treated as interchangeable promises about every image type.

A paper’s reported result is not automatically the performance of a browser application. The application may use a different model variant, a converted graph, different input sizing or different post-processing. Our evaluation page therefore shows actual exports from the shipped browser path. It does not borrow a paper’s benchmark score and present that score as a measurement of this product.

The model sees a smaller representation

The shipped U2netp graph receives a 320 × 320 input. The application resizes the predicted mask back to the source dimensions. The output can therefore retain the original canvas size while the boundary estimate remains limited by the model’s smaller view. Full-size export describes the raster dimensions, not the amount of independently predicted edge detail.

This distinction explains why a large output can still miss a fine wire or strand. Making the output larger does not make the model observe a feature that disappeared during input preparation. Manual refinement can correct an obvious omission when the original pixels are available, but it is not the same as recovering a mathematically exact matte for every partially transparent boundary.

Worked example: a strap and a glass wall

Consider the camera example. The broad camera body is a strong foreground region, while the narrow strap and empty spaces inside it require closer inspection. Restore can bring back original pixels that the mask excluded. Erase can remove retained background in a gap. These are useful local corrections because the desired subject boundary is reasonably clear to the editor.

Now consider the glass example. The model can keep the outer glass shape while retaining the old background visible inside it. Simply making the interior transparent would also remove reflections and parts of the object. The problem is not just finding the outline; it is separating transmitted scene, reflected light and foreground contribution. The displayed example intentionally exposes that limit rather than presenting an opaque glass cutout as a solved matte.

Softness is not a substitute for correct coverage

An edge-softness control spreads the transition around a boundary. This can make an overly hard edge less abrupt, but it can also soften an already accurate edge or reveal a halo. It does not identify which colors came from the original background. Apply it conservatively and inspect the result on the intended destination color rather than assuming that a softer edge is automatically more natural.

When a mask is clearly misplaced, fix the placement first. Erase a retained background fragment or restore an omitted piece of the subject. Then evaluate whether the boundary needs any softness adjustment. Blurring a wrong mask can make the error less sharply visible while leaving the underlying selection incorrect. A clear sequence of corrections makes the result easier to reason about.

Evaluate the subject types you actually process

A portrait-focused model may be useful for people but should not be assumed to handle products equally well. A general salient-object model may find a broad subject while struggling with translucent material. Multiple competing objects can also make the intended foreground ambiguous. Choose representative source images, including difficult cases, before judging whether an automatic workflow will reduce your editing work.

Our actual examples include a product, person, pet, fine hair and glass. They demonstrate that the application runs and produces inspectable outputs across those source types. They do not establish a statistical success rate. A few examples are not a representative dataset of every photograph, and a transparent export is not proof that the mask matches a ground-truth annotation.

Use the right remedy for the failure

For a missing opaque detail, manual restoration may be enough. For a retained background island, erasing may be appropriate. For a colored fringe, a cleaner source or a specialist edge treatment may be needed. For transparent glass, retaking the photo on the final background can avoid a much harder reconstruction task. Each remedy follows a different failure, so there is no single quality slider that fixes them all.

For official identity photographs, the right remedy may be to avoid background editing entirely. The authority can prohibit changes even if they look natural. Use the original capture and its required submission process. Technical capability does not establish permission to alter the image. A good workflow starts with both the visual requirement and the rules of the destination.

Put this method into practice: open the relevant local image tool →. Keep your original and inspect the exported copy.

Questions that come up

Is a soft mask automatically a matte?

No. Soft values can arise from interpolation or post-processing. They do not prove physically accurate separation of foreground and background.

Does Backdropless use MODNet?

No. MODNet is cited to explain portrait matting. The shipped graph is U2netp, and actual outputs are shown in the model evaluation.

Why does glass retain the old scene?

The model can select the object outline without separating the transmitted background inside it. That requires a more difficult matting or capture workflow.

Sources & method

Last checked: . Official rules can change. Calculated presets are identified separately.

  1. U2-Net: Going Deeper with Nested U-Structure. Xuebin Qin et al.. Checked 2026-10-29.
  2. Bilateral Reference for High-Resolution Dichotomous Image Segmentation. Zheng Peng et al.. Checked 2026-10-29.
  3. Is a Green Screen Really Necessary for Real-Time Portrait Matting?. Zhanghan Ke et al.. Checked 2026-10-29.
  4. u2netp ONNX model card. edgetools / Hugging Face. Checked 2026-10-29.
  5. Actual model evaluation. Backdropless. Checked 2026-10-29.
  6. Published tool specifications. Backdropless. Checked 2026-10-29.