『漫游』酷论坛>『影音数码技术学习交流』>[请教]AU有没有除彩虹 ..
[请教]AU有没有除彩虹的滤镜
gaoshu@2006-07-03 14:49
AU有没有除彩虹的滤镜
或者应该如何处理
GOD_HIKARU MK2@2006-07-04 01:43
AVS有个杀彩虹的剧本.
但我不知道怎么用AVS剧本
可曾记得爱@2006-07-04 08:29
AU有,效果和那个AVS差太多了~
大虾@2006-07-04 11:56
引用
最初由 可曾记得爱 发布
AU有,效果和那个AVS差太多了~
AVS的好?
風之殤@2006-07-04 15:48
其實還不是可以互相借用對方濾境.........
realsweet@2006-07-04 15:56
引用
最初由 GOD_HIKARU MK2 发布
AVS有个杀彩虹的剧本.
但我不知道怎么用AVS剧本
function DeRainbow(clip org, int "thresh")
{
assert(org.isYV12(),"DeRainbow() requires YV12 input!")
thresh = default(thresh, 10)
org_u = utoy(org)
org_v = vtoy(org)
msharpen(org, threshold = thresh, mask=true)
reduceby2()
greyscale()
uv = blur(1.5).levels(0,2.0,255,0,255, coring=false).blur(1.5).blur(1.5).levels(50,2.0,255,0,255, coring=false)
filtered_u = org_u.mipsmooth(spatial=255, temporal=255, scenechange=3, show=false, method="strong", scalefactor=0.5)
filtered_v = org_v.mipsmooth(spatial=255, temporal=255, scenechange=3, show=false, method="strong", scalefactor=0.5)
u_final = MaskedMerge(org_u, filtered_u, uv)
v_final = MaskedMerge(org_v, filtered_v, uv)
return ytouv(u_final, v_final, org)
}
--------------------------------------------------------------------------------------------------------------------------------------------
function DeRainbowYUY2(clip org, int "thresh")
{
assert(org.isyuy2(),"DeRainbowYUY2() requires YUY2 input!")
thresh = default(thresh, 10)
org_yv12 = org.converttoyv12()
org_u = utoy(org).converttoyv12()
org_v = vtoy(org).converttoyv12()
msharpen(org_yv12, threshold = thresh, mask=true)
bilinearresize(last.width/2, last.height)
greyscale()
uv = blur(1.5).levels(0,2.0,255,0,255, coring=false).blur(1.5).blur(1.5).levels(50,2.0,255,0,255, coring=false)
filtered_u = org_u.mipsmooth(spatial=255, temporal=255, scenechange=3, show=false, method="superstrong", scalefactor=0.5)
filtered_v = org_v.mipsmooth(spatial=255, temporal=255, scenechange=3, show=false, method="superstrong", scalefactor=0.5)
u_final = MaskedMerge(org_u, filtered_u, uv).converttoyuy2()
v_final = MaskedMerge(org_v, filtered_v, uv).converttoyuy2()
return ytouv(u_final, v_final, org)
}
--------------------------------------------------------------------------------------------------------------------------------------------
Usage:
YV12: DeRainbow(int thresh)
YUY2: DeRainbowYUY2(int thresh)
Threshold is optional, and defaults to 10 (which is fairly strong).
Required plugins:
MipSmooth.
Masktools.
mSharpen.
gaoshu@2006-07-04 16:55
了解了
还是该用AVS算了
wolfsoft@2006-07-04 19:34
引用
最初由 GOD_HIKARU MK2 发布
AVS有个杀彩虹的剧本.
但我不知道怎么用AVS剧本
自己的avs开头
import("脚本文件")
用的时候就调用脚本里fuction后面那个函数名
一般负责任的脚本里都带有example
可曾记得爱@2006-07-04 20:48
开到6就差不多了,去CC的副作用是色彩漂移,开大了好恐怖的~
| TOP