View Single Post
Old 4th January 2013, 03:03   #6  |  Link
06_taro
soy sauce buyer
 
Join Date: Mar 2010
Location: United Kingdom
Posts: 164
Quote:
Originally Posted by HolyWu View Post
Another thing is, I use the following script to compare the output of mt_edge and generic.Convolution.
Code:
clip = something
c1 = core.avs.mt_edge(clip, '1 2 1 0 0 0 -1 -2 -1 1', 0, 255)
c2 = core.generic.Convolution(clip, [1, 2, 1, 0, 0, 0, -1, -2, -1], planes=0)
clip = core.std.Interleave([c1, c2])
clip = core.std.ShufflePlanes(clip, planes=0, format=vs.GRAY)
I originally think the result of the two will be identical, but it's not. However I am no expert at matrix convolution so I may misunderstand its functionality and use it the wrong way.
I believe you intended to compare between avs.mt_convolution(clip, '1 2 1', '1 0 -1') and generic.Convolution(clip, [1, 2, 1, 0, 0, 0, -1, -2, -1], planes=0), which looks quite identical to me....
06_taro is offline   Reply With Quote