If I perform a projective transformation on 'westconcordaerial.png' with 'westconcordorthophoto.png' as my base image, my resulting image ('registered') is bigger than my base image ('westconcordorthophoto.png'):
orthophoto = imread('westconcordorthophoto.png');unregistered = imread('westconcordaerial.png');input_points=[315.9797 81.5895; 179.9029 192.4000; ...134.6591 308.4211;321.1603 219.4947; 46.9345 70.4737];base_points=[ 342.3770 132.3825; 213.8397 208.2421; ...149.4108 303.1474;328.9142 254.0807; 109.9842 77.5053];tform = cp2tform(input_points,base_points,'projective');registered = imtransform(unregistered,tform);subplot(1,2,1);imshow(orthophoto); %display the images in the same figure
subplot(1,2,2);imshow(registered);
If I type 'whos' at the MATLAB command line, I see that the first and second dimensions of the registered image are not quite the same size as the base image. If I want to overlay the two images together (ie: add them or subtract them) they must have the same dimensions.
Best Answer