SmoothUV/SSHiQ: Difference between revisions
From Avisynth wiki
Jump to navigationJump to search
m category |
m minor formatting |
||
| Line 1: | Line 1: | ||
{{FilterCat4|External_filters|Plugin_functions|Denoisers|Spatial_denoisers}} | |||
'''Back to [[SmoothUV]] ←''' | '''Back to [[SmoothUV]] ←''' | ||
-------------------------------------------------------- | -------------------------------------------------------- | ||
<br> | <br> | ||
== Description == | |||
A general purpose spatial denoiser. SSHiQ has independent parameters for both luma and chroma, meaning that you can process the luma only and leave the chroma intact or vice versa. | |||
<br> | <br> | ||
<br> | <br> | ||
==Syntax and Parameters == | == [[Script variables|Syntax and Parameters]] == | ||
:{{Template:FuncDef|SSHiQ (''clip'', ''int'' "rY", ''int'' "rC", ''int'' "tY", ''int'' tC, ''bool'' "HQY", ''bool'' "HQC", ''bool'' "field")}} | :{{Template:FuncDef|SSHiQ (''clip'', ''int'' "rY", ''int'' "rC", ''int'' "tY", ''int'' tC, ''bool'' "HQY", ''bool'' "HQC", ''bool'' "field")}} | ||
<br> | |||
::{{Par2| |clip| }} | |||
:::Input clip must be [[YV12]]. | |||
<br> | <br> | ||
::{{Par2|rY|int|5}} | ::{{Par2|rY|int|5}} | ||
::{{Par2|rC|int|3}} | ::{{Par2|rC|int|3}} | ||
:::The radii for luma (Y) and chroma (U,V); controls how far from the current pixel neighbors are used. The greater the value the more it smooths. | |||
:::Range: 1 to 7 | :::Range: 1 to 7 | ||
<br> | <br> | ||
::{{Par2|tY|int|20}} | ::{{Par2|tY|int|20}} | ||
::{{Par2|tC|int|30}} | ::{{Par2|tC|int|30}} | ||
:::Luma (Y) and Chroma (U,V) thresholds; noise VS detail sensitivity. If set to 0 or anything less the plane simply gets copied. | |||
:::Range: 0 to 450 | |||
<br> | <br> | ||
::{{Par2|str|int|240}} | ::{{Par2|str|int|240}} | ||
| Line 29: | Line 29: | ||
::{{Par2|HQY|bool|true}} | ::{{Par2|HQY|bool|true}} | ||
::{{Par2|HQC|bool|true}} | ::{{Par2|HQC|bool|true}} | ||
:::True enables HiQ mode; edge processing strength gets automatically reduced. | |||
:::(HQ == 0) ? smoothed_pixel : ( (strength-edge*2)*smoothed_pixel + (256-(strength-edge*2))*pixel_in )/256 | |||
<br> | <br> | ||
::{{Par2|field|bool|false}} | ::{{Par2|field|bool|false}} | ||
:::False is for [[FAQ_different_types_content#How_do_I_recognize_progressive.2C_interlaced.2C_telecined.2C_hybrid_and_blended_content.3F|progressive]] input, true is for [[FAQ_different_types_content#How_do_I_recognize_progressive.2C_interlaced.2C_telecined.2C_hybrid_and_blended_content.3F|interlaced]] input. | |||
<br> | <br> | ||
== Examples == | == Examples == | ||
Latest revision as of 01:01, 22 September 2014
Back to SmoothUV ←
Description
A general purpose spatial denoiser. SSHiQ has independent parameters for both luma and chroma, meaning that you can process the luma only and leave the chroma intact or vice versa.
- SSHiQ (clip, int "rY", int "rC", int "tY", int tC, bool "HQY", bool "HQC", bool "field")
- clip =
- Input clip must be YV12.
- clip =
- int rY = 5
- int rC = 3
- The radii for luma (Y) and chroma (U,V); controls how far from the current pixel neighbors are used. The greater the value the more it smooths.
- Range: 1 to 7
- int rY = 5
- int tY = 20
- int tC = 30
- Luma (Y) and Chroma (U,V) thresholds; noise VS detail sensitivity. If set to 0 or anything less the plane simply gets copied.
- Range: 0 to 450
- int tY = 20
- int str = 240
- Range: 0 to 255
- Strength is only used for HiQ mode and it controls how much of the smoothed version should be used at best for calculating the new pixel.
- Range: 0 to 255
- int str = 240
- bool HQY = true
- bool HQC = true
- True enables HiQ mode; edge processing strength gets automatically reduced.
- (HQ == 0) ? smoothed_pixel : ( (strength-edge*2)*smoothed_pixel + (256-(strength-edge*2))*pixel_in )/256
- bool HQY = true
- bool field = false
- False is for progressive input, true is for interlaced input.
- bool field = false
Examples
SSHiQ with default settings:
AviSource("Blah.avi") SSSHiQ(rY=5, rC=3, tY=20, tC=30, str=240, HQY=true, HQC=true, field=false)
Back to SmoothUV ←