DeHalo alpha

From Avisynth wiki
(Difference between revisions)
Jump to: navigation, search
m (1 revision)
Line 4: Line 4:
 
|
 
|
 
|[[Media:DeHalo_alpha.avsi|DeHalo_alpha.avsi]]
 
|[[Media:DeHalo_alpha.avsi|DeHalo_alpha.avsi]]
|Dehaloers
+
|Dehalo
 
|
 
|
 
|}}
 
|}}
  
{{Template:FuncDef|DeHalo_alpha(clip clp, float "rx", float "ry", float "darkstr", float "brightstr", float "lowsens", float "highsens", float "ss")}}
+
== Introduction ==
 
+
== Abstract ==
+
 
+
 
Reduce halo artifacts that can occur when sharpening.
 
Reduce halo artifacts that can occur when sharpening.
 
+
<br>
=== Requires Filters ===
+
<br>
*[[MaskTools]]
+
==== Required Filters ====
*[[RemoveGrain]]  Repair.dll - part of the Removegrain package
+
:*[[MaskTools2]]
 
+
:*Repair.dll - part of the [[RemoveGrain]] package.
 +
<br>
 
== Parameters ==
 
== Parameters ==
 +
{{Template:FuncDef|DeHalo_alpha(clip clp, float "rx", float "ry", float "darkstr", float "brightstr", float "lowsens", float "highsens", float "ss")}}
 +
<br>
 +
<br>
 +
:{{Par|rx, ry|float|2.0}}
 +
::Range: 1.0 - 3.0
  
* ''rx'', ''ry'' [float, 1.0 ... '''2.0''' ... ~3.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.  
'''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.
+
:::::Set it as low as possible! If radius is set too high, it will start missing small spots.<br>
 
+
<br>
* ''darkstr'', ''brightstr'' [float, 0.0 ... '''1.0'''] [<0.0 and >1.0 possible]
+
:{{Par|darkstr, brightstr|float|1.0}}
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. In General, the function seems to preserve dark lines rather well.
+
::Range: 0.0 - 1.0 [<0.0 and >1.0 possible]
  
* ''lowsens'', ''highsens'' [int, 0 ... '''50''' ... 100]
+
:::The strength factors for processing dark and bright halos. Default 1.0 both for symmetrical processing.
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.
+
:::On Comic/Anime, darkstr=0.4~0.8 sometimes might be better ... sometimes.  
Defaults are 50 and 50 ... try and see for yourself.
+
:::In General, the function seems to preserve dark lines rather well.<br>
 +
<br>
 +
:{{Par|lowsens, highsens|int|50}}
 +
:: Range: 0 - 100
  
* ''ss'' [float, 1.0 ... '''1.5''' ...]
+
:::Sensitivity settings, not that easy to describe them exactly ...  
Supersampling factor, to avoid creation of aliasing.
+
:::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.
 +
<br>
 +
:{{Par|ss|float|1.5}}
 +
:: Range: 1.0 - ???
 +
:::Supersampling factor, to avoid creation of aliasing.
  
 
== Examples ==
 
== Examples ==

Revision as of 19:12, 16 October 2013

Abstract
Author Didée
Version
Download DeHalo_alpha.avsi
Category Dehalo
Requirements
License
Discussion

Contents

Introduction

Reduce halo artifacts that can occur when sharpening.

Required Filters


Parameters

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

rx, ry float = 2.0
Range: 1.0 - 3.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.


darkstr, brightstr float = 1.0
Range: 0.0 - 1.0 [<0.0 and >1.0 possible]
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.
In General, the function seems to preserve dark lines rather well.


lowsens, highsens int = 50
Range: 0 - 100
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.


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

Examples

AviSource("Blah.avi")
DeHalo_alpha()

Links

http://forum.doom9.org/showthread.php?p=738264#post738264

dehalo_alpha_mt (masktools2 version of dehalo_alpha)

Personal tools