DeSaltPepper
From Avisynth wiki
(Difference between revisions)
m (→Requirements: AviSynth 2.6) |
(modPlus modifications) |
||
Line 3: | Line 3: | ||
{{Filter3 | {{Filter3 | ||
− | |1=<!-- author -->[http://www.avisynth.nl/users/vcmohan/ V.C.Mohan] | + | |1=<!-- author --> [http://www.avisynth.nl/users/vcmohan/ V.C.Mohan] |
− | |2=<!-- version --> | + | |2=<!-- version --> 17 Oct 2017 |
− | |3=<!-- | + | |3=<!-- URL --> [http://www.avisynth.nl/users/vcmohan/modPlus/modPlus.7z Download] |
− | |4=<!-- category -->External filters | + | |4=<!-- category --> External filters |
− | |5=<!-- license -->[ | + | |5=<!-- license --> [https://www.gnu.org/licenses/gpl-2.0.txt GPLv2] |
− | |6=<!-- discussion URL -->[ | + | |6=<!-- discussion URL --> [https://forum.doom9.org/showthread.php?p=895926#post895926 Announced DeSaltPepper plugin]}} |
− | |||
== Description == | == Description == | ||
<!-- a one-sentence description --> | <!-- a one-sentence description --> | ||
− | + | ||
+ | The function SaltPepper uses morphology technique to identify such noise and replace those pixels by average or minimum or maximum whichever is appropriate of the surrounding pixels. [http://www.avisynth.nl/users/vcmohan/modPlus/SaltPepper.html Full Description]. | ||
+ | |||
+ | |||
+ | Requires AviSynth+ r2347 or greater | ||
<br> | <br> | ||
<br> | <br> | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
== [[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 --> | + | :{{Template:FuncDef|<!-- function name -->DeSaltPepper(''clip'', ''<!-- par 1 type -->string'' "<!-- par 1 name -->opt", ''<!-- par 2 type -->bool'' "<!-- par 2 name -->uv ",''<!-- par 3 type -->bool'' <!-- par 3 name -->avg", ''<!-- par 4 type -->int'' "<!-- par 4 name -->feedback")}} |
<br> | <br> | ||
::{{Par2| |clip| }} | ::{{Par2| |clip| }} | ||
Line 34: | Line 27: | ||
<br> | <br> | ||
::{{Par2|<!-- par 1 type -->string|<!-- par 1 name -->opt|<!-- par 1 default value -->"both"}} | ::{{Par2|<!-- par 1 type -->string|<!-- par 1 name -->opt|<!-- par 1 default value -->"both"}} | ||
− | :::<!-- par 1 description --> | + | :::<!-- par 1 description --> Option of process. |
<br> | <br> | ||
− | ::{{Par2|<!-- par 2 | + | ::{{Par2|<!-- par 2 type -->bool|<!-- par 3 name -->uv|<!-- par 2 default value -->true}} |
− | + | :::<!-- par 2 description --> UV processing required? | |
− | + | ||
− | + | ||
− | :::<!-- par | + | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
<br> | <br> | ||
+ | ::{{Par2|<!-- par 3 type -->bool|<!-- par 3 name -->avg|<!-- par 3 default value -->true}} | ||
+ | :::<!-- par 3 description --> Is average is replacement value? | ||
<br> | <br> | ||
+ | ::{{Par2|<!-- par 4 type -->int|<!-- par 4 name -->feedback|<!-- par 4 default value -->0}} | ||
+ | :::<!-- par n description --> Number of feed back loops in processing to be used. applicable only if avg is true. 0 to 10. | ||
<br> | <br> | ||
== Examples == | == Examples == | ||
<!-- example code block: 1st char in each line = space --> | <!-- example code block: 1st char in each line = space --> | ||
− | + | SaltPepper(img, opt = "both",UV = true, tol = 0, avg = true, feedback = 3 ) | |
− | + | ||
− | + | ds = SaltPepper(img, opt = "both",UV = true) | |
− | + | ds1 = SaltPepper(img, opt = "salt",UV = false, avg = false) | |
− | ds1 = | + | ds2 = SaltPepper(ds1, opt = "pepper",UV = true) |
− | ds2 = | + | |
<br> | <br> | ||
----------------------------------------------- | ----------------------------------------------- | ||
'''Back to [[External_filters|External Filters]] ←''' | '''Back to [[External_filters|External Filters]] ←''' |
Revision as of 04:12, 18 June 2018
Abstract | |
---|---|
Author | V.C.Mohan |
Version | 17 Oct 2017 |
Download | Download |
Category | External filters |
License | GPLv2 |
Discussion | Announced DeSaltPepper plugin |
Description
The function SaltPepper uses morphology technique to identify such noise and replace those pixels by average or minimum or maximum whichever is appropriate of the surrounding pixels. Full Description.
Requires AviSynth+ r2347 or greater
Syntax and Parameters
- DeSaltPepper(clip, string "opt", bool "uv ",bool avg", int "feedback")
- clip =
- Input clip.
- clip =
- opt string = "both"
- Option of process.
- opt string = "both"
- uv bool = true
- UV processing required?
- uv bool = true
- avg bool = true
- Is average is replacement value?
- avg bool = true
- feedback int = 0
- Number of feed back loops in processing to be used. applicable only if avg is true. 0 to 10.
- feedback int = 0
Examples
SaltPepper(img, opt = "both",UV = true, tol = 0, avg = true, feedback = 3 )
ds = SaltPepper(img, opt = "both",UV = true) ds1 = SaltPepper(img, opt = "salt",UV = false, avg = false) ds2 = SaltPepper(ds1, opt = "pepper",UV = true)
Back to External Filters ←