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

ippiResize float

atlastraeger
Beginner
268 Views
Hello forum.

I have used ippiResize_8u_C1R to resize an image with success, however, if I try to resize a floating-point image with ippiResize_32f_C1R, 2/3 of the image is simply black (i.e. the image array consists of 0.0). For simpilicity, I converted the same image to from 8u to 32f, and then applied ippiResize_32f_C1R with the same parameters as ippiResize_8u_C1R.

What do I do wrong?

Thanks in advance.
0 Kudos
3 Replies
Vladimir_Dudnik
Employee
268 Views

Hello,

make sure you set step parameter correctly. Remember, it is number of bytes between adjacent lines, so for 8u_C1 image it can be equal to image width whereas for 32f_C1 image it is width*sizeof(Ipp32f).

Regards,
Vladimir

0 Kudos
atlastraeger
Beginner
268 Views
Thank you very much, that was indeed the reason why it didn't work.
0 Kudos
Vladimir_Dudnik
Employee
268 Views

Great, hope you'll find IPP libraries useful for your tasks

Vladimir

0 Kudos
Reply