why ippiMatchTemplateGetBufSize return 0 ?

why ippiMatchTemplateGetBufSize return 0 ?

Could anyone point out whatgoes wrong with the following code?

the returned status indicates no error, butbuffsize is already 0. I wonder if there is restriction on the roi sizes.

int buffsize;

IppStatus status = cv.ippiMatchTemplateGetBufSize_SqDiff(new IppiSize(128, 128), new IppiSize(32, 32), IppDataType.ipp8u, &buffsize);


2 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.


it is expected behaviuor. The previous implementation of MatchTemplate function required some buffer, but in current version it is not necessary, so function returns 0 - means you need buffer with size 0 (in other words, you do not need buffer).


Leave a Comment

Please sign in to add a comment. Not a member? Join today