Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > Capturing and Editing Video > Avisynth Usage

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old 30th June 2019, 17:39   #1  |  Link
wonkey_monkey
Formerly davidh*****
 
wonkey_monkey's Avatar
 
Join Date: Jan 2004
Posts: 2,496
FastBlur - fast approximate Gaussian blurs

FastBlur v0.3.1
Direct link
  • 0.3: added threads parameter
  • 0.3.1: enabled clamping to avoid rounding error overflows

Having been frustrated one too many times by VariableBlur's GaussianBlur and its bizarre syntax (and wildly variable speed), I've now written FastBlur, which performs an approximately Gaussian blur by repeated box blurs. It's much faster than GaussianBlur by default, and still at least 1.5x faster than GaussianBlur with multi-threading enabled (FastBlur is multi-threaded by default).

It also doesn't suffer from GaussianBlur's long start-up times.


It supports all colour spaces and can optionally dither the output. It's also (approximately) gamma-aware, which means more visually-pleasing blurs (although this should be disabled if you're blurring a mask).

Edit: now includes hopefully complete source code. Actually compiling/linking it is left as an exercise for the reader.

Code:
FastBlur
========

Fast Gaussian-approximate blur for all colour spaces.


Usage
=====

FastBlur(
  (clip)
  (float)
  (float)    y_blur
  (int)      iterations   = 3
  (bool)     dither       = false
  (bool)     gamma        = true
)


Parameters
==========

[float]:
    Blur radius (equivalent to PhotoShop Gaussian Blur's radius)

y_blur:
    Vertical blur (if different from horizontal blur)

iterations:
    Number of iterations for approximation. Defaults to 3. A value of 1 performs a box blur.

dither:
    Enable/disable dithering

gamma:
    Approximate gamma awareness. This should be disabled for masks.
__________________
My AviSynth filters / I'm the Doctor

Last edited by wonkey_monkey; 30th September 2021 at 19:40.
wonkey_monkey is offline   Reply With Quote
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 00:06.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.