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

Risposte (0)

Categorie

Scopri di più su Image Processing and Computer Vision in Centro assistenza e File Exchange

Prodotti

Richiesto:

il 15 Lug 2011

Community Treasure Hunt

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

Start Hunting!

Translated by