View Single Post
Old 30th May 2006, 01:01   #14  |  Link
krieger2005
Registered User
 
krieger2005's Avatar
 
Join Date: Oct 2003
Location: Germany
Posts: 377
Thanks redfordxx. I use your function for an anime. I get the best results with it. I also this "SmoothDeblock2" give the best result (i use it for my encode ).
I used your function in combination with one of mine, which i made on the fly. It recover some Detail. Still i encode an anime. But maybe it is usefull... so here is it:
Code:
CLmedian(last,SmoothDeblock2(),2,1,1)

function ClMedian(clip c, clip n, int rad, int th1, int th2){
s=gaussianblur(c,rad,rad)
str1="x y - abs "+string(th1)+" > 255 0 ?"
m=YV12LutXY(c,s,str1,str1,str1,Y=3,U=3,V=3)

str2="x y - abs "+string(th2)+" > 255 0 ?"
r=YV12LutXY(c,n,str2,str2,str2,Y=3,V=3,U=3)
r=MaskedMerge(c,n,r,Y=3,V=3,U=3)

MaskedMerge(c,r,m,Y=3,U=3,V=3)
}
Try to play with the red number.

Thanks again for your energy.
krieger2005 is offline   Reply With Quote