how to apply imregister and imwarp on resized image

4 次查看(过去 30 天)
I have two very large image 6000*4000 pixels and I've resized them by 10 times to speed things up and managed to get a really nice alignment with the following
newimage = imwarp(oldimage,Rmoving,tform,'OutputView',Rfixed, 'SmoothEdges', false);
oldimage is 600*400, tform was the output from imregtform.
However when I try to apply the same geometric transformation on the original image with the following lines
newimage2 =imwarp(oldimage2,tform,'OutputView',Rfixed2);
oldimage2 is 6000*4000, I got Rfixed2 from
imref2d(size(largeimage));
The alignment is not correct.
Please let me know what's the correct way to apply this on the resized image as it takes forever to implement image registration on large images. Thanks a lot!

回答(1 个)

Image Analyst
Image Analyst 2017-4-3
Try multiplying tform by 10.

类别

Help CenterFile Exchange 中查找有关 Geometric Transformation and Image Registration 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by