DeSaltPepper

From Avisynth wiki
(Difference between revisions)
Jump to: navigation, search
(Created page with " {{FilterCat4|External_filters|Plugins|<!-- category -->TODO|<!-- category -->TODO}} {{Filter3 |1=<!-- author -->[http://www.avisynth.nl/users/vcmohan/ V.C.Mohan] |2=<!-- ver...")
 
m (Requirements: AviSynth 2.6)
Line 17: Line 17:
 
<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 version -->AviSynth 2.5.8 or [http://sourceforge.net/projects/avisynth2/ 2.6.0] or greater
 
* <!-- source video: progressive  
 
* <!-- source video: progressive  
 
* <!-- color formats -->Supported color formats:  [[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:  [[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]]
Line 25: Line 25:
 
* <!-- dependent plugins -->
 
* <!-- dependent plugins -->
 
<br>
 
<br>
c[opt]s[tol]i[uv]b[avg]b[feedback]i
+
c[opt]s[tol]i[uv]b[avg]b[feedback]i
 +
 
 
== [[Script variables|Syntax and Parameters]] ==
 
== [[Script variables|Syntax and Parameters]] ==
 
:{{Template:FuncDef|<!-- function name -->DeSaltPepper(''clip'', ''<!-- par 1 type -->string'' "<!-- par 1 name -->opt", ''<!-- par 2 type -->int'' "<!-- par 2 name -->tol", ''<!-- par 3 type -->bool'' "<!-- par 3 name -->uv ",''<!-- par 4 type -->bool'' <!-- par 4 name -->avg", ''<!-- par 5 type -->int'' "<!-- par 5 name -->feedback")}}
 
:{{Template:FuncDef|<!-- function name -->DeSaltPepper(''clip'', ''<!-- par 1 type -->string'' "<!-- par 1 name -->opt", ''<!-- par 2 type -->int'' "<!-- par 2 name -->tol", ''<!-- par 3 type -->bool'' "<!-- par 3 name -->uv ",''<!-- par 4 type -->bool'' <!-- par 4 name -->avg", ''<!-- par 5 type -->int'' "<!-- par 5 name -->feedback")}}

Revision as of 14:25, 31 May 2015


Abstract
Author V.C.Mohan
Version 1.0.0.0.0
Download 2.5.8 versionDeSaltPepper 2.6.0 alpha5 version URL -->DeSaltPepper
Category External filters
License GPLv2
Discussion Announced DeSaltPepper plugin


Contents

Description

Impulsive noise appears on images either as relatively white (salt) or as relatively black dots (pepper)and such noises are cleaned by this plugin and a full description is at click me.

Requirements

* Not available in AviSynth 2.5.8.


c[opt]s[tol]i[uv]b[avg]b[feedback]i

Syntax and Parameters

DeSaltPepper(clip, string "opt", int "tol", bool "uv ",bool avg", int "feedback")


clip   =
Input clip.


opt  string = "both"
"salt" type or "pepper" type or "both" types to be cleaned .


tol  int = 0
0 to 5 . up to this value noise is tolerated .


uv  bool = true
in case of YUY2 or Planar u and v planes are also to be cleaned .


avg  bool = true
use average as replacement value. Otherwise lowest or highest of rest .


feedback  int = 0
number of feed back loops to be used.0 to 10.




Examples

## This is some example code to remove noise from an image.
imagereader("C:\avi_plugins\varianslim\theoin.jpg", end = 10)
converttoyv16()
ds = DeSaltPepper(imgl, opt = "both",UV = true, tol = 0, avg = true, feedback = 3 )
ds1 = DeSaltPepper(imgl, opt = "salt",UV = false, tol = 4, avg = false, feedback = 10)
ds2 = DeSaltPepper(imgl, opt = "pepper",UV = false, tol = 3, avg = true, feedback = 0)



Back to External Filters

Personal tools