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!