DeSaltPepper
From Avisynth wiki
(Difference between revisions)
(→Syntax and Parameters) |
|||
Line 25: | Line 25: | ||
<br> | <br> | ||
::{{Par2| |clip| }} | ::{{Par2| |clip| }} | ||
− | ::: Input clip | + | ::: Input clip |
<br> | <br> | ||
::{{Par2|opt|string|"both"}} | ::{{Par2|opt|string|"both"}} | ||
− | ::: Process option | + | ::: Process option |
− | + | :::* "salt" | |
− | + | :::* "pepper" | |
− | ::* "salt" | + | :::* "both" |
<br> | <br> | ||
::{{Par2|uv|bool|true}} | ::{{Par2|uv|bool|true}} | ||
::: UV processing required? | ::: UV processing required? | ||
− | + | :::* true for u, v process | |
− | + | :::* false for not processing u, v | |
− | ::* true for u, v process | + | |
− | ::* false for not processing u, v | + | |
<br> | <br> | ||
::{{Par2|avg|bool|true}} | ::{{Par2|avg|bool|true}} | ||
::: Is average is replacement value? | ::: Is average is replacement value? | ||
− | + | :::* true for average | |
− | + | :::* false for max value of neighborhood for salt and minimum value for pepper | |
− | ::* true for average | + | |
− | ::* false for max value of | + | |
<br> | <br> | ||
::{{Par2|feedback|int|0}} | ::{{Par2|feedback|int|0}} | ||
::: Number of feed back loops in processing to be used. applicable only if avg is true. | ::: Number of feed back loops in processing to be used. applicable only if avg is true. | ||
− | + | :::* 0 to 10 | |
− | + | ||
− | ::* 0 to 10 | + | |
<br> | <br> | ||
Revision as of 20:33, 18 June 2018
Abstract | |
---|---|
Author | V.C.Mohan |
Version | 17 Oct 2017 |
Download | modPlus.7z |
Category | External filters |
License | GPLv2 |
Discussion | Announced DeSaltPepper plugin |
Contents |
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.
Requirements
- AviSynth+ r2347 or later
Syntax and Parameters
- SaltPepper(clip, string "opt", bool "uv", bool "avg", int "feedback")
- clip =
- Input clip
- clip =
- string opt = "both"
- Process option
- "salt"
- "pepper"
- "both"
- Process option
- string opt = "both"
- bool uv = true
- UV processing required?
- true for u, v process
- false for not processing u, v
- UV processing required?
- bool uv = true
- bool avg = true
- Is average is replacement value?
- true for average
- false for max value of neighborhood for salt and minimum value for pepper
- Is average is replacement value?
- bool avg = true
- int feedback = 0
- Number of feed back loops in processing to be used. applicable only if avg is true.
- 0 to 10
- Number of feed back loops in processing to be used. applicable only if avg is true.
- int feedback = 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 ←