Changeset 332 for trunk/src/geometry_calib.m
- Timestamp:
- Dec 13, 2011, 11:20:07 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/geometry_calib.m
r252 r332 275 275 delete(hhh); 276 276 end 277 set(hhuvmat. FixLimits,'Value',0)% put FixedLimits option to 'off'278 set(hhuvmat. FixLimits,'BackgroundColor',[0.7 0.7 0.7])277 set(hhuvmat.CheckFixLimits,'Value',0)% put FixedLimits option to 'off' 278 set(hhuvmat.CheckFixLimits,'BackgroundColor',[0.7 0.7 0.7]) 279 279 UserData=get(handles.geometry_calib,'UserData'); 280 280 UserData.XmlInputFile=outputfile;%save the current xml file name … … 499 499 huvmat=findobj(allchild(0),'Tag','uvmat'); 500 500 hhuvmat=guidata(huvmat); 501 Calib.Cx=str2num(get(hhuvmat.n px,'String'))/2;502 Calib.Cx=str2num(get(hhuvmat.n py,'String'))/2;501 Calib.Cx=str2num(get(hhuvmat.num_Npx,'String'))/2; 502 Calib.Cx=str2num(get(hhuvmat.num_Npy,'String'))/2; 503 503 end 504 504 %tsai parameters … … 557 557 %retrieve the calibration points stored in the files listed in the popup list coord_files 558 558 x_1=Coord(:,4:5)';%px coordinates of the ref points 559 nx=str2num(get(hhuvmat.n px,'String'));560 ny=str2num(get(hhuvmat.n py,'String'));559 nx=str2num(get(hhuvmat.num_Npx,'String')); 560 ny=str2num(get(hhuvmat.num_Npy,'String')); 561 561 x_1(2,:)=ny-x_1(2,:);%reverse the y image coordinates 562 562 X_1=Coord(:,1:3)';%phys coordinates of the ref points … … 629 629 %retrieve the calibration points stored in the files listed in the popup list coord_files 630 630 x_1=Coord(:,4:5)';%px coordinates of the ref points 631 nx=str2num(get(hhuvmat.n px,'String'));632 ny=str2num(get(hhuvmat.n py,'String'));631 nx=str2num(get(hhuvmat.num_Npx,'String')); 632 ny=str2num(get(hhuvmat.num_Npy,'String')); 633 633 x_1(2,:)=ny-x_1(2,:);%reverse the y image coordinates 634 634 X_1=Coord(:,1:3)';%phys coordinates of the ref points … … 693 693 huvmat=findobj(allchild(0),'Tag','uvmat'); 694 694 hhuvmat=guidata(huvmat); 695 ny=str2double(get(hhuvmat.n py,'String'));695 ny=str2double(get(hhuvmat.num_Npy,'String')); 696 696 x_1(2,:)=ny-x_1(2,:);%reverse the y image coordinates 697 697 n_ima=1; … … 1596 1596 % f2=1000; 1597 1597 % hhuvmat=guidata(findobj(allchild(0),'Name','uvmat')); 1598 % Cx=str2num(get(hhuvmat.n px,'String'))/2;1599 % Cy=str2num(get(hhuvmat.n py,'String'))/2;1598 % Cx=str2num(get(hhuvmat.num_Npx,'String'))/2; 1599 % Cy=str2num(get(hhuvmat.num_Npy,'String'))/2; 1600 1600 Tabchar={};%default 1601 1601 val_cal=1;%default
Note: See TracChangeset
for help on using the changeset viewer.