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
Sean de Wolski 2011년 7월 15일
Please see my answer in your duplicate post.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

도움말 센터File Exchange에서 Image Processing and Computer Vision에 대해 자세히 알아보기

제품

질문:

2011년 7월 15일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by