I am following the Matlab Image Stitching tutorial on this page:
The code produces a stitched image. I would like to plot the centers of these photos on a 2D plot. So I use the following code to plot the x and y translation values in the transformation matrix tform:
x = [];
y = [];
for n=1:numImages
x(end+1) = tforms(n).T(3);
y(end+1) = tforms(n).T(6);
end
figure
plot(x, y, '-o');
I expect the code to produce all of the points nearly on the same level just like the stitched panoramic photo, but what I get is:
When I use images that have more rotations, the points are sometimes plotted very far and the shape becomes not identical to the stitched photos (for example when stitching nadir photos). What am I doing wrong?
Update: I think that what I want to do is to apply tfoms on the centers of the photos (using imwarp), and not on the whole photo..
0 Comments
Sign in to comment.