I've been trying something the past days with Masktools and TEdgeMask but It doesn't seem to be working ( prolly to the fact that I still dont understand how masking exactly works ). Basically, I am trying to detect amp; Mask the edges present in a clip, then seperate the chroma inside and outside those masked layers , smooth them seperatly then finally overlay them all together with the luma. So far this is my attempt ( and obviously it won't work...gt;_gt; )
AviSource(..)
YClip = Greyscale()
UClip = UToY().EdgeMask(3, 255, 255, 255, quot;cartoonquot;,Y=3, V=1, U=1).deen(quot;a2dquot;)
VClip = VToY().EdgeMask(3, 255, 255, 255, quot;cartoonquot;,Y=3, V=1, U=1).deen(quot;a3dquot;)
Result = MaskedMerge(UClip,VClip,YClip)
return Result
??
I really dont get it gt;_lt;; Any help is appreciated. |