- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Is there a problem within the ippiMinMax_8u_C3R function? Consider the following example:
IppiSize roi;
roi.width = 100;
roi.height = 100;
int step = 0;
Ipp8u c[3] = {255, 255, 255};
Ipp8u min[3] = {128, 128, 128};
Ipp8u max[3] = {128, 128, 128};
Ipp8u* pIm = ippiMalloc_8u_C3( roi.width, roi.height, &step);
ippiSet_8u_C3R(c, pIm, step, roi);
IppStatus status = ippiMinMax_8u_C3R (pIm, step, roi, min, max);
If the image is white (255, 255, 255) and wider than 3 px ippiMinMax will return min = (0, 0, 0) max = (255, 255, 255).
If we try the same using Ipp8u c[3] = {254, 254, 254}; we get min = (254, 254, 254) max = (254, 254, 254).
I am not sure what went wrong here? Any error on my side? The error occurs using Ipp 6.1/7.0 and apparently only using x64. ippiMin and ippiMax are working as expected.
Best regards,
Marcus
Is there a problem within the ippiMinMax_8u_C3R function? Consider the following example:
IppiSize roi;
roi.width = 100;
roi.height = 100;
int step = 0;
Ipp8u c[3] = {255, 255, 255};
Ipp8u min[3] = {128, 128, 128};
Ipp8u max[3] = {128, 128, 128};
Ipp8u* pIm = ippiMalloc_8u_C3( roi.width, roi.height, &step);
ippiSet_8u_C3R(c, pIm, step, roi);
IppStatus status = ippiMinMax_8u_C3R (pIm, step, roi, min, max);
If the image is white (255, 255, 255) and wider than 3 px ippiMinMax will return min = (0, 0, 0) max = (255, 255, 255).
If we try the same using Ipp8u c[3] = {254, 254, 254}; we get min = (254, 254, 254) max = (254, 254, 254).
I am not sure what went wrong here? Any error on my side? The error occurs using Ipp 6.1/7.0 and apparently only using x64. ippiMin and ippiMax are working as expected.
Best regards,
Marcus
Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Marcus,
Thanks for your report. I see the problem as well. We will some check, and provide feedback.
Thanks,
Chao
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The bug is fixed. The correction will be accessible next version.
Thank you for help!
Thank you for help!
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