2DCleanYUY2: Difference between revisions
From Avisynth wiki
Jump to navigationJump to search
Update |
m category |
||
| (One intermediate revision by the same user not shown) | |||
| Line 1: | Line 1: | ||
{{ | {{FilterCat4|External_filters|Plugins|Denoisers|Spatial_denoisers}} | ||
{{ | {{Filter3 | ||
|kiraru2003, xeon533 | |||
|17.03.2003 | |17.03.2003 | ||
|{{Plugin/_2DCleanYUY2}} | |{{Plugin/_2DCleanYUY2}} | ||
|Spatial Denoisers | |Spatial Denoisers | ||
|[http://www.gnu.org/licenses/gpl-2.0.txt GPLv2] | |||
|}} | |||
|[http://www.gnu.org/licenses/gpl-2.0.txt GPLv2]}} | |||
== Description == | == Description == | ||
This filter averages pixels in a configurable radius around a source pixel that are within a configurable threshold of the central pixel. This has the effect of blending low-level video noise while retaining sharp details.<br> | |||
<br> | <br> | ||
== Requirements == | == Requirements == | ||
* AviSynth 2.5.8 or later | |||
* Supported color formats: [[YUY2]], [[YV12]] | |||
<br> | <br> | ||
== [[Script variables|Syntax and Parameters]] == | == [[Script variables|Syntax and Parameters]] == | ||
:{{Template:FuncDef|_2DCleanYUY2 (''clip'', ''int'' "interlaced", ''int'' "thresholdY", ''int'' "radiusX", ''int'' "radiusY", ''int'' "dmode", ''int'' "thresholdU", ''int'' "thresholdV")}} | :{{Template:FuncDef|_2DCleanYUY2 (''clip'', ''int'' "interlaced", ''int'' "thresholdY", ''int'' "radiusX", ''int'' "radiusY", ''int'' "dmode", ''int'' "thresholdU", ''int'' "thresholdV")}} | ||
<br> | |||
::{{Par2| |clip| }} | |||
:::Input clip. | |||
<br> | <br> | ||
::{{Par2|interlaced|int|0}} | ::{{Par2|interlaced|int|0}} | ||
:::0=false, 1=true | |||
<br> | <br> | ||
::{{Par2|thresholdY|int|9}} | ::{{Par2|thresholdY|int|9}} | ||
:::Luma threshold. | |||
<br> | <br> | ||
::{{Par2|radiusX|int|2}} | ::{{Par2|radiusX|int|2}} | ||
:::The next horizontal point in range to compare. | |||
:::Range: 0 to 3 | :::Range: 0 to 3 | ||
<br> | <br> | ||
::{{Par2|radiusY|int|2}} | ::{{Par2|radiusY|int|2}} | ||
:::The next vertical point in range to compare. | |||
:::Range: 0 to 9 | :::Range: 0 to 9 | ||
<br> | <br> | ||
::{{Par2|dmode|int|0}} | ::{{Par2|dmode|int|0}} | ||
:::Debug view [Only works with [[YUY2]]]. | |||
::::*0 = none (default) | |||
::::*1 = Displays edges in black over original clip | |||
::::*2 = White background with the edges displayed in black | |||
::::*3 = Edge, average new = (current + new + 1) / 2 and the processing value and the original value) | |||
::::*4 = Edge, new = current you do not handle value. Ie original | |||
<br> | <br> | ||
::{{Par2|thresholdU|int|-1}} | ::{{Par2|thresholdU|int|-1}} | ||
::{{Par2|thresholdV|int|-1}} | ::{{Par2|thresholdV|int|-1}} | ||
:::Independent chroma (U/V) threshold. | |||
:::By default both parameters are set to -1; meaning they will default to the value of {{Template:FuncDef|thresholdY}} | |||
<br> | <br> | ||
== Examples == | == Examples == | ||
| Line 56: | Line 55: | ||
_2DCleanYUY2(interlaced=0, thresholdY=9, radiusX=2, radiusY=2, dmode=0, thresholdU=-1, thresholdV=-1) | _2DCleanYUY2(interlaced=0, thresholdY=9, radiusX=2, radiusY=2, dmode=0, thresholdU=-1, thresholdV=-1) | ||
<br> | <br> | ||
== Links == | ==External Links == | ||
Avisynth plugin: | '''Avisynth plugin:''' | ||
*[http://web.archive.org/web/20050205193228/http://members.at.infoseek.co.jp/kiraru2002/ Archive.org] - Kiraru2002's home page [Japanese]. | *[http://web.archive.org/web/20050205193228/http://members.at.infoseek.co.jp/kiraru2002/ Archive.org] - Kiraru2002's home page [Japanese]. | ||
*[http://web.archive.org/web/20071105084352/http://www.geocities.com/fredthompson6/Kiraru2002/Kiraru2002sROOM.htm Archive.org] - Kiraru2002's home page translated to English. | *[http://web.archive.org/web/20071105084352/http://www.geocities.com/fredthompson6/Kiraru2002/Kiraru2002sROOM.htm Archive.org] - Kiraru2002's home page translated to English. | ||
VirtualDub plugin: | '''VirtualDub plugin:''' | ||
*[http://home.earthlink.net/~casaburi/download/index.html#2dcleaner 2D Cleaner.] | *[http://home.earthlink.net/~casaburi/download/index.html#2dcleaner 2D Cleaner] | [http://web.archive.org/web/20130708150025/http://home.earthlink.net/~casaburi/download/index.html#2dcleaner mirror] | ||
*[http://neuron2.net/2dcleaner.html Optimized 2D Cleaner] | *[http://web.archive.org/web/20140812001348/http://neuron2.net/2dcleaner.html Optimized 2D Cleaner] | ||
<br> | |||
<br> | |||
----------------------------------------------- | |||
'''Back to [[External_filters#Spatial_Denoisers|External Filters]] ←''' | |||
Latest revision as of 00:08, 22 September 2014
| Abstract | |
|---|---|
| Author | kiraru2003, xeon533 |
| Version | 17.03.2003 |
| Download | _2DCleanYUY2_v0_10_mod_for_smp_YV12.zip |
| Category | Spatial Denoisers |
| License | GPLv2 |
| Discussion | |
Description
This filter averages pixels in a configurable radius around a source pixel that are within a configurable threshold of the central pixel. This has the effect of blending low-level video noise while retaining sharp details.
Requirements
- _2DCleanYUY2 (clip, int "interlaced", int "thresholdY", int "radiusX", int "radiusY", int "dmode", int "thresholdU", int "thresholdV")
- clip =
- Input clip.
- clip =
- int interlaced = 0
- 0=false, 1=true
- int interlaced = 0
- int thresholdY = 9
- Luma threshold.
- int thresholdY = 9
- int radiusX = 2
- The next horizontal point in range to compare.
- Range: 0 to 3
- int radiusX = 2
- int radiusY = 2
- The next vertical point in range to compare.
- Range: 0 to 9
- int radiusY = 2
- int dmode = 0
- Debug view [Only works with YUY2].
- int dmode = 0
- 0 = none (default)
- 1 = Displays edges in black over original clip
- 2 = White background with the edges displayed in black
- 3 = Edge, average new = (current + new + 1) / 2 and the processing value and the original value)
- 4 = Edge, new = current you do not handle value. Ie original
- int thresholdU = -1
- int thresholdV = -1
- Independent chroma (U/V) threshold.
- By default both parameters are set to -1; meaning they will default to the value of thresholdY
- int thresholdU = -1
Examples
_2DCleanYUY2 with default settings:
AviSource("Blah.avi") _2DCleanYUY2(interlaced=0, thresholdY=9, radiusX=2, radiusY=2, dmode=0, thresholdU=-1, thresholdV=-1)
External Links
Avisynth plugin:
- Archive.org - Kiraru2002's home page [Japanese].
- Archive.org - Kiraru2002's home page translated to English.
VirtualDub plugin:
Back to External Filters ←