NMM视频技术(旧)

 找回密码
 成为会员
搜索
查看: 5869|回复: 4

[AVS插件] 弱弱的求个hqdering 的傻瓜包

[复制链接]
发表于 2010-8-25 20:48 | 显示全部楼层
旧版本找不到的话可以用这个
  1. ######
  2. ##
  3. ## HQDering v0.1 by mf
  4. ##
  5. ## Applies derining by using a smart smoother near edges (where ringing occurs) only.
  6. ##
  7. ## Usage: Import("HQDering-v0.1.avs")
  8. ##        HQDering()
  9. ##
  10. ####

  11. function HQDering(clip input, int "strength", int "overall", clip "smoother") {

  12. strength = Default(strength, 255)        # strength, 0-255
  13. overall  = Default(overall, 0)                # overall smoothing, 0-255
  14. smoothed = defined(smoother) ? smoother : input.Deen("a3d",4,15,15,20)        # filter that smooths

  15. normalmask=input.mt_edge(thY1=3, thY2=255, mode="sobel", chroma="none")

  16. amplifiedmask=normalmask.Levels(0, 3.3, 90, 0, 255).Blur(1.0)

  17. thickmask=normalmask.mt_inflate().mt_inflate().mt_inflate().Levels(0, 3.3, 90, 0, 255)
  18.   \ .Blur(1.0).mt_inflate().mt_inflate().mt_inflate().Levels(0, 3.3, 255, 0, 255)
  19.   \ .mt_inflate().mt_inflate()

  20. ringingmask=mt_lutxy(amplifiedmask.mt_invert(), thickmask, expr="x y * 255 /").Levels(60, 3.0, 140, overall, strength)

  21. mt_merge(input, smoothed, ringingmask)

  22. }
复制代码
个人不喜欢用,因为会产生锯齿
 楼主| 发表于 2010-8-1 18:38 | 显示全部楼层 |阅读模式
其实是不知道怎么用的说

见到avs wiki 导向的是一个doom9的帖子还有
http://forum.doom9.org/showthread.php?p=1043583#post1043583
和一堆看不明的参数
######
##
## HQDering v0.1 by mf
##
## Applies derining by using a smart smoother near edges (where ringing occurs) only.
##
## Usage: Import("HQDering-v0.1.avs")
## HQDering()
##
####

function HQDering(clip input, int "strength", int "overall", string "smoother", string "params") {

strength = Default(strength, 255) # strength, 0-255
overall = Default(overall, 0) # overall smoothing, 0-255
smoother = Default(smoother, "Deen") # filter that smooths
#params = default defined below # filter parameters - use Chr(34) for quotes

defaultnull = Default(params, "")
defaultdeen = Default(params, Chr(34)+"a3d"+Chr(34)+", 4, 15, 15, 20")

params = (smoother=="Deen") ? defaultdeen : defaultnull

try {
smoothedwparams = Eval(smoother + "(input, " + params + ")")
}
catch(err_msg) {
smoothedwoparams = Eval(smoother + "(input)")
}

smoothed = (params=="") ? smoothedwoparams : smoothedwparams

input.EdgeMask(3, 255, 255, 255, "sobel", Y=3, V=1, U=1)
normalmask = last

normalmask.Levels(0, 3.3, 90, 0, 255).Blur(1.0)
amplifiedmask = last

normalmask.Inflate().Inflate().Inflate().Levels(0, 3.3, 90, 0, 255).Blur(1.0).Inflate().Inflate().Inflate().Levels(0, 3.3, 255, 0, 255).Inflate().Inflate()
thickmask = last

YV12Layer(amplifiedmask.Invert(), thickmask, "mul", 255, chroma=false, Y=3, V=1, U=1)

Levels(60, 3.0, 140, overall, strength)

ringingmask = last

MaskedMerge(input, smoothed, ringingmask)

}


不知道如何使用的说
发表于 2010-8-1 18:59 | 显示全部楼层
本帖最后由 Yuricon 于 2010-8-1 19:09 编辑

看参数MS用到了MaskTools
所以需要MaskTools的支持
http://manao4.free.fr/
(忘了说,此地址需要翻墙)

使用方法不是已经说了么
## Usage: Import("HQDering-v0.1.avs")
## HQDering()
 楼主| 发表于 2010-8-2 15:09 | 显示全部楼层
哪里有hqdering 的avs 啊??
发表于 2010-8-2 15:14 | 显示全部楼层
骑着驴找驴……您贴出来的就是hqdering的avs。用windows的记事本把它保存成一个.avs文件不就是avs了么。
您需要登录后才可以回帖 登录 | 成为会员

本版积分规则

小黑屋|手机版|NMM视频技术

GMT+8, 2024-3-29 09:06 , Processed in 0.064005 second(s), 14 queries .

Powered by Discuz! X3.4

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表