-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathImgCoreg.m
23 lines (22 loc) · 800 Bytes
/
ImgCoreg.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
function [p0, p,f, img, vf] = ImgCoreg(R, F, tol)
% Image Registration
% Input:
% R reference image structure
% F floating image structure
% tol six elements vector, tolerances of each transformation
% parameter, first three for translations, the other
% three for rotations with unit degree. Recommend
% (0,0,0,0.01,0.01,0.01).
% Output:
% p0 initial guess
% p final transformation parameters
% f final mutual information
% img registered image
% vf vector contains mutual information in each iteration
%
%
% Dakai Zhou
disp('Doing image registration...')
[p0, p,f, img, vf] = ImReg(R, F, tol);
disp('Done')
end