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

ippiThreshold_Val_8u_C1IR

fzhe
Beginner
1,353 Views
Hi, there,

When I ran the following code,

////////////////////////////////////////
Ipp8u img1[2][2]={0,1,2,3};
IppiSize sz1={2,2};
int stride = 2;
IppStatus s1 = ippiThreshold_Val_8u_C1IR(&(img1[0][0]),stride,sz1,0, 1, ippCmpGreaterEq);//ippCmpEq);
///////////////////////////////////////////////
the return status (s1) is "ippStsNotSupportedModeErr" instead of ippStsNoErr.

Please advice on what is wrong with the code.

Thanks.

Fan
0 Kudos
5 Replies
Vladimir_Dudnik
Employee
1,353 Views

Fan,

if you'll look at description of this function in ippi manual you'll find that:

ippCmpOp

The operation to use for comparing pixel values and the threshold. Comparison for either less than or greater than can be used.

Regards,
Vladimir

0 Kudos
fzhe
Beginner
1,353 Views

Yes. I did try equal and greater than. Both of them produced that error status.

0 Kudos
Vladimir_Dudnik
Employee
1,353 Views

Really? I recommend you to submit issue report to Intel Premier Support

Please specify what version of IPP do you use and what platform, processor and OS.

Vladimir

0 Kudos
fzhe
Beginner
1,353 Views
Tech support duplicated the problem and escalated it already. Since you gave me better answers than I got from tech-support, I want to try the forum too.
Thanks anyway.
Fan
0 Kudos
Vladimir_Dudnik
Employee
1,353 Views

Thanks you, we will check if it is wrong documentation issue or it is bug in function's implementation.

Vladimir

0 Kudos
Reply