Avisynth DeHaloAlpha

From wiki.selur.net
Revision as of 19:55, 21 November 2026 by Selur (talk | contribs) (Remove required versions (via update-page on MediaWiki MCP Server))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

DeHaloAlpha reduces halos around edges, typically left behind by sharpening. It is Didée's DeHalo_alpha script in its masktools2 version.

Filtering → Avisynth → DeHalo

DeHaloAlpha controls in Hybrid
DeHaloAlpha controls in Hybrid

What it does

The script scales the clip down and up by the radius to get a blurred reference. It then compares the edge strength of the original with that of the reference. Where the original has much stronger edges, the area is treated as halo and replaced. Dark and bright halos can get a different strength. Only luma is processed, chroma passes through.

The radius settings are sensitive, so keep them as low as the halos allow.

Requirements

  • Windows, CPU only.
  • The helper plugins and scripts are shipped with Hybrid.

Settings

Control Parameter Range Hybrid default Meaning
Radius X/Y rx / ry 0.01–3 2 / 2 Radius of the halos to remove. Keep it as low as possible.
Sensitivity high/low highsens / lowsens 0–100 50 / 50 Defines a window: how weak an effect may be to be fully accepted as halo, and how strong it must be to be fully discarded.
Strength dark/bright darkstr / brightstr −10–10 1 / 1 Strength against dark and bright halos. 1 is symmetrical; for anime a dark value of 0.4–0.8 is sometimes better.
Sampling ss 0.01–4 1.5 Supersampling factor against aliasing. With 1 the script uses Repair instead.

Example

Default settings on a 10-bit YUV 4:2:0 source:

DeHalo_alpha_mt()

How Hybrid calls it

  • Hybrid loads masktools2, the RemoveGrain helper and DeHalo_alpha_mt2.avsi, then calls DeHalo_alpha_mt.
  • Planar Y8, YV12, YV16, YV24 and YV411 input; other formats are converted first. The example needs no conversion.
  • Parameters are only written when they differ from the defaults, which equal the script's defaults.
  • The filter is not interlace-aware.
  • DeHaloAlpha also offers the common options and can be added to the filter queue several times.

Background

  • The script is a masktools2 / high bit depth build of Didée's DeHalo_alpha (2021.04.05, needs masktools2). The _mt variant uses a larger edge search radius.
  • The script parameters cs, search_rade, search_radi and customfix are not offered.

See also: Vapoursynth DeHalo alpha, FineDeHalo, BlindDeHalo

Sources

  • The AviSynth+ documentation does not cover DeHaloAlpha.
  • Header of the script DeHalo_alpha_mt2.avsi
  • Hybrid's tooltips