AdaptiveMedian

From Avisynth wiki
(Difference between revisions)
Jump to: navigation, search
(major cleanup)
Line 1: Line 1:
 
+
{{FilterCat4|External_filters|Plugins|TODO|TODO}}
{{FilterCat4|External_filters|Plugins|<!-- category -->TODO|<!-- category -->TODO}}
+
 
+
 
{{Filter3
 
{{Filter3
|<!-- author -->[http://www.avisynth.nl/users/vcmohan/ V.C.Mohan]
+
|[http://www.avisynth.nl/users/vcmohan/ V.C.Mohan]
|<!-- version -->1.0.0.0.0
+
|1.0.0.0.0
|<!-- download 2.5.8 version URL -->[http://www.avisynth.nl/users/vcmohan/AdaptiveMedian/AdaptiveMedian.zip AdaptiveMedian] and  2.6.0 alpha5 version URL -->[http://www.avisynth.nl/users/vcmohan/AdaptiveMedian/AdaptiveMedian_2_6.zip AdaptiveMedian]
+
|
|<!-- category -->External filters
+
*AviSynth 2.58: [http://www.avisynth.nl/users/vcmohan/AdaptiveMedian/AdaptiveMedian.zip AdaptiveMedian.zip]
|<!-- license -->[http://www.gnu.org/licenses/gpl-2.0.txt GPLv2]
+
*AviSynth 2.60: [http://www.avisynth.nl/users/vcmohan/AdaptiveMedian/AdaptiveMedian_2_6.zip AdaptiveMedian_2_6.zip]
|<!-- discussion URL -->[http://forum.doom9.org/showthread.php?p=712586#post712586 AdaptiveMedian]}}
+
|4=External filters
 +
|5=[http://www.gnu.org/licenses/gpl-2.0.txt GPLv2]
 +
|6=[http://forum.doom9.org/showthread.php?p=712586#post712586 AdaptiveMedian]}}
  
<br>
 
 
== Description ==
 
== Description ==
<!-- a one-sentence description -->
+
 
Median value in an adaptive size grid is used to clean impulse noise, smooth out other noise and reduce excessive thinning of edges and for a Full description <span style="color:blue"> [http://www.avisynth.nl/users/vcmohan/AdaptiveMedian/AdaptiveMedian.html click me]</span>.
+
Median value in an adaptive size grid is used to clean impulse noise, smooth out other noise and reduce excessive thinning of edges and for a full description [http://www.avisynth.nl/users/vcmohan/AdaptiveMedian/AdaptiveMedian.html click me].
 
<br>
 
<br>
 
<br>
 
<br>
 
== Requirements ==
 
== Requirements ==
* <!-- Avisynth version -->AviSynth 2.5.8 or [http://sourceforge.net/projects/avisynth2/files/AviSynth_Alpha_Releases/ 2.6.0 Alpha 5 or greater]
+
*AviSynth 2.5.8 or [http://sourceforge.net/projects/avisynth2/files/AviSynth_Alpha_Releases/ 2.6.0 RC 1 or greater]
* <!-- source video: progressive
+
 
* <!-- color formats -->Supported color formats: [[RGB24]], [[RGB32]], [[YUY2]], [[YV12]], <span style="color:red">*</span>[[YV16]], <span style="color:red">*</span>[[YV24]], <span style="color:red">*</span>[[YV411]], <span style="color:red">*</span>[[Y8]]
 
* <!-- color formats -->Supported color formats: [[RGB24]], [[RGB32]], [[YUY2]], [[YV12]], <span style="color:red">*</span>[[YV16]], <span style="color:red">*</span>[[YV24]], <span style="color:red">*</span>[[YV411]], <span style="color:red">*</span>[[Y8]]
 
: <span style="color:red">*</span> Not available in AviSynth 2.5.8.
 
: <span style="color:red">*</span> Not available in AviSynth 2.5.8.
* <!-- CPU/GPU -->
 
* <!-- binaries -->
 
* <!-- dependent plugins -->
 
 
<br>
 
<br>
  
 
== [[Script variables|Syntax and Parameters]] ==
 
== [[Script variables|Syntax and Parameters]] ==
:{{Template:FuncDef|<!-- function name -->AdaptiveMedian (''clip'', ''<!-- par 1 type -->int'' "<!-- par 1 name -->sf", ''<!-- par 2 type -->int'' "<!-- par 2 name -->ef", ''<!-- par 3 type -->int'' "<!-- par 3 name -->maxgrid", ''<!-- par 4 type -->bool'' "<!-- par 4 name -->yy", ''<!-- par 5 type -->bool'' "<!-- par 5 name -->uu", ''<!-- par 6 type -->bool'' "<!-- par 6 name -->vv")}}
+
:{{Template:FuncDef|<!-- function name -->AdaptiveMedian (''clip'', ''int'' "sf", ''int'' "f", ''int'' "maxgrid", ''bool'' "yy", ''bool'' "uu", ''bool'' "vv")}}
 
<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 from which this filter is to be applied .
+
:::Frame number from which this filter is to be applied.
 
<br>
 
<br>
::{{Par2|<!-- par 2 type -->int|<!-- par 2 name -->ef|<!-- par 2 default value -->last frame of input clip}}
+
::{{Par2|ef|int|last frame of input clip}}
:::<!-- par 2 description -->frame number up to which this filter is to be applied
+
:::Frame number up to which this filter is to be applied
 
<br>
 
<br>
::{{Par2|<!-- par 3 type -->int|<!-- par 3 name -->maxgrid|<!-- par 3 default value -->5}}
+
::{{Par2|maxgrid|int|5}}
:::<!-- par 3 description -->grid size to get statistics can grow to this value starting from 3x3. Maximum value allowed is 9.
+
:::Grid size to get statistics can grow to this value starting from 3x3. Maximum value allowed is 9.
 
<br>
 
<br>
::{{Par2|<!-- par 4 type -->bool|<!-- par 4 name -->yy|<!-- par 4 default value -->true}}
+
::{{Par2|yy|bool|true}}
:::<!-- par 4 description -->In case of YUY2 or Planar format input, if yy is set true then y component is processed. For RGB ignored.
+
::{{Par2|uu|bool|false}}
<br>
+
::{{Par2|vv|bool|false}}
::{{Par2|<!-- par 5 type -->bool|<!-- par 5 name -->uu|<!-- par 5 default value -->false}}
+
:::Choose which [[YUV]] planes to process.
:::<!-- par 5 description -->In case of YUY2 or Planar format input, if uu is set true then u component is processed. For RGB ignored
+
:::*True : don't process
<br>
+
:::*False : process
::{{Par2|<!-- par 6 type -->bool|<!-- par 6 name -->vv|<!-- par 6 default value -->false}}
+
:::By default only the luma plane (Y) is processed. If the input clip is [[RGB]], then these parameters are simply ignored.
:::<!-- par 6 description -->In case of YUY2 or Planar format input, if vv is set true then v component is processed. For RGB ignored.
+
 
<br>
 
<br>
  
 
== Examples ==
 
== Examples ==
<!-- example code block: 1st char in each line = space -->
+
AdaptivrMedian with default settings:
## This is some example code.
+
  [[AviSource]]("example.avi")
  Avisource("example.avi").converttoRGB32()
+
  AdaptiveMedian(sf=0, maxgrid=5, yy=true, uu=false, vv=false)
  AdaptiveMedian(maxgrid = 7)
+
<!-- new code block: no leading space -->
+
 
+
## This is another example.
+
Avisource("example.avi").converttoYV12()
+
AdaptiveMedian(uu=true,vv=true)
+
 
<br>
 
<br>
 
<br>
 
<br>
 
-----------------------------------------------
 
-----------------------------------------------
 
'''Back to [[External_filters|External Filters]] &larr;'''
 
'''Back to [[External_filters|External Filters]] &larr;'''

Revision as of 14:34, 21 March 2015

Abstract
Author V.C.Mohan
Version 1.0.0.0.0
Download
Category External filters
License GPLv2
Discussion AdaptiveMedian

Contents

Description

Median value in an adaptive size grid is used to clean impulse noise, smooth out other noise and reduce excessive thinning of edges and for a full description click me.

Requirements

* Not available in AviSynth 2.5.8.


Syntax and Parameters

AdaptiveMedian (clip, int "sf", int "f", int "maxgrid", bool "yy", bool "uu", bool "vv")


clip   =
Input clip.


int  sf = 0
Frame number from which this filter is to be applied.


int  ef = last frame of input clip
Frame number up to which this filter is to be applied


int  maxgrid = 5
Grid size to get statistics can grow to this value starting from 3x3. Maximum value allowed is 9.


bool  yy = true
bool  uu = false
bool  vv = false
Choose which YUV planes to process.
  • True : don't process
  • False : process
By default only the luma plane (Y) is processed. If the input clip is RGB, then these parameters are simply ignored.


Examples

AdaptivrMedian with default settings:

AviSource("example.avi")
AdaptiveMedian(sf=0, maxgrid=5, yy=true, uu=false, vv=false)




Back to External Filters

Personal tools