overlaying registered image on to large fixed image
Show older comments
I have 2 images, moving and fixed and I'm trying to overlay the moving picture on top of the fixed picture so I can see the full fixed picture with the section of the registered image.
The moving image size is 512X640 and the fixed image size is 3000X4000X3. Using cpselect i have selected 4 moving and fixed points and done registraion.
tform = fitgeotrans(movingPoints, fixedPoints, 'projective');
Rfixed = imref2d(size(fixed));
registered1 = imwarp(moving,tform,'FillValues', 65535,'OutputView',Rfixed);
figure, imshowpair(fixed,registered1,'blend');
I have done registration without trying to overlay on top and it worked good:
tform = fitgeotrans(movingPoints,fixedPoints,'affine');
recovered = imwarp(cam,tform,'outputView',Roriginal);
imshowpair(IR_image,recovered,'blend');
Tnx.
Answers (0)
Categories
Find more on Image Registration in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!