In this example, we will use three photographs taken from the same point in space, just by rotating the camera in the horizontal axis. Let's see the steps needed:
First, as always, we will load and display our images:
>> L = imread('Left.jpg'); >> M = imread('Middle.jpg'); >> R = imread('Right.jpg'); >> subplot(1,3,1);imshow(L);title('Left image') >> subplot(1,3,2);imshow(M);title('Middle image') >> subplot(1,3,3);imshow(R);title('Right image')
Now, let's pick two pairs of points that we will use for the connections (remember: we will not use any geometric transformations here). For the selection, we will use the Zoom In and the Data Cursor tools. First we do it for the left and middle image:
Then, it is time to pick a pair of points for the middle and right image:
Having pinpointed the two points that will be matched to connect the two images, we now have to move on to stitching.