DeRainbow

From Avisynth wiki
(Difference between revisions)
Jump to: navigation, search
m (Syntax and Parameters)
m (Update)
Line 2: Line 2:
 
{{Filter
 
{{Filter
 
| sh0dan  
 
| sh0dan  
| 2003-11-12
+
| 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.
===== Requirements: =====
+
<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: =====
+
==== Required Filters: ====
:*[[MaskTools]] v1.5.8
+
:*[[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>
<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'' "org", ''int'' "thresh")}}
+
:{{Template:FuncDef|DeRainbowYUY2 (''clip'' "org", ''int'' "thresh")}}
+
 
<br>
 
<br>
 
::{{Par2|org|clip| }}
 
::{{Par2|org|clip| }}
:::Mandatory input clip.
+
:::Input clip.
 
<br>
 
<br>
 
::{{Par2|thresh|int|10}}
 
::{{Par2|thresh|int|10}}
:::Threshold is optional, and defaults to 10 (which is fairly strong).
+
:::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 values.
+
DeRainbow with default settings:
 
  [[AviSource]]("Blah.avi")
 
  [[AviSource]]("Blah.avi")
  DeRainbow(thresh=10)
+
  DeRainbow(thresh=10, interlaced=false)
 
<br>
 
<br>
 
== Changelog ==
 
== Changelog ==
  [http://forum.doom9.org/showpost.php?p=398106&postcount=18 2003/11/12:]
+
Version          Date            Changes<br>
      - Fixed DeRainbow and added a YUY2 version (much slower though), but with no chroma downsampling.  
+
2014/02/23        2014/02/23      - Changed syntax to use MaskTools2.
      - I tweaked it a bit for best results on my current material.  
+
                                  - Add "interlaced" parameter.<br>
      - I also changed the blurs to MipSmooth.  
+
[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
  • YUY2
  • YV12
License
Discussion


Contents

Description

A simple script to reduce rainbows.


Requirements:

- AviSynth 2.5.8 or later
- Supported color formats: YUY2, YV12
- Progressive input only

Required Filters:


Syntax and Parameters

DeRainbow (clip org, int "thresh", bool "interlaced")
DeRainbowYUY2 (clip org, int "thresh", bool "interlaced")


clip  org =
Input clip.


int  thresh = 10
MSharpen threshold value; default is 10 (which is fairly strong).


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.


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





Back to External Filters


Personal tools