DeHalo alpha

From Avisynth wiki
(Difference between revisions)
Jump to: navigation, search
m (Parameters)
m (Required Plugins: typo)
 
(14 intermediate revisions by one user not shown)
Line 1: Line 1:
{{FilterCat|External_filters|Restoration_filters|Dehalo}}
+
{{FilterCat4|External_filters|Scripts|Restoration_filters|Dehalo}}
{{Filter
+
{{Filter3
 
|Didée
 
|Didée
|
+
|MT2
|[[Media:Dehalo_alpha_mt.avsi|DeHalo_alpha_mt.avsi]]
+
|[[Media:Dehalo_alpha_MT2.avsi‎|DeHalo_alpha_MT2.avsi]]
 
|Dehalo
 
|Dehalo
 
|
 
|
|}}
+
|6=[http://forum.doom9.org/showthread.php?p=738264#post738264 Doom9 Thread]}}
 +
== Description ==
 +
Reduce halo artifacts that can occur when sharpening.<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 ===
Reduce halo artifacts that can occur when sharpening.
+
Latest versions of the following filters are recommended unless stated otherwise.<br>
<br>
+
*[[MaskTools2]]
<br>
+
*<strike>Repair - part of the [[RemoveGrain v1.0b]] package.</strike>
==== Required Filters ====
+
*[[RgTools]] - recommended drop-in replacement for Repair!
:*[[MaskTools2]] 2.0a48+
+
:*Repair.dll - part of the [[RemoveGrain]] package.
+
 
<br>
 
<br>
  
== Syntax and Parameters ==
+
== [[Script variables|Syntax and Parameters]] ==
{{Template:FuncDef|DeHalo_alpha(clip clp, float "rx", float "ry", float "darkstr", float "brightstr", float "lowsens", float "highsens", float "ss")}}
+
:{{Template:FuncDef|DeHalo_alpha (''clip'' clp, ''float'' "rx", ''float'' "ry", ''float'' "darkstr", ''float'' "brightstr", ''float'' "lowsens", ''float'' "highsens", ''float'' "ss")}}
 
<br>
 
<br>
 +
::{{Par2|clp|clip| }}
 +
:::Input clip.
 
<br>
 
<br>
:{{Par|rx, ry|float|2.0}}
+
::{{Par2|rx|float|2.0}}
::Range: 1.0 - 3.0
+
::{{Par2|ry|float|2.0}}
  
 
:::As usual, the radii for halo removal.
 
:::As usual, the radii for halo removal.
::::'''Note:''' This function is rather sensitive to the radius settings.  
+
:::<span style="color:red">'''Note:'''</span> This function is rather sensitive to the radius settings. Set it as low as possible! If radius is set too high, it will start missing small spots.<br>
:::::Set it as low as possible! If radius is set too high, it will start missing small spots.<br>
+
 
 +
:::Range: 1.0 to 3.0
 
<br>
 
<br>
:{{Par|darkstr, brightstr|float|1.0}}
+
::{{Par2|darkstr|float|1.0}}
::Range: 0.0 - 1.0 [<0.0 and >1.0 possible]
+
::{{Par2|brightstr|float|1.0}}
  
 
:::The strength factors for processing dark and bright halos. Default 1.0 both for symmetrical processing.  
 
:::The strength factors for processing dark and bright halos. Default 1.0 both for symmetrical processing.  
:::On Comic/Anime, darkstr=0.4~0.8 sometimes might be better ... sometimes.  
+
:::On Comics/Anime, {{Template:FuncDef|darkstr}}=0.4~0.8 sometimes might be better ... sometimes. In general, the function seems to preserve dark lines rather well.<br>
:::In General, the function seems to preserve dark lines rather well.<br>
+
 
 +
:::Range: 0.0 to 1.0 [<0.0 and >1.0 possible]
 
<br>
 
<br>
:{{Par|lowsens, highsens|int|50}}
+
::{{Par2|lowsens|int|50}}
:: Range: 0 - 100
+
::{{Par2|highsens|int|50}}
  
 
:::Sensitivity settings, not that easy to describe them exactly ...  
 
:::Sensitivity settings, not that easy to describe them exactly ...  
 
:::In a sense, they define a window between how weak an achieved effect has to be to get fully accepted, and how strong an achieved effect has to be to get fully discarded.
 
:::In a sense, they define a window between how weak an achieved effect has to be to get fully accepted, and how strong an achieved effect has to be to get fully discarded.
 
:::Defaults are 50 and 50 ... try and see for yourself.
 
:::Defaults are 50 and 50 ... try and see for yourself.
 +
 +
::: Range: 0 to 100
 
<br>
 
<br>
:{{Par|ss|float|1.5}}
+
::{{Par2|ss|float|1.5}}
:: Range: 1.0 - ???
+
:::Supersampling factor, to avoid creation of aliasing. {{Template:FuncDef|ss}}=1.0 -> no supersampling.
:::Supersampling factor, to avoid creation of aliasing.
+
 
 +
:::Range: 1.0 to ???
 
<br>
 
<br>
 
 
== Examples ==
 
== Examples ==
 
+
DeHalo_alpha with default values.
 
  [[AviSource]]("Blah.avi")
 
  [[AviSource]]("Blah.avi")
  DeHalo_alpha()
+
  DeHalo_alpha(rx=2.0, ry=2.0, darkstr=1.0, brightstr=1.0, lowsens=50, highsens=50, ss=1.5)
 
<br>
 
<br>
 
== Changelog ==
 
== Changelog ==
   Changes [http://forum.doom9.org/showpost.php?p=777956&postcount=70 2006-01-31]
+
   Changes [http://forum.doom9.org/showpost.php?p=777956&postcount=70 2006-01-31:]
 
       - Changed syntax to use MaskTools2<br>
 
       - Changed syntax to use MaskTools2<br>
 
   Changes [http://forum.doom9.org/showpost.php?p=738264&postcount=43 2005-11-15:]
 
   Changes [http://forum.doom9.org/showpost.php?p=738264&postcount=43 2005-11-15:]
Line 59: Line 70:
 
<br>
 
<br>
 
== External Links ==
 
== External Links ==
* [http://forum.doom9.org/showthread.php?p=738264#post738264 Doom9 Forum] - DeHalo alpha discussion.
+
* [http://forum.doom9.org/showthread.php?p=738264#post738264 Doom9 Forum] - DeHalo_alpha discussion.
 +
* [http://forum.doom9.org/showthread.php?p=1385109#post1385109 Doom9 Forum] - Modified DeHalo_alpha: here with increased search-radius for validation.
 +
* [http://forum.doom9.org/showthread.php?p=1457926#post1457926 Doom9 Forum] - DeHalo_alpha with contra-sharpening. [http://www.mediafire.com/download/oucuw7za2uzr72r/DeHalo_alpha_cs.avsi DeHalo_alpha_cs.avsi] by Desbreko.
 +
<br>
 +
<br>
 +
-----------------------------------------------
 +
'''Back to [[External_filters#Dehaloing|External Filters]] &larr;'''
 +
-----------------------------------------------

Latest revision as of 07:00, 22 February 2015

Abstract
Author Didée
Version MT2
Download DeHalo_alpha_MT2.avsi
Category Dehalo
License
Discussion Doom9 Thread

Contents

[edit] Description

Reduce halo artifacts that can occur when sharpening.

[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.


[edit] Syntax and Parameters

DeHalo_alpha (clip clp, float "rx", float "ry", float "darkstr", float "brightstr", float "lowsens", float "highsens", float "ss")


clip  clp =
Input clip.


float  rx = 2.0
float  ry = 2.0
As usual, the radii for halo removal.
Note: This function is rather sensitive to the radius settings. Set it as low as possible! If radius is set too high, it will start missing small spots.
Range: 1.0 to 3.0


float  darkstr = 1.0
float  brightstr = 1.0
The strength factors for processing dark and bright halos. Default 1.0 both for symmetrical processing.
On Comics/Anime, darkstr=0.4~0.8 sometimes might be better ... sometimes. In general, the function seems to preserve dark lines rather well.
Range: 0.0 to 1.0 [<0.0 and >1.0 possible]


int  lowsens = 50
int  highsens = 50
Sensitivity settings, not that easy to describe them exactly ...
In a sense, they define a window between how weak an achieved effect has to be to get fully accepted, and how strong an achieved effect has to be to get fully discarded.
Defaults are 50 and 50 ... try and see for yourself.
Range: 0 to 100


float  ss = 1.5
Supersampling factor, to avoid creation of aliasing. ss=1.0 -> no supersampling.
Range: 1.0 to ???


[edit] Examples

DeHalo_alpha with default values.

AviSource("Blah.avi")
DeHalo_alpha(rx=2.0, ry=2.0, darkstr=1.0, brightstr=1.0, lowsens=50, highsens=50, ss=1.5)


[edit] Changelog

 Changes 2006-01-31:
     - Changed syntax to use MaskTools2
Changes 2005-11-15: - Initial release


[edit] External Links




Back to External Filters


Personal tools