DAA: Difference between revisions
From Avisynth wiki
Jump to navigationJump to search
m category |
update script to nnedi3 |
||
| Line 1: | Line 1: | ||
{{FilterCat4|External_filters|Scripts|Restoration_filters|Anti-aliasing}} | {{FilterCat4|External_filters|Scripts|Restoration_filters|Anti-aliasing}} | ||
{{Filter|Didée | |||
{{Filter|Didée|| | | | ||
| | |||
|Anti-aliasing| | |||
* YV12 | * YV12 | ||
|}} | |}} | ||
== Abstract == | |||
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. | |||
=== Required | == 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 === | |||
*[[nnedi3]] | |||
*[[MaskTools2]] | *[[MaskTools2]] | ||
*[[RemoveGrain]] | *RemoveGrain and Repair - part of the [[RemoveGrain v1.0b]] package. | ||
== Script == | == Script == | ||
function daa(clip c) { | function daa(clip c) { | ||
nn = c. | nn = c.nnedi3(field=-2) | ||
dbl = | 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 == | ||
AviSource("Blah.avi") | AviSource("Blah.avi") | ||
daa() | daa() | ||
==External Links == | ==External Links == | ||
<br> | |||
<br> | |||
----------------------------------------------- | |||
'''Back to [[External_filters#Anti-aliasing|External Filters]] ←''' | |||
Revision as of 20:36, 29 September 2014
| Abstract | |
|---|---|
| Author | Didée |
| Version | |
| Download | |
| Category | Anti-aliasing |
| Requirements |
|
| License | |
| Discussion | |
Abstract
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.
Requirements
- AviSynth 2.5.8 or later
- Progressive input only
- Supported color formats: YV12
Required Plugins
- nnedi3
- MaskTools2
- RemoveGrain and Repair - part of the RemoveGrain v1.0b package.
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) }
Examples
AviSource("Blah.avi")
daa()
External Links
Back to External Filters ←