*.mp4 guy
18th February 2009, 20:06
I would like to threshold a difference clip created by mt_makediff, so that if it is within a threshold value of 127 (or whatever the center value of mt_makediff is) it is made equal to 127.
The combination of reverse polich notation and bolean vairables is making this difficult for me to figure out.
[edit] this is what i came up with:
Mt_lut( " X 127 "+string(thresh)+" + > 127 x ? 127 "+string(thresh)+" - < 127 x ? ", u=2, v=2)
but it doesn't work, as it processes the clip even when thresh=0
[edit2] Mt_lut( " X 127 - abs "+string(thresh)+" < 127 x ? ", u=2, v=2) apears to be correct, but it doesn't do quite what I expected, so I'm still open to advice.
The combination of reverse polich notation and bolean vairables is making this difficult for me to figure out.
[edit] this is what i came up with:
Mt_lut( " X 127 "+string(thresh)+" + > 127 x ? 127 "+string(thresh)+" - < 127 x ? ", u=2, v=2)
but it doesn't work, as it processes the clip even when thresh=0
[edit2] Mt_lut( " X 127 - abs "+string(thresh)+" < 127 x ? ", u=2, v=2) apears to be correct, but it doesn't do quite what I expected, so I'm still open to advice.