View Single Post
Old 11th July 2017, 11:43   #3  |  Link
Myrsloik
Professional Code Monkey
 
Myrsloik's Avatar
 
Join Date: Jun 2003
Location: Kinnarps Chair
Posts: 2,555
Quote:
Originally Posted by WolframRhodium View Post
I guess the "TooT or Avisynth" works the same way as the following code according to E-Male's thread:

Code:
def toot(clipa, clipb, clipc):
    absXYMinus = 'x y - abs'
    absXZMinus = 'x z - abs'
    absYZMinus = 'y z - abs'
    xyAverage = 'x y + 2 /'
    xzAverage = 'x z + 2 /'
    yzAverage = 'y z + 2 /'
    expr = '{0} {1} < {0} {2} < {3} {5} ? {1} {2} < {4} {5} ? ?'.format(absXYMinus, absXZMinus, absYZMinus, xyAverage, xzAverage, yzAverage)

    return core.std.Expr([clipa, cilpb, clipc], [expr])
Above code is so ugly, though
That's creative. Maybe you could throw something together using makediff and merge that may or may not be faster. Probably not though.
__________________
VapourSynth - proving that scripting languages and video processing isn't dead yet
Myrsloik is offline   Reply With Quote