private/getSubjectCoordinates.m
e0049736
 function scoords = getSubjectCoordinates(gcoords,map)
 m = java.util.HashMap ;
 
aa21d53b
 %build lookuptable
e0049736
 for i = 1:numel(map.names)
     key = cell2mat(map.names(i));
     val = map.coords(i,:);
     m.put(key,val);
 end
 
aa21d53b
 % do the lookup
e0049736
 scoords = [];
 for c = 1:numel(gcoords)
     key = strtrim(gcoords(c).name);
     val = m.get(key)';
aa21d53b
 %     mod = gcoords(c).mod;
 %     scoords = [scoords; val+mod];
     co = struct;
     co.coord = val;
     co.rad = gcoords(c).rad;
     scoords = [scoords; co];
e0049736
 end
 
 end