Quantcast
Channel: Intel® Integrated Performance Primitives
Viewing all articles
Browse latest Browse all 1294

Unexpected Error for ippiFloodFill_Range4Con_8u_C1IR

$
0
0

Hello,

I'm using the function  ippiFloodFill_Range4Con_8u_C1IR like in the example code below and the function returns -5 for status. This value is not in the documentation as return value  and I don't understand why any argument should be bad?

Can anybody help me?

 

Thank you!

 

#define ippStsBadArgErr -5 /* Incorrect arg/param of the function. */

 

IppStatus status;

Ipp8u buffer [] = {

0, 0, 0, 0, 0,

0, 128, 128, 128, 0,

0, 128, 127, 128, 0,

0, 128, 128, 128, 0,

0, 0, 0, 0, 0

};

int nBufSize(0);

status = ippiFloodFillGetSize_Grad(IppiSize{ 5,5 }, &nBufSize);

Ipp8u* tmpBuffer;

tmpBuffer = ippsMalloc_8u(nBufSize);

IppiConnectedComp region;

status = ippiFloodFill_Range4Con_8u_C1IR(buffer, 5, IppiSize{ 5,5 }, { 2, 2 }, 170, 43, 43, &region, tmpBuffer);


Viewing all articles
Browse latest Browse all 1294

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>