AdaptiveMedian

From Avisynth wiki
(Difference between revisions)
Jump to: navigation, search
m (category Denoisers)
(Updated "AdaptiveMedian" to Median. More compatibility with AviSynth+.)
Line 2: Line 2:
 
{{Filter3
 
{{Filter3
 
|[http://www.avisynth.nl/users/vcmohan/ V.C.Mohan]
 
|[http://www.avisynth.nl/users/vcmohan/ V.C.Mohan]
|1.0.0.0.0
+
|17 Oct 2017
|
+
| [http://www.avisynth.nl/users/vcmohan/modPlus/modPlus.7z modPlus (includes Median filter)]
*AviSynth 2.58: [http://www.avisynth.nl/users/vcmohan/AdaptiveMedian/AdaptiveMedian.zip AdaptiveMedian.zip]
+
*AviSynth 2.60: [http://www.avisynth.nl/users/vcmohan/AdaptiveMedian/AdaptiveMedian_2_6.zip AdaptiveMedian_2_6.zip]
+
 
|4=External filters
 
|4=External filters
|5=[http://www.gnu.org/licenses/gpl-2.0.txt GPLv2]
+
|5=[https://www.gnu.org/licenses/gpl-2.0.txt GPLv2]
|6=[http://forum.doom9.org/showthread.php?p=712586#post712586 AdaptiveMedian]}}
+
|6=[https://forum.doom9.org/showthread.php?p=712586#post712586 AdaptiveMedian], [https://forum.doom9.org/showthread.php?t=174162 modPlus update]}}
  
 
== Description ==
 
== 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 [http://www.avisynth.nl/users/vcmohan/AdaptiveMedian/AdaptiveMedian.html click me].
+
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/modPlus/Median.html click me].
 
<br>
 
<br>
 
<br>
 
<br>
 
== Requirements ==
 
== Requirements ==
*AviSynth 2.5.8 or [http://sourceforge.net/projects/avisynth2/ 2.6.0 or greater]
+
* AviSynth+ r2347 or greater
* <!-- 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]], [[YV16]], [[YV24]], [[YV411]], [[Y8]]
: <span style="color:red">*</span> Not available in AviSynth 2.5.8.
+
 
<br>
 
<br>
  
 
== [[Script variables|Syntax and Parameters]] ==
 
== [[Script variables|Syntax and Parameters]] ==
:{{Template:FuncDef|<!-- function name -->AdaptiveMedian (''clip'', ''int'' "sf", ''int'' "f", ''int'' "maxgrid", ''bool'' "yy", ''bool'' "uu", ''bool'' "vv")}}
+
:{{Template:FuncDef|<!-- function name --> Median (''clip'', ''int'' "maxgrid", ''bool'' "yy", ''bool'' "uu", ''bool'' "vv")}}
 
<br>
 
<br>
 
::{{Par2| |clip| }}
 
::{{Par2| |clip| }}
 
:::Input clip.       
 
:::Input clip.       
<br>
 
::{{Par2|sf|int|0}}
 
:::Frame number from which this filter is to be applied.
 
<br>
 
::{{Par2|ef|int|last frame of input clip}}
 
:::Frame number up to which this filter is to be applied
 
 
<br>
 
<br>
 
::{{Par2|maxgrid|int|5}}
 
::{{Par2|maxgrid|int|5}}
Line 46: Line 37:
  
 
== Examples ==
 
== Examples ==
AdaptivrMedian with default settings:
+
Median with default settings:
 
  [[AviSource]]("example.avi")
 
  [[AviSource]]("example.avi")
  AdaptiveMedian(sf=0, maxgrid=5, yy=true, uu=false, vv=false)
+
  Median(maxgrid=5, yy=true, uu=false, vv=false)
 
<br>
 
<br>
 
<br>
 
<br>
 
-----------------------------------------------
 
-----------------------------------------------
 
'''Back to [[External_filters|External Filters]] &larr;'''
 
'''Back to [[External_filters|External Filters]] &larr;'''

Revision as of 05:45, 4 April 2018

Abstract
Author V.C.Mohan
Version 17 Oct 2017
Download modPlus (includes Median filter)
Category External filters
License GPLv2
Discussion AdaptiveMedian, modPlus update

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


Syntax and Parameters

Median (clip, int "maxgrid", bool "yy", bool "uu", bool "vv")


clip   =
Input clip.


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

Median with default settings:

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




Back to External Filters

Personal tools