搜索 社区服务 统计排行 帮助
  • 3155阅读
  • 22回复

你们喜欢柔和一点的画面还是锐利一点的??

楼层直达
级别: 新手上路
注册时间:
2008-02-21
在线时间:
0小时
发帖:
113
只看该作者 15楼 发表于: 2008-04-04
哦。。。是这样啊
级别: 新手上路
注册时间:
2008-02-21
在线时间:
0小时
发帖:
113
只看该作者 16楼 发表于: 2008-04-04
LSF是指libfftw3f-3.dll吗
级别: 风云使者
注册时间:
2002-09-11
在线时间:
0小时
发帖:
4791
只看该作者 17楼 发表于: 2008-04-04
指L(OU)S(HANG)F(***)


-,-

人間五十年 下天のうちをくらぶれば 夢幻の如くなり 一度生を得て 滅せぬ者のあるべきか
服务器 ftp://txxz.share.comic.cn 用户名:txxz 密码:share 1线50K可LIST以上服务器提供TX作品下载 有需要而上面没的请PM我 感谢漫网提供服务器
本社聊天催片OX群:10042749 欢迎插入 重口味满载!
级别: 工作组
注册时间:
2005-10-19
在线时间:
31小时
发帖:
3613
只看该作者 18楼 发表于: 2008-04-04
Mr.B我服你了,TX有你和onion这对活宝,我越发想加入了=v=

凡是未完全安装Office字体的,以下英语短语请无视~~

Knowledge is infinite.


