DeRainbow: Difference between revisions
From Avisynth wiki
Jump to navigationJump to search
m Syntax and Parameters |
m Update |
||
| Line 2: | Line 2: | ||
{{Filter | {{Filter | ||
| sh0dan | | sh0dan | ||
| | | 2014/02/23 | ||
| [ DeRainbow] | | [http://avisynth.nl/images/DeRainbow.avsi DeRainbow.avsi] | ||
| Rainbow & Dot Crawl Removal | | Rainbow & Dot Crawl Removal | ||
| | | | ||
| Line 12: | Line 12: | ||
<br> | <br> | ||
== Description == | == Description == | ||
:A simple script to reduce rainbows | :A simple script to reduce rainbows. | ||
<br> | |||
== Requirements: == | |||
:- AviSynth 2.5.8 or later | :- AviSynth 2.5.8 or later | ||
:- Supported color formats: [[YUY2]], [[YV12]] | :- Supported color formats: [[YUY2]], [[YV12]] | ||
:- [[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 | ||
==== Required Filters: ==== | |||
:*[[ | :*[[MaskTools2]] 2.0a48+ | ||
:*[http://avisynth.nl/users/fizick/docs/english/externalfilters/mipsmooth.htm MipSmooth] | :*[http://avisynth.nl/users/fizick/docs/english/externalfilters/mipsmooth.htm MipSmooth] | ||
:*[http://neuron2.net/msharpen/msharpen.html MSharpen] | :*[http://neuron2.net/msharpen/msharpen.html MSharpen] | ||
<br> | <br> | ||
== [[Script variables|Syntax and Parameters]] == | |||
:{{Template:FuncDef|DeRainbow (''clip'' org, ''int'' "thresh", ''bool'' "interlaced")}} | |||
== Syntax and Parameters == | :{{Template:FuncDef|DeRainbowYUY2 (''clip'' org, ''int'' "thresh", ''bool'' "interlaced")}} | ||
:{{Template:FuncDef|DeRainbow (''clip'' | |||
:{{Template:FuncDef|DeRainbowYUY2 (''clip'' | |||
<br> | <br> | ||
::{{Par2|org|clip| }} | ::{{Par2|org|clip| }} | ||
::: | :::Input clip. | ||
<br> | <br> | ||
::{{Par2|thresh|int|10}} | ::{{Par2|thresh|int|10}} | ||
::: | :::MSharpen threshold value; default is 10 (which is fairly strong). | ||
<br> | |||
::{{Par2|interlaced|bool|false}} | |||
:::False means the input clip is [[FAQ_different_types_content#How_do_I_recognize_progressive.2C_interlaced.2C_telecined.2C_hybrid_and_blended_content.3F|progressive]]; with true it's [[FAQ_different_types_content#How_do_I_recognize_progressive.2C_interlaced.2C_telecined.2C_hybrid_and_blended_content.3F|interlaced]]. | |||
:::Interlaced content is processed by using [[SeparateFields]] in the beginning and [[Weave]] at the end. | |||
<br> | <br> | ||
== Examples == | == Examples == | ||
DeRainbow with default | DeRainbow with default settings: | ||
[[AviSource]]("Blah.avi") | [[AviSource]]("Blah.avi") | ||
DeRainbow(thresh=10) | DeRainbow(thresh=10, interlaced=false) | ||
<br> | <br> | ||
== Changelog == | == Changelog == | ||
Version Date Changes<br> | |||
2014/02/23 2014/02/23 - Changed syntax to use MaskTools2. | |||
- Add "interlaced" parameter.<br> | |||
[http://forum.doom9.org/showpost.php?p=398106&postcount=18 2003/11/12] 2003/11/12 - Fixed DeRainbow and added a YUY2 version (much slower though), but with no chroma downsampling. | |||
- I tweaked it a bit for best results on my current material. | |||
- I also changed the blurs to MipSmooth.<br> | |||
[http://forum.doom9.org/showpost.php?p=383417&postcount=35 2003/10/08] 2003/10/08 - Initial release. | |||
- Originally named "Rainbow Killer" | |||
<br> | <br> | ||
Revision as of 06:55, 24 February 2014
| Abstract | |
|---|---|
| Author | sh0dan |
| Version | 2014/02/23 |
| Download | DeRainbow.avsi |
| Category | Rainbow & Dot Crawl Removal |
| Requirements |
|
| License | |
| Discussion | |
Description
- A simple script to reduce rainbows.
Requirements:
- - AviSynth 2.5.8 or later
- - Supported color formats: YUY2, YV12
- - Progressive input only
Required Filters:
- MaskTools2 2.0a48+
- MipSmooth
- MSharpen
- DeRainbow (clip org, int "thresh", bool "interlaced")
- DeRainbowYUY2 (clip org, int "thresh", bool "interlaced")
- clip org =
- Input clip.
- clip org =
- int thresh = 10
- MSharpen threshold value; default is 10 (which is fairly strong).
- int thresh = 10
- bool interlaced = false
- False means the input clip is progressive; with true it's interlaced.
- Interlaced content is processed by using SeparateFields in the beginning and Weave at the end.
- bool interlaced = false
Examples
DeRainbow with default settings:
AviSource("Blah.avi") DeRainbow(thresh=10, interlaced=false)
Changelog
Version Date Changes
2014/02/23 2014/02/23 - Changed syntax to use MaskTools2. - Add "interlaced" parameter.
2003/11/12 2003/11/12 - Fixed DeRainbow and added a YUY2 version (much slower though), but with no chroma downsampling. - I tweaked it a bit for best results on my current material. - I also changed the blurs to MipSmooth.
2003/10/08 2003/10/08 - Initial release. - Originally named "Rainbow Killer"
Links
- Doom9 Forum - DeRainbow discussion.
Back to External Filters ←