Using imregister and imregtform to stitch overlapping images
9 ビュー (過去 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!
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/338467/image.png)
[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!