Skip to content
Snippets Groups Projects
Commit d6a03fb7 authored by Eric Wait's avatar Eric Wait
Browse files

Created RegisterTwoImages that wraps NormalizedCovariance and returns the max...

Created RegisterTwoImages that wraps NormalizedCovariance and returns the max ncv and the corresponding deltas
parent 77bb75f1
No related branches found
No related tags found
No related merge requests found
function [deltas,maxNCV] = RegisterTwoImages(im1,im2,minOverlapVolume)
%[deltas,maxNCV] = RegisterTwoImages(im1,im2,minOverlapVolume)
% DELTAS is the shift of the upper left coners ....
ncvMatrix = Helper.NormalizedCovariance(im1,im2,minOverlapVolume);
[maxNCV,I] = max(ncvMatrix(:));
ncvCoords = calcImCoords(size(ncvMatrix),I);
deltas = ncvCoords - size(im2);
end
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment