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 Comment

Please see my answer in your duplicate post.

Sign in to comment.

Answers (0)

Categories

Find more on Image Processing and Computer Vision in Help Center and File Exchange

Products

Asked:

on 15 Jul 2011

Community Treasure Hunt

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

Start Hunting!