Community
cancel
Showing results for 
Search instead for 
Did you mean: 
47 Views

ippiMinMax_8u_C3R for white images weird min value (x64)

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
Employee
47 Views

Hi Marcus,

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

Thanks,
Chao

Ivan_Z_Intel
Employee
47 Views

The bug is fixed. The correction will be accessible next version.
Thank you for help!