How to calculate the inverse of two dimensional transformation
2 ビュー (過去 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!