comparison mt_calibrate.m @ 2:cfdca07197b6

FIX: calibration message was bad.
author samer
date Thu, 02 Feb 2012 03:12:22 +0000
parents 39d4f9e57b26
children ffd7efa3e5c0
comparison
equal deleted inserted replaced
1:39d4f9e57b26 2:cfdca07197b6
8 8
9 function Sys=mt_calibrate(Sys,I,PI) 9 function Sys=mt_calibrate(Sys,I,PI)
10 10
11 if nargin>2, Sys.refpoints(:,I) = PI; end 11 if nargin>2, Sys.refpoints(:,I) = PI; end
12 P = Sys.refpoints; 12 P = Sys.refpoints;
13 disp('\nCalibrating for triangle vertices at:'); disp(P); 13 fprintf('\nCalibrating for triangle vertices at:\n'); disp(P);
14 p0 = P(:,1); 14 p0 = P(:,1);
15 Sys.map = info_map_fn(p0,inv(P(:,2:3)-repmat(p0,1,2))); 15 Sys.map = info_map_fn(p0,inv(P(:,2:3)-repmat(p0,1,2)));
16 end 16 end
17 17
18 function f=info_map_fn(p0,M) 18 function f=info_map_fn(p0,M)