- Timestamp:
- Sep 4, 2013, 9:19:06 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/uvmat.m
r682 r683 927 927 if ~isempty(XmlDataRead) 928 928 ImaDoc_str=['view ' DocExt]; % DocExt= '.xml' or .civ (obsolete case) 929 XmlData=XmlDataRead; 930 if isfield(XmlData,'TimeUnit') 931 if isfield(XmlData,'TimeUnit')&& ~isempty(XmlData.TimeUnit) 932 TimeUnit=XmlData.TimeUnit; 933 end 934 end 935 set(handles.view_xml,'BackgroundColor',[1 1 1])% paint black to white 929 %XmlData=XmlDataRead; 930 if isfield(XmlDataRead,'TimeUnit')&& ~isempty(XmlDataRead.TimeUnit) 931 TimeUnit=XmlDataRead.TimeUnit; 932 end 933 if isfield(XmlDataRead,'Time')&& ~isempty(XmlDataRead.Time) 934 XmlData.Time=XmlDataRead.TimeUnit; 935 end 936 set(handles.view_xml,'BackgroundColor',[1 1 1])% paint back to white 936 937 drawnow 937 if isfield(XmlData, 'GeometryCalib') && ~isempty(XmlData.GeometryCalib) 938 if isfield(XmlDataRead, 'GeometryCalib') && ~isempty(XmlDataRead.GeometryCalib) 939 XmlData.GeometryCalib=XmlDataRead.GeometryCalib; 938 940 if isfield(XmlData.GeometryCalib,'VolumeScan') && isequal(XmlData.GeometryCalib.VolumeScan,'y') 939 941 set (handles.slices,'String','volume') 940 942 end 943 % check whether the GUI geometry_calib is opened 941 944 hgeometry_calib=findobj('tag','geometry_calib'); 942 if ~isempty(hgeometry_calib) 945 if ~isempty(hgeometry_calib) % check whether the display of the GUI geometry_calib is consistent with the current calib param 943 946 GUserData=get(hgeometry_calib,'UserData'); 944 947 if ~(isfield(GUserData,'XmlInputFile') && strcmp(GUserData.XmlInputFile,XmlFileName)) 945 answer=msgbox_uvmat('INPUT_Y-N','re place the display ofgeometry_calib with the new input data?');948 answer=msgbox_uvmat('INPUT_Y-N','refresh the display of the GUI geometry_calib with the new input data?'); 946 949 if strcmp(answer,'Yes') 947 950 geometry_calib(XmlFileName);%diplay the new calibration points and parameters in geometry_calib … … 1576 1579 FileExt=InputFile.FileExt; 1577 1580 NomType=InputFile.NomType; 1578 %NomType=get(handles.NomType,'String');1579 1581 % i1=str2num(get(handles.i1,'String'));%read the field indices (for movie, it is not given by the file name) 1580 1582 % i2=[];%default … … 1591 1593 % end 1592 1594 [tild,tild,tild,i1,i2,j1,j2]=fileparts_uvmat(InputFile.FileIndex);% check back the indices used 1593 1595 if isempty(i1) 1596 i1=str2num(get(handles.i1,'String'));%read the field indices (for movie, it is not given by the file name) 1597 elseif isempty(j1) && strcmp(get(handles.j1,'Visible'),'on') 1598 j1=str2num(get(handles.j1,'String'));%case of indexed movie 1599 end 1594 1600 sub_value= get(handles.SubField,'Value'); 1595 if sub_value % a second input file has been entered 1596 [InputFile.RootPath_1,InputFile.SubDir_1,InputFile.RootFile_1,InputFile.FileIndex_1,InputFile.FileExt_1,InputFile.NomType_1]=read_file_boxes_1(handles);1601 if sub_value % a second input file has been entered 1602 [InputFile.RootPath_1,InputFile.SubDir_1,InputFile.RootFile_1,InputFile.FileIndex_1,InputFile.FileExt_1,InputFile.NomType_1]=read_file_boxes_1(handles); 1597 1603 [tild,tild,tild,i1_1,i2_1,j1_1,j2_1]=fileparts_uvmat(InputFile.FileIndex_1);% the indices for the second series taken from FileIndex_1 1604 if isempty(i1_1) 1605 i1_1=str2num(get(handles.i1,'String'));%read the field indices (for movie, it is not given by the file name) 1606 elseif isempty(j1_1) && strcmp(get(handles.j1,'Visible'),'on') 1607 j1_1=str2num(get(handles.j1,'String'));%case of indexed movie 1608 end 1598 1609 else 1599 1610 filename_1=[]; 1600 end 1611 end 1601 1612 1602 1613 %% increment (or decrement) the field indices and update the input filename(s) … … 2076 2087 case {'video','mmreader'} 2077 2088 ParamIn=UvData.MovieObject{1}; 2078 if ~strcmp(NomType,'*')2079 frame_index=num_ j1;%frame index formovies or multimage2089 if strcmp(NomType,'*') 2090 frame_index=num_i1;%frame index from a single movies or multimage 2080 2091 else 2081 frame_index=num_ i1;2092 frame_index=num_j1;% frame index from a set of indexed movies 2082 2093 end 2083 2094 case 'multimage'
Note: See TracChangeset
for help on using the changeset viewer.