- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi, there,
When I ran the following code,
////////////////////////////////////////
Ipp8u img1[2][2]={0,1,2,3};
IppiSize sz1={2,2};
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
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
Link Copied
5 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Yes. I did try equal and greater than. Both of them produced that error status.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks you, we will check if it is wrong documentation issue or it is bug in function's implementation.
Vladimir
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page