How to calculate the inverse of two dimensional transformation
조회 수: 1 (최근 30일)
이전 댓글 표시
Hi Recipient,
I am working on two dimensional image registration. I have a transformation \phi which has two components stored into two separate matrices. The standard way to represent the action of \phi on image 'I' is \phi.I=I(\phi^{-1}(x)). I want to know how to calculate \phi^{-1}. Suppose x1 and x2 are two components of \phi. If I use A=interp2(x1,x2,I,y1,y2) then its mean that I am calculating I(\phi(x)) but I want to calculate I(\phi^{-1}(x)). Could anyone help me in this regard.
댓글 수: 0
채택된 답변
Matt J
2013년 9월 4일
편집: Matt J
2013년 9월 4일
Suppose x1 and x2 are two components of \phi. If I use A=interp2(x1,x2,I,y1,y2) then its mean that I am calculating I(\phi(x))
No, you would be calculating I(phi(x)) if the y_i are given by y=phi(x).
If you want I(phi^-1(x)) you would generate the y data instead according to y=phi^-1(x).
If you have the Image Processing Toolbox, you might be able do this more compactly using tforminv() and imtransform().
댓글 수: 0
추가 답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!