Avisynth DeHaloAlpha
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

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 callsDeHalo_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 2.2.20 or newer). The
_mtvariant uses a larger edge search radius. - The script parameters
cs,search_rade,search_radiandcustomfixare 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