级别: 新手上路
注册时间:
2008-02-21
在线时间:
0小时
发帖:
113
只看该作者 19楼 发表于: 2008-04-05
[/han] 还是找不到。。。
级别: 工作组
注册时间:
2005-07-15
在线时间:
7小时
发帖:
705
只看该作者 20楼 发表于: 2008-04-05
  1. # LimitedSharpen() ( a modded version, 29 Oct 2005 )
  2. #
  3. # A multi-purpose sharpener by Did閑
  4. #
  5. #
  6. # Changes in this mod:
  7. #
  8. # - RemoveGrain >= v0.9 IS REQUIRED!!
  9. # ==================================
  10. #
  11. # - Smode=4 / sometimes does the magic ;-)
  12. # - a separate "undershoot" parameter, to allow for some line darkening in comic or Anime
  13. # - Lmode=3 / on edges, limited sharpening with zero OS & US. On not-edges, limited sharpening with specified OS + LS
  14. # - "soft" acts different now: no more boolean true/false, but instead integer 0 - 100 (or -1 -> automatic)
  15. #instead of blurring before finding minima/maxima, it now softens the "effect-of-sharpening"
  16. # - edgemode=-1 now shows the edgemask. (scaling still not implemented :p )
  17. #
  18. ## - MODIFIED version using MaskTools 2.0
  19. function LimitedSharpenFaster( clip clp,
  20. \ float "ss_x", float "ss_y",
  21. \ int "dest_x", int "dest_y",
  22. \ int "Smode" , int "strength", int "radius",
  23. \ int "Lmode", bool "wide", int "overshoot", int "undershoot",
  24. \ int "soft", int "edgemode", bool "special",
  25. \ int "exborder" )
  26. {
  27. ox = clp.width
  28. oy = clp.height
  29. Smode = default( Smode, 3 )
  30. ss_x = (Smode==4)
  31. \? default( ss_x, 1.25)
  32. \: default( ss_x, 1.5 )
  33. ss_y = (Smode==4)
  34. \? default( ss_y, 1.25)
  35. \: default( ss_y, 1.5 )
  36. dest_x= default( dest_x, ox )
  37. dest_y= default( dest_y, oy )
  38. strength = (Smode==1)
  39. \? default( strength, 160 )
  40. \: default( strength, 100 )
  41. strength = (Smode==2&&strength>100) ? 100 : strength
  42. radius= default( radius, 2 )
  43. Lmode = default( Lmode, 1 )
  44. wide = default( wide,false )
  45. overshoot = default( overshoot, 1)
  46. undershoot= default( undershoot, overshoot)
  47. softdec = default( soft,0 )
  48. soft= softdec!=-1 ? softdec : sqrt( (((ss_x+ss_y)/2.0-1.0)*100.0) ) * 10
  49. soft= soft>100 ? 100 : soft
  50. edgemode = default( edgemode,0 )
  51. special = default( special, false )
  52. exborder = default( exborder, 0)
  53. #radius = round( radius*(ss_x+ss_y)/2) # If it's you, Mug Funky - feel free to activate it again
  54. xxs=round(ox*ss_x/8)*8
  55. yys=round(oy*ss_y/8)*8
  56. smx=exborder==0?dest_x:round(dest_x/Exborder/4)*4
  57. smy=exborder==0?dest_y:round(dest_y/Exborder/4)*4
  58. clp.isYV12() ? clp : clp.converttoyv12()
  59. ss_x != 1.0 || ss_y != 1.0 ? last.lanczosresize(xxs,yys) : last
  60. tmp = last
  61. edge = mt_logic( tmp.mt_edge(thY1=0,thY2=255,"8 16 8 0 0 0 -8 -16 -8 4")
  62. \ ,tmp.mt_edge(thY1=0,thY2=255,"8 0 -8 16 0 -16 8 0 -8 4")
  63. \ ,"max") .mt_lut("x 128 / 0.86 ^ 255 *") #.levels(0,0.86,128,0,255,false)
  64. tmpsoft = tmp.removegrain(11,-1)
  65. dark_limit1 = tmp.mt_inpand()
  66. bright_limit1 = tmp.mt_expand()
  67. dark_limit= (wide==false) ? dark_limit1 : dark_limit1 .removegrain(20,-1).mt_inpand()
  68. bright_limit = (wide==false) ? bright_limit1 : bright_limit1.removegrain(20,-1).mt_expand()
  69. minmaxavg = special==false
  70. \? mt_average(dark_limit1, bright_limit1)
  71. \: mt_merge(dark_limit,bright_limit,tmp.removegrain(11,-1),Y=3,U=-128,V=-128)
  72. Str=string(float(strength)/100.0)
  73. normsharp = Smode==1 ? unsharpmask(strength,radius,0)
  74. \: Smode==2 ? sharpen(float(strength)/100.0)
  75. \: Smode==3 ? mt_lutxy(tmp,minmaxavg,yexpr="x x y - "+Str+" * +")
  76. \:mt_lutxy(tmp,tmpsoft,"x y == x x x y - abs 16 / 1 2 / ^ 16 * "+Str+
  77. \ " * x y - 2 ^ x y - 2 ^ "+Str+" 100 * 25 / + / * x y - x y - abs / * + ?")
  78. OS = string(overshoot)
  79. US = string(undershoot)
  80. mt_lutxy( bright_limit, normsharp, yexpr="y x "+OS+" + < y x y x - "+OS+" - 1 2 / ^ + "+OS+" + ?")
  81. mt_lutxy( dark_limit, last, yexpr="y x "+US+" - > y x x y - "+US+" - 1 2 / ^ - "+US+" - ?")
  82. Lmode==1 ? mt_clamp(normsharp, bright_limit, dark_limit, overshoot, undershoot) : last
  83. normal = last
  84. zero = mt_clamp(normsharp, bright_limit, dark_limit, 0,0)
  85. Lmode==3 ? mt_merge(normal,zero,edge.mt_inflate()) : normal
  86. edgemode==0 ? last
  87. \ : edgemode==1 ? mt_merge(tmp,last,edge.mt_inflate().mt_inflate().removegrain(11,-1),Y=3,U=1,V=1)
  88. \ : mt_merge(last,tmp,edge.mt_inflate().mt_inflate().removegrain(11,-1),Y=3,U=1,V=1)
  89. AMNT = string(soft)
  90. AMNT2 = string(100-soft)
  91. sharpdiff=mt_makediff(tmp,last)
  92. sharpdiff2=mt_lutxy(sharpdiff,sharpdiff.removegrain(19,-1),
  93. \ "x 128 - abs y 128 - abs > y "+AMNT+" * x "+AMNT2+" * + 100 / x ?")
  94. soft==0 ? last : mt_makediff(tmp,sharpdiff2)
  95. (ss_x != 1.0 || ss_y != 1.0)
  96. \ || (dest_x != ox || dest_y != oy) ? lanczosresize(dest_x,dest_y) : last
  97. ex=blankclip(last,width=smx,height=smy,color=$FFFFFF).addborders(2,2,2,2).coloryuv(levels="TV->PC")
  98. \.blur(1.3).mt_inpand().blur(1.3).bicubicresize(dest_x,dest_y,1.0,.0)
  99. tmp = clp.lanczosresize(dest_x,dest_y)
  100. clp.isYV12() ? ( exborder==0 ? tmp.mergeluma(last)
  101. \ : mt_merge(tmp,last,ex,Y=3,U=1,V=1) )
  102. \ : ( exborder==0 ? tmp.mergeluma(last.converttoyuy2())
  103. \ : tmp.mergeluma( mt_merge(tmp.converttoyv12(),last,ex,Y=3,U=1,V=1)
  104. \ .converttoyuy2()) )
  105. (edgemode!= -1) ? last : edge.lanczosresize(dest_x,dest_y).greyscale
  106. return last
  107. }


:o 我真是好人:o

其实LimitedSharpen不就是么 LSF不过是快那么一点而已:o



蒼き清浄なる世界の為に

引用
绿叶之砚 21:55:35
切,那些个腐女怎么能和我比

:o
级别: 工作组
注册时间:
2005-10-19
在线时间:
31小时
发帖:
3613
只看该作者 21楼 发表于: 2008-04-05
LimitedSharpen<<<<<<<<<<上边onion大也说了,就是这个,fast貌似只是优化了一下代码?没细看不清楚

凡是未完全安装Office字体的,以下英语短语请无视~~

Knowledge is infinite.


级别: 新手上路
注册时间:
2008-02-21
在线时间:
0小时
发帖:
113
只看该作者 22楼 发表于: 2008-04-05
:cool: 哈...了解了..谢谢各位啊
快速回复

限150 字节
上一个 下一个