Avisynth BlindDeHalo
BlindDeHalo removes halos (bright or dark ringing around edges, usually caused by oversharpening) without needing an edge mask. It is Didée's BlindDeHalo3 script.
Filtering → Avisynth → DeHalo

What it does
The script shrinks the image, blurs it with a quasi-gaussian blur and compares the result with the original. Areas where the original differs in the way a halo does are pulled back toward the blurred version. Only luma is processed, chroma is passed through unchanged.
An optional post-clean step (PP mode) removes leftover corona lines and mosquito noise. Typical uses:
- Old DVD or broadcast sources that were sharpened too much.
- Halos along long, thin lines when no edge mask is wanted (for a mask-based variant see FineDeHalo).
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–100 | 3 / 3 | Radii of the blur (the image is shrunk by these factors). Very small values are useless. |
| Strength | strength | 0–1000 | 125 | Overall strength. Usable values are roughly 0–128. |
| Tweaker | tweaker | 0–1 | 0 | Extra strength that is independent of Strength. |
| Damper low/high | lodamp / hidamp | 0–20 | 0 / 0 | low keeps detail where the change would be small. high stops small, very bright or very dark areas from being processed too strongly. |
| Sharpness | sharpness | 0–1.58 | 0 | Makes the result sharper. The strength is raised internally by 1 + sharpness × 0.25. |
| PP mode | PPmode | −3–3 | 0 | Post-cleaning: 0 off, 1 gaussian blur, 2 3×3 average without the centre pixel, 3 RemoveGrain-based. Negative values skip the main step and only post-clean. |
| PP limit | PPlimit | 0–100 | 0 | Maximum change per pixel by the post-clean step; 0 means no limit. |
Example
Default settings on a 10-bit YUV 4:2:0 source:
BlindDeHalo3(interlaced=false)
How Hybrid calls it
- Hybrid loads masktools2, the RemoveGrain helper,
BlindDeHalo3_mt2.avsiand a shared helper script, then callsBlindDeHalo3. - The script needs planar 8-bit-family YUV input (Y8, YV12, YV16, YV24, YV411); other formats are converted first. The example needs no conversion.
- Parameters are only written when they differ from the defaults. PP limit is always written when PP mode is 3 or −3, otherwise only when it is not 0.
interlacedis always written: true for non-progressive streams (the script then separates the fields, filters them and weaves them again), false otherwise.- BlindDeHalo also offers the common options and can be added to the filter queue several times.
Background
- The script is BlindDeHalo3 by Didée in a version with high bit depth support (2020.03.24). It needs masktools2 and the RemoveGrain family.
- It is a script, not a plugin.
See also: Vapoursynth BlindDeHalo3, DeHaloAlpha, FineDeHalo
Sources
- The AviSynth+ documentation does not cover BlindDeHalo.
- Header of the script
BlindDeHalo3_mt2.avsi - Hybrid's tooltips