Avisynth AverageBlur

From wiki.selur.net
Jump to navigation Jump to search

AverageBlur is a box blur from the VariableBlur plugin. Each pixel becomes the plain average of a square window around it.

Filtering → Avisynth → Sharpen

AverageBlur controls in Hybrid
AverageBlur controls in Hybrid

What it does

All pixels inside the window count equally, so the result is less smooth than a Gaussian blur. The radius is set separately for luma and chroma, and each plane can be filtered, copied or left unprocessed. By default only luma is blurred.

Typical uses:

  • Soften a clip or reduce fine noise.
  • Blur chroma only, by setting the plane handling to filter for U and V.

Settings

Control Parameter Range Hybrid default Meaning
Radius (Y/C) radY / radC 1–100 3 / 3 Radius of the averaging window for luma and chroma.
Handling (Y/U/V) Y / U / V ignore, copy, filter filter / copy / copy What happens to each plane: filter it, copy it from the source, or leave it unprocessed.

Example

Default settings on a 10-bit YUV 4:2:0 source. The plane handling is always written; the radii equal the plugin default and are omitted:

AverageBlur(Y=3,U=2,V=2)

How Hybrid calls it

  • Loads the VariableBlur plugin (with the FFTW library it needs).
  • The filter works on planar YUV (4:2:0, 4:2:2, 4:4:4). It does not accept gray, YUY2 or RGB.
  • Radius is only written when it is not 3. Handling is always written (3 = filter, 2 = copy, 1 = ignore).
  • AverageBlur also offers the common options and can be added to the filter queue several times.

Background

  • AverageBlur is one of several filters in the VariableBlur plugin, together with GaussianBlur, BinomialBlur and Unsharp.
  • The plugin needs the FFTW library; users report that a full path in LoadPlugin helps when it is not found.

Sources