Hello Greg,
you'r right, I used the convolve method passing to it the optional parameter mask image....it was the cause of slowing.
Without a mask image, timings in .NET are quite the same of C, but I noted that in .NET the execution time is more variable: more frequently you call the convolute method and more constant is the execution time (ex if I call the convolute method once a second timings vary between 35ms and 90ms, if I put the convolute in a loop, timings are 35ms fixed)....why that?
Please, another question for you: if I want to use two threads to convolute images from two indipendent cameras, can I execute this method in parallel?.....is convolute method reentrant?
Thanks a lot for your care!