Using imregister and imregtform to stitch overlapping images
조회 수: 5 (최근 30일)
이전 댓글 표시
I'm trying to stich together two tiled images that have 15% overlap. Using imregister on the overlap sections, I get a good registration of those overlap sections, but when I multiply the whole image by the tform from imregtform, I don't get a translation.
In figure 3, I'm showing the pair of images before registration, figure 5 after registration, and then in figure 8, I'm using the tform I get from imregtform to 'warp' (in this case translate) the image. I can't figure out why in my figure 8, the image isn't registering properly. It also doesn't register if I multiply the overlap region from the moving image by the tform.
If anyone has any ideas, I'm sure it's something easy that I've been dancing around.
Thanks!
[optimizer, metric] = imregconfig('monomodal')
tform = imregtform(moving, fixed, 'translation', optimizer, metric);
movingRegistered = imregister(moving, fixed, 'translation', optimizer, metric);
moved = imwarp(moving, tform); %make the moved image
big_moved = imwarp(scaled_f2, tform);
%%
figure(3)
imshowpair(fixed, moving,'Scaling','joint')
figure(5)
imshowpair(fixed, movingRegistered)
figure(8)
imshowpair(fixed, big_moved)
댓글 수: 2
Andrea Jacobson
2021년 12월 21일
Hi! Did you ever figure out what your problem was with the image registeration? If so, can you share some of your scripts for this? I am trying to do some 3D image stiching and need help.
답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!