Avisynth EdgeSmooth(Fast)

From wiki.selur.net
Revision as of 23:08, 21 November 2026 by Selur (talk | contribs) (Avisynth filter documentation (via create-page on MediaWiki MCP Server))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

EdgeSmooth(Fast) is a fast anti-aliasing script that smooths edges with SangNom2 on a stretched copy of the picture.

Filtering → Avisynth → Line → AntiAliasing

EdgeSmooth(Fast) controls in Hybrid
EdgeSmooth(Fast) controls in Hybrid

What it does

The picture is point-resized to twice the height (optionally twice the width as well), SangNom2 smooths the edges on this larger copy, and the result is resized back with a bicubic filter. With TwoWay a second pass on the turned picture also treats the other direction. There is no mask, so the whole picture is processed.

Settings

Control Parameter Range Hybrid default Meaning
Strength strength 0–255 48 SangNom2 anti-aliasing strength. Higher values straighten edges more but remove fine edge detail.
High quality hiQ on/off off Also doubles the width before interpolating. Better result, about twice the work.
TwoWay twoway on/off off Add a second pass on the turned picture. Without it only one direction is smoothed.

Example

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

EdgeSmoothFast()

How Hybrid calls it

  • The EdgeSmoothFast script is loaded together with SangNom2.
  • Only parameters that differ from the defaults are written.
  • The script is not meant for interlaced material.
  • EdgeSmooth(Fast) also offers the common options and can be added to the filter queue several times.

Background

  • The steps are: PointResize, SangNom2 (order=0), BicubicResize back. TwoWay adds TurnLeft, SangNom2 (order=1), TurnRight; High quality uses half-pixel offsets and doubled width.
  • SangNom2 is tp7's rewrite of SangNom with better border handling.

Sources

  • SangNom2 on GitHub
  • Hybrid's tooltips
  • The AviSynth+ documentation does not cover EdgeSmooth(Fast).

See also: Avisynth maa2, Avisynth faa, Vapoursynth SangNom