Intel® Integrated Performance Primitives
Deliberate problems developing high-performance vision, signal, security, and storage applications.

why ippiMatchTemplateGetBufSize return 0 ?

l_luo
Beginner
398 Views

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);

Thanks!!

0 Kudos
1 Reply
Vladimir_Dudnik
Employee
398 Views
Hi,
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).
Regards,
Vladimir
0 Kudos
Reply