Rainbow Smooth

From Avisynth wiki
(Difference between revisions)
Jump to: navigation, search
(Format)
m (space)
 
(3 intermediate revisions by one user not shown)
Line 1: Line 1:
{{FilterCat|External_filters|Restoration_filters|Rainbow & Dot Crawl Removal}}
+
{{FilterCat4|External_filters|Scripts|Restoration_filters|Rainbow & Dot Crawl Removal}}
{{Filter2
+
{{Filter3
 
| MOmonster  
 
| MOmonster  
 
| 2007/07/18
 
| 2007/07/18
Line 6: Line 6:
 
| Rainbow & Dot Crawl Removal
 
| Rainbow & Dot Crawl Removal
 
|
 
|
|}}
+
|6=[http://forum.doom9.org/showthread.php?t=128003 Doom9 Thread]}}
<br>
+
 
 
== Description ==
 
== Description ==
:rainbow_smooth is a small spatial derainbowing function. It uses [[SmoothUV/SmoothUV|SmoothUV]] to smooth out chroma and edge masking to reduce the colour bleeding.
+
'''<tt>rainbow_smooth</tt>''' is a small spatial derainbowing function. It uses [[SmoothUV/SmoothUV|SmoothUV]] to smooth out chroma and edge masking to reduce the colour bleeding.
 +
<br>
 
<br>
 
<br>
 
== Requirements ==
 
== Requirements ==
:- AviSynth 2.5.8 or later
+
* AviSynth 2.5.8 or [http://sourceforge.net/projects/avisynth2/ greater]
:- [[FAQ_different_types_content#How_do_I_recognize_progressive.2C_interlaced.2C_telecined.2C_hybrid_and_blended_content.3F|Progressive]] input only  
+
* [[FAQ_different_types_content#How_do_I_recognize_progressive.2C_interlaced.2C_telecined.2C_hybrid_and_blended_content.3F|Progressive]] input only  
:- Supported color formats: [[YV12]]
+
* Supported color formats: [[YV12]]
  
==== Required Plugins: ====
+
=== Required Plugins ===
:*[[MaskTools2]] 2.0a48+
+
Latest versions of the following filters are recommended unless stated otherwise.<br>
:* [[SmoothUV]]
+
*[[MaskTools2]]
 +
* [[SmoothUV]]
 
<br>
 
<br>
== Syntax and Parameters ==
+
== [[Script variables|Syntax and Parameters]] ==
 
:{{Template:FuncDef|rainbow_smooth (''clip'' orig, ''int'' "radius", ''int'' "lthresh", ''int'' "hthresh")}}
 
:{{Template:FuncDef|rainbow_smooth (''clip'' orig, ''int'' "radius", ''int'' "lthresh", ''int'' "hthresh")}}
 
<br>
 
<br>
 
::{{Par2|orig|clip| }}
 
::{{Par2|orig|clip| }}
::::Input clip.
+
:::Input clip.
 
<br>
 
<br>
 
::{{Par2|radius|int|3}}
 
::{{Par2|radius|int|3}}
 +
:::The smoothing radius of [[SmoothUV/SmoothUV|SmoothUV]].
 +
 
:::Range: 1 to 7
 
:::Range: 1 to 7
::::The smoothing radius of [[SmoothUV/SmoothUV|SmoothUV]].
 
 
<br>
 
<br>
 
::{{Par2|lthresh|int|0}}
 
::{{Par2|lthresh|int|0}}
 
::{{Par2|hthresh|int|220}}
 
::{{Par2|hthresh|int|220}}
 +
:::The low and high smoothing thresholds of [[SmoothUV/SmoothUV|SmoothUV]]; use smaller values for safer processing.
 +
:::Masking is only used for {{Template:FuncDef|hthresh}}, so if you set {{Template:FuncDef|lthresh}} greater than {{Template:FuncDef|hthresh}}, {{Template:FuncDef|lthresh}} will be the overall threshold and no masking will be used (fastest).
 +
:::If you set {{Template:FuncDef|lthresh}} to 0, you disable the basic chroma smoothing and use only the chroma-smoothing on edges.
 +
 
:::Range: 0 to 255
 
:::Range: 0 to 255
::::The low and high smoothing thresholds of [[SmoothUV/SmoothUV|SmoothUV]].
 
:::::Use smaller values for safer processing. Masking is only used for {{Template:FuncDef|hthresh}},
 
:::::so if you set {{Template:FuncDef|lthresh}} greater than {{Template:FuncDef|hthresh}}, {{Template:FuncDef|lthresh}} will be the overall threshold and no masking will be used (fastest).
 
:::::If you set {{Template:FuncDef|lthresh}} to 0, you disable the basic chroma smoothing and use only the chroma-smoothing on edges.
 
 
<br>
 
<br>
 
== Examples ==
 
== Examples ==
Line 47: Line 50:
 
  2007/07/18      2007/07/18      - Initial release
 
  2007/07/18      2007/07/18      - Initial release
 
<br>
 
<br>
==Links==
+
==External Links==
:[http://forum.doom9.org/showthread.php?t=128003 Doom9 Forum] - Rainbow_smooth discussion.
+
*[http://forum.doom9.org/showthread.php?t=128003 Doom9 Forum] - Rainbow_smooth discussion.
 +
<br>
 +
<br>
 +
-----------------------------------------------
 +
'''Back to [[External_filters#Rainbow_.26_Dot_Crawl_Removal|External Filters]] &larr;'''
 +
-----------------------------------------------

Latest revision as of 14:11, 6 March 2016

Abstract
Author MOmonster
Version 2007/07/18
Download rainbow_smooth.avsi
Category Rainbow & Dot Crawl Removal
License
Discussion Doom9 Thread

Contents

[edit] Description

rainbow_smooth is a small spatial derainbowing function. It uses SmoothUV to smooth out chroma and edge masking to reduce the colour bleeding.

[edit] Requirements

[edit] Required Plugins

Latest versions of the following filters are recommended unless stated otherwise.


[edit] Syntax and Parameters

rainbow_smooth (clip orig, int "radius", int "lthresh", int "hthresh")


clip  orig =
Input clip.


int  radius = 3
The smoothing radius of SmoothUV.
Range: 1 to 7


int  lthresh = 0
int  hthresh = 220
The low and high smoothing thresholds of SmoothUV; use smaller values for safer processing.
Masking is only used for hthresh, so if you set lthresh greater than hthresh, lthresh will be the overall threshold and no masking will be used (fastest).
If you set lthresh to 0, you disable the basic chroma smoothing and use only the chroma-smoothing on edges.
Range: 0 to 255


[edit] Examples

rainbow_smooth with default settings:

AviSource("Blah.avi")
rainbow_smooth(radius=3, lthresh=0, hthresh=220)


[edit] Changelog

Version         Date            Changes
2007/07/18 2007/07/18 - Initial release


[edit] External Links




Back to External Filters


Personal tools