EdgeCleaner

From Avisynth wiki
(Difference between revisions)
Jump to: navigation, search
(Links)
m (Examples)
 
(12 intermediate revisions by one user not shown)
Line 1: Line 1:
{{FilterCat|External_filters|Restoration_filters|Deringing & Mosquito Noise}}
+
{{FilterCat4|External_filters|Scripts|Restoration_filters|Deringing & Mosquito Noise}}
{{Filter
+
{{Filter3
 
|canuckerfan
 
|canuckerfan
 
|1.04
 
|1.04
|[EdgeCleaner]
+
|3=[http://forum.doom9.org/showpost.php?p=1568521&postcount=13 EdgeCleaner script]
|Deringing & Mosquito Noise
+
|4=Deringing & Mosquito Noise
|
+
|5=
* YV12
+
|6=[http://forum.doom9.org/showthread.php?t=164592 Doom9 Thread]
|}}
+
}}
  
 +
== Description ==
 +
A simple edge cleaning and weak dehaloing function.<br>
 +
<br>
 +
== Requirements ==
 +
* AviSynth 2.5.8 or later
 +
* [[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]]
  
== Introduction ==
+
==== Required Plugins ====
:A simple edge cleaning and weak dehaloing function.
+
Latest versions of the following filters are recommended unless stated otherwise.<br>
=== Required Filters ===
+
*[[aWarpSharp2]]
:*[[aWarpSharp2]]
+
*[[MaskTools2]]
:*[[MaskTools2]] 2.0a48+
+
*<strike>RemoveGrain and Repair - part of the [[RemoveGrain v1.0b]] package.</strike>
 +
*[[RgTools]] - recommended drop-in replacement for RemoveGrain & Repair!
 +
'''Optional plugins:'''
 +
*[[Deen]] - only required if <tt>smode</tt> is specifically set to use Deen.
 
<br>
 
<br>
  
== Parameters ==
+
== [[Script variables|Syntax and Parameters]] ==
{{Template:FuncDef|EdgeCleaner(clip c, int "strength", bool "rep", int "rmode", int "smode", bool "hot")}}
+
:{{Template:FuncDef|EdgeCleaner (clip c, int "strength", bool "rep", int "rmode", int "smode", bool "hot")}}
 
<br>
 
<br>
 +
::{{Par2|c|clip| }}
 +
:::Input clip.
 
<br>
 
<br>
:{{Par|strength|int|10}}
+
::{{Par2|strength|int|10}}
::specifies edge denoising strength.<br>
+
:::specifies edge denoising strength.
:{{Par|rep|bool|true}}
+
<br>
::Activates Repair for the aWarpSharped clip (true; requires Repair)
+
::{{Par2|rep|bool|true}}
:{{Par|rmode|int|17}}
+
:::Activates Repair for the aWarpSharped clip (true; requires Repair)
::Specifies the Repair mode:
+
<br>
::Mode 1 is very mild and good for halos,
+
::{{Par2|rmode|int|17}}
::16 and 18 are good to preserve edge structure on strong settings but keep more halos and edge noise,  
+
:::Specifies the Repair mode:
::17 is similar to 16 but keeps much less haloing, other modes are not recommended (17; requires Repair).<br>
+
::::*Mode 1 is very mild and good for halos.
:{{Par|smode|int|0}}
+
::::*Mode 16 and 18 are good to preserve edge structure on strong settings but keep more halos and edge noise,  
::Specifies what method will be used for finding small particles, ie stars:
+
::::*Mode 17 is similar to 16 but keeps much less haloing, other modes are not recommended (17; requires Repair).
::* 0 : disabled
+
<br>
::* 1 : use RemoveGrain
+
::{{Par2|smode|int|0}}
::* 2 : use Deen<br>
+
:::Specifies what method will be used for finding small particles, ie stars:
:{{Par|hot|bool|false}}
+
::::* 0 : disabled
::Specifies whether removal of hot pixels should take place.
+
::::* 1 : use RemoveGrain
 +
::::* 2 : use Deen
 +
<br>
 +
::{{Par2|hot|bool|false}}
 +
:::Specifies whether removal of hot pixels should take place.
 
<br>
 
<br>
== Examples ==
 
  
 +
== Examples ==
 +
EdgeCleaner with default settings:
 
  [[AviSource]]("Blah.avi")
 
  [[AviSource]]("Blah.avi")
  EdgeCleaner()
+
  EdgeCleaner(strength=10, rep=true, rmode=17, smode=0, hot=false)
 
<br>
 
<br>
 +
 
== Changelog ==
 
== Changelog ==
 
   03/04/2012  [http://forum.doom9.org/showpost.php?p=1568521&postcount=13 v1.04]
 
   03/04/2012  [http://forum.doom9.org/showpost.php?p=1568521&postcount=13 v1.04]
 
       - adapted the code to work with SEt's updated [[aWarpSharp2]]
 
       - adapted the code to work with SEt's updated [[aWarpSharp2]]
 
       - removed the redundant fix parameter
 
       - removed the redundant fix parameter
       - increased default strength to 10
+
       - increased default strength to 10<br>
 
   06/08/2008  [http://forum.doom9.org/showpost.php?p=1167937&postcount=6 v1.03]
 
   06/08/2008  [http://forum.doom9.org/showpost.php?p=1167937&postcount=6 v1.03]
 
       - improved mask that leaves less warping and more original line structure, therefore higher strengths are now safe to use
 
       - improved mask that leaves less warping and more original line structure, therefore higher strengths are now safe to use
 
       - improved StarMask()
 
       - improved StarMask()
 
       - removed super mode
 
       - removed super mode
       - removed srep, sshiqloc, some smodes and VD_SmartSmoothHiQ() due to StarMask() changes
+
       - removed srep, sshiqloc, some smodes and VD_SmartSmoothHiQ() due to StarMask() changes<br>
 
   01/06/2008  v1.02
 
   01/06/2008  v1.02
 
       - added srep parameter
 
       - added srep parameter
       - improved particle masking
+
       - improved particle masking<br>
 
   01/06/2008  v1.01
 
   01/06/2008  v1.01
       - added masking for particles with two parameters; smode and sshiqloc
+
       - added masking for particles with two parameters; smode and sshiqloc<br>
 
   12/05/2008  v1.00
 
   12/05/2008  v1.00
 
       - removed line darkening, mode 2 mask, RemoveGrain
 
       - removed line darkening, mode 2 mask, RemoveGrain
Line 65: Line 83:
 
       - added Repair
 
       - added Repair
 
<br>
 
<br>
== Links ==
 
  
- [http://forum.doom9.org/showthread.php?t=164592 EdgeCleaner v1.04 discussion]
+
==External Links ==
 +
*[http://forum.doom9.org/showthread.php?t=164592 Doom9 Forum] - EdgeCleaner discussion.
 +
<br>
 +
<br>
 +
-----------------------------------------------
 +
'''Back to [[External_filters#Deringing_.26_Mosquito_Noise|External Filters]] &larr;'''

Latest revision as of 20:49, 15 June 2015

Abstract
Author canuckerfan
Version 1.04
Download EdgeCleaner script
Category Deringing & Mosquito Noise
License
Discussion Doom9 Thread

Contents

[edit] Description

A simple edge cleaning and weak dehaloing function.

[edit] Requirements

  • AviSynth 2.5.8 or later
  • Progressive input only
  • Supported color formats: YV12

[edit] Required Plugins

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

Optional plugins:

  • Deen - only required if smode is specifically set to use Deen.


[edit] Syntax and Parameters

EdgeCleaner (clip c, int "strength", bool "rep", int "rmode", int "smode", bool "hot")


clip  c =
Input clip.


int  strength = 10
specifies edge denoising strength.


bool  rep = true
Activates Repair for the aWarpSharped clip (true; requires Repair)


int  rmode = 17
Specifies the Repair mode:
  • Mode 1 is very mild and good for halos.
  • Mode 16 and 18 are good to preserve edge structure on strong settings but keep more halos and edge noise,
  • Mode 17 is similar to 16 but keeps much less haloing, other modes are not recommended (17; requires Repair).


int  smode = 0
Specifies what method will be used for finding small particles, ie stars:
  • 0 : disabled
  • 1 : use RemoveGrain
  • 2 : use Deen


bool  hot = false
Specifies whether removal of hot pixels should take place.


[edit] Examples

EdgeCleaner with default settings:

AviSource("Blah.avi")
EdgeCleaner(strength=10, rep=true, rmode=17, smode=0, hot=false)


[edit] Changelog

 03/04/2012  v1.04
     - adapted the code to work with SEt's updated aWarpSharp2
     - removed the redundant fix parameter
     - increased default strength to 10
06/08/2008 v1.03 - improved mask that leaves less warping and more original line structure, therefore higher strengths are now safe to use - improved StarMask() - removed super mode - removed srep, sshiqloc, some smodes and VD_SmartSmoothHiQ() due to StarMask() changes
01/06/2008 v1.02 - added srep parameter - improved particle masking
01/06/2008 v1.01 - added masking for particles with two parameters; smode and sshiqloc
12/05/2008 v1.00 - removed line darkening, mode 2 mask, RemoveGrain - assert changed to colorspace conversion to yv12 - fixed some logic problems - "fixed" the aWarpSharp black pixel bug - added Repair


[edit] External Links




Back to External Filters

Personal tools