pwnsweet
10th June 2019, 12:58
Hello, I am using a script that someone built for me but I can't get it to run.
auga=ColorYUV(autogain=true)
hm=auga.slinesm(noedges=true,autogain=false)
DeHaloHmod(4,exdehalo=DeHalo_alpha_2BD(rx=1.8,ry=3,search_radi=1),extmask=hm)
sBlackerPixel(DeHaloHmod(exdehalo=abcxyz(4,yrad=3), extlmask=hm,extmask=auga.swlinesm(autogain=false).mt_inflate()),mdifffade=100,linflate=false)
Returns the error:
Script Error: Invalid arguments to function 'mt_lutxy'.
sBlackerPixel is part of ddcomb (2018.09.04 mod) and the error occurs on line 125:
113. function sBlackerPixel(clip "o", clip "filtered", float "maxdiff", float "thr", bool "linflate", float "mdifffade", clip "o2", val "averagewithwhiterPixel", int "averagewithwhiterPixelrep", bool "deeponly")
114. {
115. maxdiff = default(maxdiff, 32)
116. thr = default(thr, 40)
117. mdifffade = default(mdifffade, maxdiff*3/2.0) #should be more than the maxdiff
118. linflate = default(linflate, true)
119. whidorep = defined(averagewithwhiterPixelrep)
120.
121. doaverage = defined(averagewithwhiterPixel)
122. whiterPixelclip = doaverage ? isclip(averagewithwhiterPixel) ? averagewithwhiterPixel : isstring(averagewithwhiterPixel) ? eval(averagewithwhiterPixel) : swhiterPixel(o, filtered, maxdiff, 255-thr, linflate, mdifffade, o2, deeponly) : nop()
123.
124. dpmask = mdifffade!=0 ? VersionNumber() < 2.6 ? o.mt_lutxy(filtered,"y "+string(thr)+" > x y > & x y - "+string(maxdiff)+" < 255 x y - "+string(mdifffade)+" < ? 255 255 "+string(mdifffade)+" / x y - * - 0 ? 0 ?")
125. \ : o.mt_lutxy(filtered,"y "+string(thr)+" scalef > x y > & x y - "+string(maxdiff)+" scalef < range_max x y - "+string(mdifffade)+" scalef < ? range_max range_max "+string(mdifffade)+" scalef / x y - * - 0 ? 0 ?") : nop()
Can anyone help me get this running please? If it's any help, at this stage in the filter chain we are working in 16bits. Using masktools2 2.2.18 and Avisynth+ 0.1 r2772, MT, i386. I've got a feeling it has something to do with Reverse Polish Notation based on some research but I don't understand any of it.
auga=ColorYUV(autogain=true)
hm=auga.slinesm(noedges=true,autogain=false)
DeHaloHmod(4,exdehalo=DeHalo_alpha_2BD(rx=1.8,ry=3,search_radi=1),extmask=hm)
sBlackerPixel(DeHaloHmod(exdehalo=abcxyz(4,yrad=3), extlmask=hm,extmask=auga.swlinesm(autogain=false).mt_inflate()),mdifffade=100,linflate=false)
Returns the error:
Script Error: Invalid arguments to function 'mt_lutxy'.
sBlackerPixel is part of ddcomb (2018.09.04 mod) and the error occurs on line 125:
113. function sBlackerPixel(clip "o", clip "filtered", float "maxdiff", float "thr", bool "linflate", float "mdifffade", clip "o2", val "averagewithwhiterPixel", int "averagewithwhiterPixelrep", bool "deeponly")
114. {
115. maxdiff = default(maxdiff, 32)
116. thr = default(thr, 40)
117. mdifffade = default(mdifffade, maxdiff*3/2.0) #should be more than the maxdiff
118. linflate = default(linflate, true)
119. whidorep = defined(averagewithwhiterPixelrep)
120.
121. doaverage = defined(averagewithwhiterPixel)
122. whiterPixelclip = doaverage ? isclip(averagewithwhiterPixel) ? averagewithwhiterPixel : isstring(averagewithwhiterPixel) ? eval(averagewithwhiterPixel) : swhiterPixel(o, filtered, maxdiff, 255-thr, linflate, mdifffade, o2, deeponly) : nop()
123.
124. dpmask = mdifffade!=0 ? VersionNumber() < 2.6 ? o.mt_lutxy(filtered,"y "+string(thr)+" > x y > & x y - "+string(maxdiff)+" < 255 x y - "+string(mdifffade)+" < ? 255 255 "+string(mdifffade)+" / x y - * - 0 ? 0 ?")
125. \ : o.mt_lutxy(filtered,"y "+string(thr)+" scalef > x y > & x y - "+string(maxdiff)+" scalef < range_max x y - "+string(mdifffade)+" scalef < ? range_max range_max "+string(mdifffade)+" scalef / x y - * - 0 ? 0 ?") : nop()
Can anyone help me get this running please? If it's any help, at this stage in the filter chain we are working in 16bits. Using masktools2 2.2.18 and Avisynth+ 0.1 r2772, MT, i386. I've got a feeling it has something to do with Reverse Polish Notation based on some research but I don't understand any of it.