Changeset 156 for trunk/src/geometry_calib.m
- Timestamp:
- Dec 19, 2010, 10:11:04 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/geometry_calib.m
r149 r156 75 75 %------------------------------------------------------------------------ 76 76 % Choose default command line output for geometry_calib 77 77 78 handles.output = hObject; 78 79 … … 82 83 83 84 %set the position of the interface 84 if exist('pos','var')&& length(pos)> 285 86 pos_gui(1)=pos(1);87 pos_gui(2)=pos(2);88 set(hObject,'Position',pos _gui);85 if exist('pos','var')&& length(pos)>=4 86 % %pos_gui=get(hObject,'Position'); 87 % pos_gui(1)=pos(1); 88 % pos_gui(2)=pos(2); 89 set(hObject,'Position',pos); 89 90 end 90 91 91 92 %set menu of calibration options 92 %set(handles.calib_type,'String',{'rescale';'linear';'perspective';'normal';'tsai';'bouguet';'extrinsic'})93 93 set(handles.calib_type,'String',{'rescale';'linear';'3D_linear';'3D_quadr';'3D_extrinsic'}) 94 94 inputxml=''; … … 99 99 inputfile=[fullfile(Pathsub,RootFile) '.xml'];%xml file corresponding to the input file 100 100 end 101 end 102 set(handles.ListCoord,'String',{'......'}) 103 if exist(inputfile,'file') 104 Heading=loadfile(handles,inputfile);% load the point coordiantes existing in the xml file 105 end 106 if isfield(Heading,'Campaign')&& ischar(Heading.Campaign) 107 struct.Campaign=Heading.Campaign; 108 end 109 set(hObject,'UserData',struct) 101 set(handles.ListCoord,'String',{'......'}) 102 if exist(inputfile,'file') 103 Heading=loadfile(handles,inputfile);% load the point coordiantes existing in the xml file 104 if isfield(Heading,'Campaign')&& ischar(Heading.Campaign) 105 struct.Campaign=Heading.Campaign; 106 end 107 end 108 set(hObject,'UserData',struct) 109 end 110 110 111 set(handles.ListCoord,'KeyPressFcn',{@key_press_fcn,handles})%set keyboard action function 111 112 … … 126 127 if ~isempty(huvmat) 127 128 handles=guidata(huvmat); 128 set(handles.MenuMask,'enable','on')129 set(handles.MenuGrid,'enable','on')130 set(handles.MenuObject,'enable','on')131 set(handles.MenuEdit,'enable','on')132 set(handles.edit,'enable','on')129 % set(handles.MenuMask,'enable','on') 130 % set(handles.MenuGrid,'enable','on') 131 % set(handles.MenuObject,'enable','on') 132 % set(handles.MenuEdit,'enable','on') 133 % set(handles.edit,'enable','on') 133 134 hobject=findobj(handles.axes3,'tag','calib_points'); 134 135 if ~isempty(hobject) … … 1103 1104 grid_input=CalibData.grid;%retrieve the previously used grid 1104 1105 end 1105 [T,CalibData.grid ]=create_grid(grid_input,'detect_grid');%display the GUI create_grid, read the set of phys coordinates T1106 [T,CalibData.grid,white_test]=create_grid(grid_input,'detect_grid');%display the GUI create_grid, read the set of phys coordinates T 1106 1107 1107 1108 set(handles.geometry_calib,'UserData',CalibData)%store the phys grid parameters for later use … … 1200 1201 % [Amod,Rangx,Rangy]=phys_Ima(A-min(min(A)),GeometryCalib,0); 1201 1202 1202 1203 Amod=double(Amod); 1203 if white_test 1204 Amod=double(Amod);%will look for image maxima 1205 else 1206 Amod=-double(Amod);%will look for image minima 1207 end 1204 1208 % figure(12) %display corrected image 1205 1209 % Amax=max(max(Amod));
Note: See TracChangeset
for help on using the changeset viewer.