LUTDeCrawl

From Avisynth wiki
(Difference between revisions)
Jump to: navigation, search
m (archived link)
m
 
(One intermediate revision by one user not shown)
Line 7: Line 7:
 
|
 
|
 
|}}
 
|}}
<br>
+
 
 
== Description ==
 
== Description ==
 
LUTDeCrawl, a dot crawl removal script by Scintilla.
 
LUTDeCrawl, a dot crawl removal script by Scintilla.
<br>
+
 
 
<br>
 
<br>
 
== Requirements ==
 
== Requirements ==
* AviSynth 2.5.8 or later
+
* AviSynth 2.5.8 or [http://sourceforge.net/projects/avisynth2/ greater]
 
* Supported color formats: [[YV12]]
 
* Supported color formats: [[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  
Line 19: Line 19:
 
=== Required Plugins ===
 
=== Required Plugins ===
 
*[[MaskTools2]]
 
*[[MaskTools2]]
<br>
 
  
 +
<br>
 
== [[Script variables|Syntax and Parameters]] ==
 
== [[Script variables|Syntax and Parameters]] ==
 
:{{Template:FuncDef|LUTDeCrawl(clip input, int "ythresh", int "cthresh", int "maxdiff", int "scnchg", bool "usemaxdiff", bool "mask")}}
 
:{{Template:FuncDef|LUTDeCrawl(clip input, int "ythresh", int "cthresh", int "maxdiff", int "scnchg", bool "usemaxdiff", bool "mask")}}
Line 48: Line 48:
 
:::When set true, the function will return the mask instead of the image.
 
:::When set true, the function will return the mask instead of the image.
 
:::Use to find the best values of cthresh, ythresh, and maxdiff. (The scene change threshold, scnchg, is not reflected in the mask.
 
:::Use to find the best values of cthresh, ythresh, and maxdiff. (The scene change threshold, scnchg, is not reflected in the mask.
 +
 
<br>
 
<br>
 
== Examples ==
 
== Examples ==
Line 53: Line 54:
 
  [[AviSource]]("Blah.avi")
 
  [[AviSource]]("Blah.avi")
 
  LUTDeCrawl(ythresh=10, cthresh=10, maxdiff=50, scnchg=25, usemaxdiff=true, mask=false)
 
  LUTDeCrawl(ythresh=10, cthresh=10, maxdiff=50, scnchg=25, usemaxdiff=true, mask=false)
 +
 
<br>
 
<br>
 
== Changelog ==
 
== Changelog ==
 
   10/3/08:
 
   10/3/08:
 
       - Is this thing on?
 
       - Is this thing on?
<br>
+
 
 
<br>
 
<br>
 
-----------------------------------------------
 
-----------------------------------------------
 
'''Back to [[External_filters#Rainbow_.26_Dot_Crawl_Removal|External Filters]] &larr;'''
 
'''Back to [[External_filters#Rainbow_.26_Dot_Crawl_Removal|External Filters]] &larr;'''
 
-----------------------------------------------
 
-----------------------------------------------

Latest revision as of 00:46, 25 June 2018

Abstract
Author Scintilla
Version 10/3/08
Download LUTDeCrawl-20081003.avsi
Category Rainbow & Dot Crawl Removal
License
Discussion

Contents

[edit] Description

LUTDeCrawl, a dot crawl removal script by Scintilla.


[edit] Requirements

[edit] Required Plugins


[edit] Syntax and Parameters

LUTDeCrawl(clip input, int "ythresh", int "cthresh", int "maxdiff", int "scnchg", bool "usemaxdiff", bool "mask")


clip  input =
Input clip.


int  ythresh = 10
This determines how close the luma values of the pixel in the previous and next frames have to be for the pixel to be hit.
Higher values (within reason) should catch more dot crawl, but may introduce unwanted artifacts. Probably shouldn't be set above 20 or so.


int  cthresh = 10
This determines how close the chroma values of the pixel in the previous and next frames have to be for the pixel to be hit. Just as with ythresh.


int  maxdiff = 50
This is the maximum difference allowed between the luma values of the pixel in the CURRENT frame and in each of its neighbour frames (so, the upper limit to what fluctuations are considered dot crawl).
Lower values will reduce artifacts but may cause the filter to miss some dot crawl. Obviously, this should never be lower than ythresh. Meaningless if usemaxdiff = false.


int  scnchg = 25
Scene change detection threshold. Any frame with total luma difference between it and the previous/next frame greater than this value will not be processed.


bool  usemaxdiff = true
Whether or not to reject luma fluctuations higher than maxdiff.
Setting this to false is not recommended, as it may introduce artifacts; but on the other hand, it produces a 30% speed boost. Test on your particular source.


bool  mask = false
When set true, the function will return the mask instead of the image.
Use to find the best values of cthresh, ythresh, and maxdiff. (The scene change threshold, scnchg, is not reflected in the mask.


[edit] Examples

LUTDeCrawl with default settings:

AviSource("Blah.avi")
LUTDeCrawl(ythresh=10, cthresh=10, maxdiff=50, scnchg=25, usemaxdiff=true, mask=false)


[edit] Changelog

  10/3/08:
     - Is this thing on?



Back to External Filters


Personal tools