EroKaos
22nd November 2007, 04:13
I recently got a script from a friend that helped clean up some artifacts that I have never encountered before and I never had the opportunity to use MaskTools, until now. But the script he gave me looks quite complicated to me and could not make much sense of it. I tried to read the masktool faq but it did not help much. So, would it be possible for someone to explain it to me?
Here is the code:
LoadPlugin("E:\Apps\Encoding Tools\YATTA 6.118\Plugins\fft3dfilter.dll")
LoadPlugin("E:\Apps\Encoding Tools\YATTA 6.118\Plugins\MaskTools.dll")
LoadPlugin("E:\Apps\Encoding Tools\YATTA 6.118\Plugins\MSharpen.dll")
LoadPlugin("E:\Apps\Encoding Tools\YATTA 6.118\Plugins\removegrain.dll")
ImageReader("C:\Documents and Settings\Desktop\clipboard01.jpg")
ConvertToYV12()
source = last
edge = source.MSharpen(1,10).EdgeMask(thY1 = 0, thY2 = 4, thC1 = 0, thC2 = 4,type="roberts") #use 8 8 otherwise
FFT3DFilter_FFT3DFilter(sigma=4.0, plane=0)
denoised = last
Overlay(source, maskedmerge(denoised,edge), x=0, y=0, opacity=0.6, mode="blend", greymask=true, ignore_conditional=false, pc_range=false)
Any help is appreciated. Thanks
Here is the code:
LoadPlugin("E:\Apps\Encoding Tools\YATTA 6.118\Plugins\fft3dfilter.dll")
LoadPlugin("E:\Apps\Encoding Tools\YATTA 6.118\Plugins\MaskTools.dll")
LoadPlugin("E:\Apps\Encoding Tools\YATTA 6.118\Plugins\MSharpen.dll")
LoadPlugin("E:\Apps\Encoding Tools\YATTA 6.118\Plugins\removegrain.dll")
ImageReader("C:\Documents and Settings\Desktop\clipboard01.jpg")
ConvertToYV12()
source = last
edge = source.MSharpen(1,10).EdgeMask(thY1 = 0, thY2 = 4, thC1 = 0, thC2 = 4,type="roberts") #use 8 8 otherwise
FFT3DFilter_FFT3DFilter(sigma=4.0, plane=0)
denoised = last
Overlay(source, maskedmerge(denoised,edge), x=0, y=0, opacity=0.6, mode="blend", greymask=true, ignore_conditional=false, pc_range=false)
Any help is appreciated. Thanks