How can I transform the image to another coordinate system?

12 次查看(过去 30 天)
Now I want to transform an image to another coordinate. For original image, the pixel is defined as (u, v), and transformed image's pixel (u',v') can be calculated using the following equation. u'=f(L1*u+L3*f)/(-L3*u+L1*f); v'=f*v/(-L3*u+L1*f); L1,L3,f are the parameters which values is known.
After the transform, the image (left) should become like right image. I have no idea how to do this? Should I calculate the pixel values u' and v' and use the interp2? I tried but didn't work out. Please give me some advices. Thank you.

采纳的回答

Image Analyst
Image Analyst 2018-10-6
  5 个评论
Image Analyst
Image Analyst 2018-10-8
Yes, I'm using Windows 10. Your code above doesn't do anything with images. It just defines some anonymous functions.
MENGZHI DI
MENGZHI DI 2018-10-9
Sorry I forgot the rest part, the rest part is the same with the code from your link. Thank you for answering my question. I am using IOS, maybe it is the reason why error occurs. I will find a windows system computer to try it.

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Geometric Transformation and Image Registration 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by