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

ippiMinMax_8u_C3R for white images weird min value (x64)

Rosenstiel__Marcus
492 Views
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
0 Kudos
2 Replies
Chao_Y_Intel
Moderator
492 Views

Hi Marcus,

Thanks for your report. I see the problem as well. We will some check, and provide feedback.

Thanks,
Chao

0 Kudos
Ivan_Z_Intel
Employee
492 Views
The bug is fixed. The correction will be accessible next version.
Thank you for help!
0 Kudos
Reply