Image Registeration Help Please
显示 更早的评论
i m using this code for registration of the two images but i cannot get the images aligned together or stitch together
image1 = imread('C:\Documents and Settings\admin\Desktop\i1.jpg'); image2 = imread('C:\Documents and Settings\admin\Desktop\i2.jpg'); figure, imshow(image1);figure, imshow(image2);
cpselect(image2,image1); load westconcordpoints tform = cp2tform(input_points, base_points, 'projective');
registered = imtransform(image2, tform,... 'FillValues', 255); figure; imshow(registered); hold on h = imshow(image1, gray(256)); set(h, 'AlphaData', 0.5)
registered1 = imtransform(image2,tform,... 'FillValues', 255,... 'XData', [1 size(image1,2)],... 'YData', [1 size(image1,1)]);
figure; imshow(registered1) hold on h = imshow(image1, gray(256)); set(h, 'AlphaData', 0.6)
[registered2 xdata ydata] = imtransform(image2, tform,... 'FillValues', 255); figure; imshow(registered2, 'XData', xdata, 'YData', ydata) hold on h = imshow(image1, gray(256)); set(h, 'AlphaData', 0.6)
ylim = get(gca, 'YLim'); set(gca, 'YLim', [0.5 ylim(2)])
Please help me how i can register these two images in matlab for image stitching process after saving points through cpselect tool
1 个评论
Sean de Wolski
2011-7-15
Please see my answer in your duplicate post.
回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Image Processing and Computer Vision 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!