- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
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.
Link Copied
3 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you very much, that was indeed the reason why it didn't work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Great, hope you'll find IPP libraries useful for your tasks
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