- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
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
Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
fixed. thankyou.
my srcStep and destStep were wrong.
my srcStep and destStep were wrong.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
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