GBlur

From Avisynth wiki
(Difference between revisions)
Jump to: navigation, search
m
m
 
(6 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
{{FilterCat4|External_filters|Plugins|Adjustment_filters|Blurring}}
 
{{FilterCat4|External_filters|Plugins|Adjustment_filters|Blurring}}
 
{{Filter3
 
{{Filter3
|1=<!-- author --> [http://www.avisynth.nl/users/vcmohan/ V.C.Mohan]
+
|1=<!-- author --> {{Author/vcmohan}}
|2=<!-- version --> 17 Oct 2017
+
|2=<!-- version --> 14 Oct 2015
|3=<!-- download --> [http://www.avisynth.nl/users/vcmohan/modPlus/modPlus.7z Download]
+
|3=<!-- download --> [http://www.avisynth.nl/users/vcmohan/GBlur/GBlur_2_6.7z GBlur_2_6.7z]
 
|4=<!-- category --> External filters
 
|4=<!-- category --> External filters
 
|5=<!-- license --> [https://www.gnu.org/licenses/gpl-2.0.txt GPLv2]
 
|5=<!-- license --> [https://www.gnu.org/licenses/gpl-2.0.txt GPLv2]
|6=<!-- discussion URL --> [https://forum.doom9.org/showthread.php?t=174162 modPlus plugin for avisynth+]}}
+
|6=<!-- discussion URL -->}}
  
 
<br>
 
<br>
 
== Description ==
 
== Description ==
 
<!-- a one-sentence description -->
 
<!-- a one-sentence description -->
GBlur smoothes an image by use of separable symmetric matrix of convolution coefficients. [http://www.avisynth.nl/users/vcmohan/modPlus/GBlur.html Full Discription]  
+
GBlur blurs the image as in out of focus or linear motion or rectangular grid. [http://www.avisynth.nl/users/vcmohan/modPlus/GBlur.html Full Discription]  
  
== Requirements ==
+
Gaussian blur is an image smoothing operation done by use of separable symmetric matrix of convolution coefficients. The size can be any odd nimber between 3 (for a 3x3 grid size) to 11 (for a 11x11 grid). Given the size and standard deviation, the convolution weights are computed and applied.. In YUV formats only the Y values are smoothed. However if u and or v are made true, those corresponding planes are also smoothed. In RGB formats all 3 color planes are smoothed.
* AviSynth+ r2347 or greater.
+
  
<br>
 
  
 +
*For AviSynth+ see [[modPlus]], includes high bit depth colorspace support and 64-bit.
 +
<br>
 +
== Requirements ==
 +
* [x86]: [[AviSynth+]] or [https://sourceforge.net/projects/avisynth2/ AviSynth 2.6]
 +
* Supported color formats: [[RGB24]], [[RGB32]], [[YUY2]], [[Y8]], [[YV12]], [[YV16]], [[YV24]]
 +
<br>
 
== [[Script variables|Syntax and Parameters]] ==
 
== [[Script variables|Syntax and Parameters]] ==
:{{Template:FuncDef|<!-- function name -->GBlur(''clip'', ''<!-- par 1 type -->int'' "<!-- par 1 name -->rad", ''<!-- par 2 type -->float'' "<!-- par 2 name -->sd", ''<!-- par 3 type -->bool'' "<!-- par 3 name -->u ",''<!-- par 4 type -->bool'' <!-- par 4 name -->v")}}
+
:{{Template:FuncDef| GBlur (clip, int "size", float "sd", bool "u", bool "v")}}
 
<br>
 
<br>
 
::{{Par2| |clip| }}
 
::{{Par2| |clip| }}
:::Input clip.     
+
::: Input clip
<br>
+
::{{Par2|<!-- par 1 type -->int|<!-- par 1 name -->size|<!-- par 1 default value -->3}}
+
:::<!-- par 1 description --> Number between 3 to 8. size X size blurring results .
+
 
<br>
 
<br>
::{{Par2|<!-- par 2 type -->float|<!-- par 2 name -->sd|<!-- par 2 default value -->1.5}}
+
::{{Par2|size|int|3}}
:::<!-- par 2 description --> Greater than 0. Standard deviation determines weightage of outer pixels.
+
::: Size of grid to use
 +
::::* Number between 3 to 8
 
<br>
 
<br>
::{{Par2|<!-- par 3 type -->bool|<!-- par 3 name -->u|<!-- par 3 default value -->false}}
+
::{{Par2|rad|float|1.5}}
:::<!-- par 3 description --> In case of YUY2 or Planar u  plane  also to be cleaned .
+
::: Standard deviation
 +
::::* More than 0
 
<br>
 
<br>
::{{Par2|<!-- par 4 type -->bool|<!-- par 4 name -->v|<!-- par 4 default value -->false}}
+
::{{Par2|u|bool|false}}
:::<!-- par 3 description --> In case of YUY2 or Planar v  plane also to be cleaned . .
+
::: Is u plane smoothing required?
 
<br>
 
<br>
 +
::{{Par2|v|bool|false}}
 +
::: Is v plane smoothing required?
 
<br>
 
<br>
  
Line 42: Line 47:
 
  GBlur()
 
  GBlur()
  
  GBlur(rad = 4,sd = 1.0, u = true, v = false)
+
  GBlur(size=4, sd=1.0, u=true, v=false)
 
<br>
 
<br>
 
-----------------------------------------------
 
-----------------------------------------------
 
'''Back to [[External_filters|External Filters]] &larr;'''
 
'''Back to [[External_filters|External Filters]] &larr;'''

Latest revision as of 20:16, 7 June 2020

Abstract
Author V. C. Mohan
Version 14 Oct 2015
Download GBlur_2_6.7z
Category External filters
License GPLv2
Discussion


Contents

[edit] Description

GBlur blurs the image as in out of focus or linear motion or rectangular grid. Full Discription

Gaussian blur is an image smoothing operation done by use of separable symmetric matrix of convolution coefficients. The size can be any odd nimber between 3 (for a 3x3 grid size) to 11 (for a 11x11 grid). Given the size and standard deviation, the convolution weights are computed and applied.. In YUV formats only the Y values are smoothed. However if u and or v are made true, those corresponding planes are also smoothed. In RGB formats all 3 color planes are smoothed.


  • For AviSynth+ see modPlus, includes high bit depth colorspace support and 64-bit.


[edit] Requirements


[edit] Syntax and Parameters

GBlur (clip, int "size", float "sd", bool "u", bool "v")


clip   =
Input clip


int  size = 3
Size of grid to use
  • Number between 3 to 8


float  rad = 1.5
Standard deviation
  • More than 0


bool  u = false
Is u plane smoothing required?


bool  v = false
Is v plane smoothing required?


[edit] Examples

GBlur()
GBlur(size=4, sd=1.0, u=true, v=false)



Back to External Filters

Personal tools