DeNoise: Difference between revisions

From Avisynth wiki
Jump to navigationJump to search
Yakub2.X (talk | contribs)
Edit parameters
Yakub2.X (talk | contribs)
Line 23: Line 23:


== [[Script variables|Syntax and Parameters]] ==
== [[Script variables|Syntax and Parameters]] ==
:{{Template:FuncDef|<!-- function name -->minvar (''clip'', ''<!-- type -->int'' "<!-- name -->sf", ''<!-- type -->int'' "<!-- name -->xgrid", ''<!-- type -->int'' "<!-- name -->ygrid", ''<!-- type -->int'' "<!-- name -->lx", ''<!-- type -->int'' "<!-- name -->ty",''<!-- type -->int'' "<!-- name -->wd", ''<!-- type -->int'' "<!-- name -->ht", ''<!-- type -->bool'' "<!-- name -->uv", ''<!-- type -->bool'' "<!-- name -->a", ''<!-- type -->bool'' "<!-- name -->show")}}
:{{Template:FuncDef| minvar (clip, int "sf", int "xgrid", int "ygrid", int "lx", int "ty", int "wd", int "ht", bool "uv", bool "a", bool "show")}}
<br>
<br>
::{{Par2| |clip| }}
::{{Par2| |clip| }}
:::Input clip.      
::: Input clip.
<br>
<br>
::{{Par2|<!-- par 1 type -->int|<!-- par 1 name -->sf|<!-- par 1 default value -->0}}
::{{Par2|sf|int|0}}
:::<!-- par 1 description -->Frame number in which specified window is located.
::: Frame number in which specified window is located.
<br>
<br>
::{{Par2|<!-- par 2 type -->int|<!-- par 2 name -->xgrid|<!-- par 2 default value -->5}}
::{{Par2|xgrid|int|5}}
:::<!-- par 2 description -->Number of pixels along x axis in moving grid.
::: Number of pixels along x axis in moving grid.


::* Between 3 to 9
<br>
<br>
::{{Par2|<!-- par 3 type -->int|<!-- par 3 name -->ygrid|<!-- par 3 default value -->xgrid}}
::{{Par2|ygrid|int|xgrid}}
:::<!-- par 3 description -->Number of pixels along y axis in moving grid.
::: Number of pixels along y axis in moving grid.
 
 
 
::* Between 3 to 9
<br>
<br>
::{{Par2|<!-- par 4 type -->int|<!-- par 4 name -->lx|<!-- par 4 default value -->none. Must be specified}}
::{{Par2|lx|int|None. Must be specified}}
:::<!-- par 4 description -->Window left x computing global variance.
::: Window left x computing global variance.
 
 
 
::* Within clip
::* Less than rx
<br>
<br>
::{{Par2|<!-- par 5 type -->int|<!-- par 5 name -->ty|<!-- par 5 default value -->none. Must be specified}}
::{{Par2|ty|int|None. Must be specified}}
:::<!-- par 5 description -->Window top y for computing global variance.
::: Window top y for computing global variance.
 
 
 
::* Within clip
::* Less than by
<br>
<br>
::{{Par2|<!-- par 6 type -->int|<!-- par 6 name -->wd|<!-- par 6 default value -->none. Must be specified}}
::{{Par2|wd|int|None. Must be specified}}
:::<!-- par 10 description -->Window width for computing global variance.
::: Window width for computing global variance.
 
 
 
::* lx + wd be within frame
<br>
<br>
::{{Par2|<!-- par 7 type -->int|<!-- par 7 name -->ht|<!-- par 7 default value -->none. Must be specified}}
::{{Par2|ht|int|None. Must be specified}}
:::<!-- par 7 description -->Window height for computing global variance.
::: Window height for computing global variance.
 
 
 
::* ty + ht be within frame
<br>
<br>
::{{Par2|<!-- par 8 type -->bool|<!-- par 8 name -->uv|<!-- par 8 default value -->true}}
::{{Par2|uv|bool|true}}
:::<!-- par 8 description -->Whether U and V of YUY2 and YUV formats to be processed.
::: Whether U and V of YUY2 and YUV formats to be processed.
 
 
 
::* true for uv process, false for not process
<br>
<br>
::{{Par2|<!-- par 9 type -->bool|<!-- par 9 name -->a|<!-- par 9 default value -->false}}
::{{Par2|a|bool|false}}
:::<!-- par 9 description -->Whether A value of RGB formats to be processed.
::: Whether A value of RGB formats to be processed.
 
 
 
::* true yes, false no
<br>
<br>
::{{Par2|<!-- par 10 type -->bool|<!-- par 10 name -->show|<!-- par 10 default value -->false}}
::{{Par2|show|bool|false}}
:::<!-- par 10 description -->Whether variance values are to be displayed as an error message.
::: Whether variance values are to be displayed as an error message.
 
 
 
::* true yes, false no
<br>
<br>



Revision as of 07:00, 18 June 2018


Abstract
Author V.C.Mohan
Version 17 Oct 2017
Download modPlus.7z
Category External filters
License GPLv3
Discussion announced DeNoise plugin, modPlus


Description

Using Variance of a given window, minimizes noise and tries to preserve edges and a full description is at click me.

Requirements


minvar (clip, int "sf", int "xgrid", int "ygrid", int "lx", int "ty", int "wd", int "ht", bool "uv", bool "a", bool "show")


clip   =
Input clip.


int  sf = 0
Frame number in which specified window is located.


int  xgrid = 5
Number of pixels along x axis in moving grid.


  • Between 3 to 9


int  ygrid = xgrid
Number of pixels along y axis in moving grid.


  • Between 3 to 9


int  lx = None. Must be specified
Window left x computing global variance.


  • Within clip
  • Less than rx


int  ty = None. Must be specified
Window top y for computing global variance.


  • Within clip
  • Less than by


int  wd = None. Must be specified
Window width for computing global variance.


  • lx + wd be within frame


int  ht = None. Must be specified
Window height for computing global variance.


  • ty + ht be within frame


bool  uv = true
Whether U and V of YUY2 and YUV formats to be processed.


  • true for uv process, false for not process


bool  a = false
Whether A value of RGB formats to be processed.


  • true yes, false no


bool  show = false
Whether variance values are to be displayed as an error message.


  • true yes, false no




Examples

## This is some example code to remove noise from an image.
imagereader("C:\avi_plugins\varianslim\theoin.jpg", end = 10)
converttoyv16()
minvar(sf = 35,lx=220,wd=245,ty=322,ht=150, uv = true)




Back to External Filters