Find geometric transformation between a pair of images : does imwarp take into account the translation?
2 次查看(过去 30 天)
显示 更早的评论
Hi,
I am a beginner in Matlab and try to find the rotation + translation that exists between my two images (because my sample moves slighlty under the miscrocope).
I tried to use the code of the example described here : https://au.mathworks.com/help/vision/examples/find-image-rotation-and-scale-using-automated-feature-matching.html
My question: Is the translation also taking into account for the recovered picture? Because as
scaleRecovered = sqrt(ssss + scsc) ; thetaRecovered = atan2(ss,sc)*180/pi
and
Tinv = [sc -ss 0;
ss sc 0;
tx ty 1]
where tx and ty are x and y translations, respectively, I may think that tx and ty are not taken into account for the recovered image.
In this line, I could think that everything (rotation + translation) is taking into account via tform.
recovered = imwarp(distorted,tform,'OutputView',outputView);
In my case I have :
T inv =
1.00023168623406 -0.000123052555266618 0
0.000123052555266618 1.00023168623406 0
-0.184933876743564 -0.914678514629892 1
Also how could I calculate a "translationRecovered" as my thetaRecovered?
Thank you for your help! Aude
0 个评论
回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!