image thumbnail

rigid and non rigid image registration using sumulink

by

 

using optical flow block Iteratively enables rigid and non rigid image registration

imWarp( flowHor, flowVer, Bin )
function [ B ] = imWarp( flowHor, flowVer, Bin )

%This function warps B towards A

[x y] = meshgrid(1:size(Bin,2),1:size(Bin,1));

B = interp2(Bin, x+flowHor, y+flowVer, 'cubic');
B(isnan(B)) = Bin(isnan(B));

end

Contact us