AntiAliasing: Difference between revisions

From Avisynth wiki
Jump to navigationJump to search
m 1 revision
quick update
 
Line 1: Line 1:
{{Filter|SpikeSpiegel, Didée, mf, scharfis_brain and Soulhunter|3.0|[[Media:antialiasing.avs|antialiasing.avs]]|Anti-aliasing|
{{FilterCat4|External_filters|Scripts|Restoration_filters|Anti-aliasing}}
{{Filter
|SpikeSpiegel, Didée, mf, scharfis_brain and Soulhunter
|3.0
|[[Media:antialiasing.avs|antialiasing.avs]]
|Anti-aliasing
|
* YV12
* YV12
|}}
|7=[http://forum.doom9.org/showthread.php?t=83396 Doom9 Thread]}}
{{Template:FuncDef| antialiasing(clip orig,int "th_luma",int "th_croma",string "type",int "aath") }}
== Description ==
Anti-aliasing script; This filter is meant for good quality clips with soft aliasing. Thanks to MaskTools' functions, a strong AA-filter (SangNom) is applied only where it's needed without producing artefacts in other areas.<br/>
'''Note:''' This script is very old and usually not recommended nowadays.


== Abstract ==
Anti-aliasing script.


=== Requires Filters ===
== 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]]
 
=== Required Plugins ===
*[[SangNom]]
*[[SangNom]]
*[[MaskTools]]
*[[MaskTools]]


== Description ==
Basic script using edge detection for aliasing removal.


{{Par|th_luma|int|20}}
== [[Script variables|Syntax and Parameters]] ==
{{Par|th_croma|int|20}}
:{{Template:FuncDef| antialiasing (clip orig, int "th_luma", int "th_croma", string "type", int "aath") }}
"th_luma" & "th_croma" are the edge detection thresholds : lower values=more edges filtered.
 


{{Par|type|string|sobel}}
::{{Par2|orig|clip| }}
"type" is the matrix used for edge detection: with "sobel" (default) only the hi-contrast edges, where artefacts are more noticeable, are filtered. If you want to test other matrices, read the MaskTools Guide for more info.
:::Input clip.
<br>
::{{Par2|th_luma|int|20}}
::{{Par2|th_croma|int|20}}
:::"th_luma" & "th_croma" are the edge detection thresholds : lower values=more edges filtered.
<br>
::{{Par2|type|string|"sobel"}}
:::"type" is the matrix used for edge detection: with "sobel" (default) only the hi-contrast edges, where artefacts are more noticeable, are filtered. <br/>If you want to test other matrices, read the MaskTools Guide for more info.
<br>
::{{Par2|aath|int|48}}
:::SangNom anti-aliasing strength (default should be fine).


{{Par|aath|int|48}}
Anti-aliasing strength (default should be fine)


== Examples ==
== Examples ==
<pre>
AntiAliasing with defaults settings:
avisource("blah.avi")
[[AviSource]]("blah.avi")
antialiasing()
antialiasing(th_luma=20, th_chroma=20, type="sobel", aath=48)
</pre>
 
<pre>
avisource("blah.avi")
antialiasing(12,15)
</pre>
 
== Links ==
[http://forum.doom9.org/showthread.php?t=83396 Doom9 thread]


Download current version [[Media:antialiasing.avs|antialiasing.avs]].


[[Category:External filters]]
==External Links ==
*[http://forum.doom9.org/showthread.php?t=83396 Doom9 Forum] - Discussion
<br>
<br>
-----------------------------------------------
'''Back to [[External_filters#Anti-aliasing|External Filters]] &larr;'''

Latest revision as of 23:21, 29 September 2014

Abstract
Author SpikeSpiegel, Didée, mf, scharfis_brain and Soulhunter
Version 3.0
Download antialiasing.avs
Category Anti-aliasing
Requirements
  • YV12
License
Discussion Doom9 Thread

Description

Anti-aliasing script; This filter is meant for good quality clips with soft aliasing. Thanks to MaskTools' functions, a strong AA-filter (SangNom) is applied only where it's needed without producing artefacts in other areas.
Note: This script is very old and usually not recommended nowadays.


Requirements

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

Required Plugins


antialiasing (clip orig, int "th_luma", int "th_croma", string "type", int "aath")


clip  orig =
Input clip.


int  th_luma = 20
int  th_croma = 20
"th_luma" & "th_croma" are the edge detection thresholds : lower values=more edges filtered.


string  type = "sobel"
"type" is the matrix used for edge detection: with "sobel" (default) only the hi-contrast edges, where artefacts are more noticeable, are filtered.
If you want to test other matrices, read the MaskTools Guide for more info.


int  aath = 48
SangNom anti-aliasing strength (default should be fine).


Examples

AntiAliasing with defaults settings:

AviSource("blah.avi")
antialiasing(th_luma=20, th_chroma=20, type="sobel", aath=48)





Back to External Filters