Changeset 803 for trunk/src/series.m
- Timestamp:
- Jul 30, 2014, 8:31:18 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/series.m
r801 r803 240 240 end 241 241 242 %% introduce the input file name(s) if defined from input Param, TODO: avoid the file checking if Param.i1_series defined242 %% introduce the input file name(s) if defined from input Param, 243 243 if isfield(Param,'InputFile') 244 244 … … 251 251 end 252 252 set(handles.InputTable,'Data',InputTable) 253 %% determine the selected reference field indices for pair display 253 254 254 % display_file_name(handles,Param,'one')%refresh the input table 255 [tild,tild,tild,i1,i2,j1,j2]=fileparts_uvmat(Param.InputFile.FileIndex); 256 if isempty(i1) 257 i1=1; 258 end 259 if isempty(i2) 260 i2=i1; 261 end 262 ref_i=floor((i1+i2)/2);% reference image number corresponding to the file 263 % set(handles.num_ref_i,'String',num2str(ref_i)); 264 if isempty(j1) 265 j1=1; 266 end 267 if isempty(j2) 268 j2=j1; 269 end 270 ref_j=floor((j1+j2)/2);% reference image number corresponding to the file 271 SeriesData.ref_i=ref_i; 272 SeriesData.ref_j=ref_j; 273 set(handles.series,'UserData',SeriesData) 255 274 update_rootinfo(handles,Param.HiddenData.i1_series{1},Param.HiddenData.i2_series{1},Param.HiddenData.j1_series{1},Param.HiddenData.j2_series{1},... 256 275 Param.HiddenData.FileInfo{1},Param.HiddenData.MovieObject{1},1) 257 if isfield(Param,'FileName_1') 258 276 if isfield(Param,'FileName_1') 259 277 % display_file_name(handles,Param,2) 260 278 update_rootinfo(handles,Param.HiddenData.i1_series{2},Param.HiddenData.i2_series{2},Param.HiddenData.j1_series{2},Param.HiddenData.j2_series{2},... … … 266 284 if isfield(Param,'incr_i') 267 285 set(handles.num_incr_i,'String',num2str(Param.incr_i)) 286 else 287 set(handles.num_incr_i,'String','1') 268 288 end 269 289 if isfield(Param,'incr_j') 270 290 set(handles.num_incr_j,'String',num2str(Param.incr_j)) 291 else 292 set(handles.num_incr_j,'String','1') 271 293 end 272 294 … … 274 296 % --- Outputs from this function are returned to the command line. 275 297 function varargout = series_OutputFcn(hObject, eventdata, handles) 276 %------------------------------------------------------------------------ 298 %------------------------------------------------------------------------ 277 299 varargout{1} = handles.output; 278 300
Note: See TracChangeset
for help on using the changeset viewer.