JEEB
18th July 2009, 03:10
Hello there.
I have been backing up my Sola DVDs, and so far have been using the very basic command of "dehalo_alpha(darkstr=0)" for its sometimes stronger, sometimes slighter haloing (picture 1 (http://img43.imageshack.us/img43/3696/solapicture1halos.png)) - which has worked, but also made some not-so nice remainder stuff on the areas where the halos used to be (picture 2 (http://img43.imageshack.us/img43/4700/solapicture2dehaloalpha.png)). Then I tried adding some awarpsharp, which seemed to make the halo remainders go away nicely, but with the expense of... well, the original picture (picture 3 (http://img43.imageshack.us/img43/1200/solapicture3awarpsharp.png)).
Then I remembered that there was this wonderful plugin, MaskTools2 - and before long I found the mt_edge command and some others... Ending up at:
MPEG2Source("sola10.d2v", cpu=0, info=3)
TFM(mode=5,d2v="sola10.d2v", slow=2,pp=5,clip2=TDeint(type=3,edeint=nnedi2(),emask=TMM()))
tdecimate()
crop(0,2,0,0)
Spline36Resize(720,480)
MCTemporalDenoise(settings="low")
currentclip = last
warpsharpclip = currentclip.dehalo_alpha(darkstr=0, brightstr=0.85)
warpsharpclip = warpsharpclip.awarpsharp(4,2,0.75,0)
mask = last.mt_edge("cartoon",4,32,4,32)
mask2 = mask.mt_expand().mt_expand().mt_expand()
linemask = mask2.mt_convolution()
mt_merge(currentclip, warpsharpclip, linemask)
gradfun2dbmod()
(Picture 04 (http://img43.imageshack.us/img43/4539/solapicture4mt2filterin.png))
Now what problems do I still have:
The mask isn't completely "perfect", albeit quite good it seems.
dehalo_alpha still modifies colors, leading to darker shades.
So, dear ladies and gentlemen - any ideas on how to make this dirty script of mine better?
13.58MB source clip: clicky (http://www.mediafire.com/?mxutdyh0zay)
I have been backing up my Sola DVDs, and so far have been using the very basic command of "dehalo_alpha(darkstr=0)" for its sometimes stronger, sometimes slighter haloing (picture 1 (http://img43.imageshack.us/img43/3696/solapicture1halos.png)) - which has worked, but also made some not-so nice remainder stuff on the areas where the halos used to be (picture 2 (http://img43.imageshack.us/img43/4700/solapicture2dehaloalpha.png)). Then I tried adding some awarpsharp, which seemed to make the halo remainders go away nicely, but with the expense of... well, the original picture (picture 3 (http://img43.imageshack.us/img43/1200/solapicture3awarpsharp.png)).
Then I remembered that there was this wonderful plugin, MaskTools2 - and before long I found the mt_edge command and some others... Ending up at:
MPEG2Source("sola10.d2v", cpu=0, info=3)
TFM(mode=5,d2v="sola10.d2v", slow=2,pp=5,clip2=TDeint(type=3,edeint=nnedi2(),emask=TMM()))
tdecimate()
crop(0,2,0,0)
Spline36Resize(720,480)
MCTemporalDenoise(settings="low")
currentclip = last
warpsharpclip = currentclip.dehalo_alpha(darkstr=0, brightstr=0.85)
warpsharpclip = warpsharpclip.awarpsharp(4,2,0.75,0)
mask = last.mt_edge("cartoon",4,32,4,32)
mask2 = mask.mt_expand().mt_expand().mt_expand()
linemask = mask2.mt_convolution()
mt_merge(currentclip, warpsharpclip, linemask)
gradfun2dbmod()
(Picture 04 (http://img43.imageshack.us/img43/4539/solapicture4mt2filterin.png))
Now what problems do I still have:
The mask isn't completely "perfect", albeit quite good it seems.
dehalo_alpha still modifies colors, leading to darker shades.
So, dear ladies and gentlemen - any ideas on how to make this dirty script of mine better?
13.58MB source clip: clicky (http://www.mediafire.com/?mxutdyh0zay)