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

cannot get ippiUndistortRadial to work

userumr
Beginner
253 Views
I am trying to unwarp a radial distorted image. I have the parameters cx, cy, k1, k2. These parameters were calculated by someone else and I have no idea what fx and fy are. I thought that if I put fx and fy as 1 (one) these values should work.

this is the line in the code which I use

ippiUndistortRadial_8u_C1R (srcImg, srcStep, destImg, destStep, size, fx, fy, cx, cy, k1, k2, NULL);

when I try to display destImg. I get a black image. Is there something that I am doing wrong??

Thanks

0 Kudos
2 Replies
userumr
Beginner
253 Views
fixed. thankyou.

my srcStep and destStep were wrong.


0 Kudos
Intel_C_Intel
Employee
253 Views

Hi,

Of course you'll get some results setting fx and fy to 1 but generally they are measured in image pixels as cx and cy

Thanks,

Alexander

0 Kudos
Reply