View Full Version : Problem of Edge Enhancement I think...
lolent
13th June 2007, 01:06
How can I remove these "artifacts" on my source ?
http://img340.imageshack.us/img340/3708/snapshot20070613004926me9.png
I've tried DeHalo & BlindDehalo but I'm too newbie to have a good result with them :helpful:
I fail to remove rainbow too :( and don't know that to use.
Here is the source in ddl : http://www.mediafire.com/?8xy1q4zjymo
Thanks in advance for any kind of help.
rfmmars
13th June 2007, 05:31
This works with AVS-P, 2 sliders
AVISource("C:\hdragc.avi")
LoadPlugin("c:\AVS\plugins\removegrain.dll")
LoadPlugin("c:\AVS\Plugins\masktools.dll")
LoadPlugin("c:\AVS\Plugins\repair.dll")
ConverttoYV12
function abcxyz(clip clp, int "rad", int "ss")
{
rad=([<"Radius (3)", -1.0, 20.0, -1.0>]) # radius for halo removal
ss=([<"Super Sampling (1)", -0.2, 3, 1.0>]) # radius for supersampling / ss=1.0 -> no supersampling
ox = clp.width()
oy = clp.height()
x = clp.bicubicresize(m4(ox/rad),m4(oy/rad)).bicubicresize(ox,oy,1,0)
y = yv12lutxy(clp,x,"x 8 + y < x 8 + x 24 - y > x 24 - y ? ? x y - abs * x 32 x y - abs - * + 32 /",U=2,V=2)
z1 = repair(clp,y,1)
maxbig = y.expand().bicubicresize(m4(ox*ss),m4(oy*ss))
minbig = y.inpand().bicubicresize(m4(ox*ss),m4(oy*ss))
z2 = clp.lanczosresize(m4(ox*ss),m4(oy*ss))
z2 = z2.logic(maxbig,"min",U=2,V=2).logic(minbig,"max",U=2,V=2).lanczosresize(ox,oy)
return( (ss==1.0) ? z1 : z2 )
}
abcxyz()
return last
function m4(float x) {return( x<16?16:int(round(x/4.0)*4)) }
Richard
photorecall.net
foxyshadis
13th June 2007, 05:47
Dehalo_alpha (http://forum.doom9.org/showthread.php?t=102794) is an updated version of the abcxyz script.
lolent
13th June 2007, 23:08
I will re-try with Dehalo_alpha avs script to clean my source but it's not easy for me "to play" with...
lolent
4th July 2007, 00:32
thank you all for your help (and especially Alain2 ;) ), I've fully successed removing halos and rainbows on my video thanks to this script :
MPEG2Source("demuxed.d2v")
BiFrost()
SmartDeRainbow(strength=200)
FFT3Dfilter(sigma=5,bt=3,plane=3,bw=32,bh=32,ow=16,oh=16)
source=last
backward_vec2 = source.MVAnalyse(isb = true, delta = 2, pel = 2, overlap=4, sharp=1, idx = 1)
backward_vec1 = source.MVAnalyse(isb = true, delta = 1, pel = 2, overlap=4, sharp=1, idx = 1)
forward_vec1 = source.MVAnalyse(isb = false, delta = 1, pel = 2, overlap=4, sharp=1, idx = 1)
forward_vec2 = source.MVAnalyse(isb = false, delta = 2, pel = 2, overlap=4, sharp=1, idx = 1)
source.MVDegrain2(backward_vec1,forward_vec1,backward_vec2,forward_vec2,thSAD=800,idx=1)
DeHalo_alpha(rx=2.0,ry=2.0,brightstr=1,darkstr=.5,lowsens=50,highsens=50,ss=4)
DeHalo_alpha(rx=2.0,ry=2.0,brightstr=1,darkstr=.5,lowsens=50,highsens=50,ss=4)
Spline36Resize(640,480,10,0,-10,-0)
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.