AdaptiveMedian

From Avisynth wiki
(Difference between revisions)
Jump to: navigation, search
(Examples)
Line 10: Line 10:
 
== 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/modPlus/Median.html click me].
+
This is an adaptive Median Filter for eliminating certain types of noise. It uses local statistics (minimum, maximum and median values) of a moving local grid, and changes grid size depending on local statistics. [http://www.avisynth.nl/users/vcmohan/modPlus/Median.html Full Description]
 
<br>
 
<br>
 
<br>
 
<br>
 
== Requirements ==
 
== Requirements ==
* AviSynth+ r2347 or greater
+
* AviSynth+ r2347 or later
* <!-- color formats -->Supported color formats: [[RGB24]], [[RGB32]], [[YUY2]], [[YV12]], [[YV16]], [[YV24]], [[YV411]], [[Y8]]
+
<br>
+
  
 +
<br>
 
== [[Script variables|Syntax and Parameters]] ==
 
== [[Script variables|Syntax and Parameters]] ==
 
:{{Template:FuncDef|<!-- function name --> Median (''clip'', ''int'' "maxgrid", ''bool'' "yy", ''bool'' "uu", ''bool'' "vv")}}
 
:{{Template:FuncDef|<!-- function name --> Median (''clip'', ''int'' "maxgrid", ''bool'' "yy", ''bool'' "uu", ''bool'' "vv")}}

Revision as of 07:30, 18 June 2018

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

Contents

Description

This is an adaptive Median Filter for eliminating certain types of noise. It uses local statistics (minimum, maximum and median values) of a moving local grid, and changes grid size depending on local statistics. Full Description

Requirements

  • AviSynth+ r2347 or later


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()
a = converttoYUY2()
Median(a, maxgrid=7, yy = false, uu = true, vv = true)




Back to External Filters

Personal tools