DAA

From Avisynth wiki
(Difference between revisions)
Jump to: navigation, search
m (1 revision)
m (Required Plugins)
 
(7 intermediate revisions by one user not shown)
Line 1: Line 1:
__TOC__
+
{{FilterCat4|External_filters|Scripts|Restoration_filters|Anti-aliasing}}
{{Filter|Didée||[[Media:DAA.avsi]]|Anti-aliasing|
+
{{Filter3
* YV12
+
|Didée
 +
|
 +
|
 +
|Anti-aliasing
 +
|
 
|}}
 
|}}
{{FuncDef|DAA()}}
+
== Description ==
 +
Anti-aliasing with contra-sharpening by Didée. daa() works by averaging two independent interpolations, where each interpolation set works between odd-distanced pixels. This on its own provides sufficient amount of blurring. Enough blurring that the script uses a contra-sharpening step to counteract the blurring.[http://forum.doom9.org/showpost.php?p=1466159&postcount=352&highlight=daa]
  
== Abstract ==
 
  
Anti-aliasing with contra-sharpening
+
== 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]]
  
=== Requires Filters ===
+
=== Required Plugins ===
*[[NNEDI2]]
+
Latest versions of the following filters are recommended unless stated otherwise.<br>
 +
*[[nnedi3]]
 
*[[MaskTools2]]
 
*[[MaskTools2]]
*[[Removegrain]]
+
*<strike>RemoveGrain and Repair - part of the [[RemoveGrain v1.0b]] package.</strike>
 +
*[[RgTools]] - recommended drop-in replacement for RemoveGrain & Repair!
 +
<br>
  
 
== Script ==
 
== Script ==
 
  function daa(clip c) {
 
  function daa(clip c) {
  nn = c.nnedi2(field=-2)
+
  nn = c.nnedi3(field=-2)
  dbl  = mt_average(selecteven(nn),selectodd(nn),U=3,V=3)
+
  dbl  = merge(selecteven(nn),selectodd(nn))
 
  dblD = mt_makediff(c,dbl,U=3,V=3)
 
  dblD = mt_makediff(c,dbl,U=3,V=3)
 
  shrpD = mt_makediff(dbl,dbl.removegrain((width(c)>1100) ? 20 : 11),U=3,V=3)
 
  shrpD = mt_makediff(dbl,dbl.removegrain((width(c)>1100) ? 20 : 11),U=3,V=3)
 
  DD = shrpD.repair(dblD,13)
 
  DD = shrpD.repair(dblD,13)
 
  return dbl.mt_adddiff(DD,U=3,V=3) }
 
  return dbl.mt_adddiff(DD,U=3,V=3) }
 +
  
 
== Examples ==
 
== Examples ==
Line 27: Line 38:
 
  daa()
 
  daa()
  
== Links ==
 
Download [[Media:DAA.avsi]]
 
  
[[Category:External filters]]
+
==External Links ==
 +
<br>
 +
<br>
 +
-----------------------------------------------
 +
'''Back to [[External_filters#Anti-aliasing|External Filters]] &larr;'''

Latest revision as of 06:49, 22 February 2015

Abstract
Author Didée
Version
Download
Category Anti-aliasing
License
Discussion

Contents

[edit] Description

Anti-aliasing with contra-sharpening by Didée. daa() works by averaging two independent interpolations, where each interpolation set works between odd-distanced pixels. This on its own provides sufficient amount of blurring. Enough blurring that the script uses a contra-sharpening step to counteract the blurring.[1]


[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] Script

function daa(clip c) {
nn	= c.nnedi3(field=-2)
dbl   	= merge(selecteven(nn),selectodd(nn))
dblD 	= mt_makediff(c,dbl,U=3,V=3)
shrpD 	= mt_makediff(dbl,dbl.removegrain((width(c)>1100) ? 20 : 11),U=3,V=3)
DD 	= shrpD.repair(dblD,13)
return dbl.mt_adddiff(DD,U=3,V=3) }


[edit] Examples

AviSource("Blah.avi")
daa()


[edit] External Links




Back to External Filters

Personal tools