Changeset 216 for trunk/src/series
- Timestamp:
- Mar 8, 2011, 11:38:22 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/series/relabel_i_j.m
r214 r216 20 20 RootPath=get(hseries.RootPath,'String'); 21 21 RootFile=get(hseries.RootFile,'String'); 22 if ~iscell(RootFile) 23 msgbox_uvmat('ERROR','please enter an input image series from RDVision system')%error message for xml file reading 24 return 25 end 22 26 basename=fullfile(RootPath{1},RootFile{1}); 27 [XmlData,warntext]=imadoc2struct([basename '.xml'])% read the xml file appended to the present function (containing bug corrections) 28 if ~isempty(warntext) 29 msgbox_uvmat('ERROR',warntext)%error message for xml file reading 30 end 31 nbfield1=size(XmlData.Time,1); 32 nbfield2=size(XmlData.Time,2); 33 34 set(hseries.first_i,'String',num2str(first_label))% display the first image in the process 35 set(hseries.last_i,'String',num2str(nbfield1*nbfield2-1+first_label))% display the last image in the process 36 set(hseries.nb_field,'String',{num2str(nbfield1*nbfield2-1+first_label)})% display the total nbre of images 23 37 SeriesData=get(hGUI,'UserData'); 24 38 if ~strcmp(SeriesData.NomType,'_000001') … … 28 42 msgbox_uvmat('CONFIRMATION','this function will relabel the file series from RDvision and correct the xml file')%error message for directory creation 29 43 end 30 [XmlData,warntext]=imadoc2struct([basename '.xml'])% read the xml file appended to the present function (containing bug corrections)31 if ~isempty(warntext)32 msgbox_uvmat('ERROR',warntext)%error message for xml file reading33 end34 nbfield1=size(XmlData.Time,1);35 nbfield2=size(XmlData.Time,2);36 37 set(hseries.first_i,'String',num2str(first_label))% display the first image in the process38 set(hseries.last_i,'String',num2str(nbfield1*nbfield2-1+first_label))% display the last image in the process39 set(hseries.nb_field,'String',{num2str(nbfield1*nbfield2-1+first_label)})% display the total nbre of images40 44 41 45 %% stop program ther when it is selected in the menu (no run action) … … 82 86 %%%% correction RDvision %%%% 83 87 uid_NbDtj=find(t,'ImaDoc/Camera/BurstTiming/NbDtj'); 84 t=set(t,uid_NbDtj,'value',num2str( s.NbDtj))88 t=set(t,uid_NbDtj,'value',num2str(XmlData.NbDtj)); 85 89 uid_NbDtk=find(t,'ImaDoc/Camera/BurstTiming/NbDtk'); 86 t=set(t,uid_NbDtk,'value',num2str( s.NbDtk))90 t=set(t,uid_NbDtk,'value',num2str(XmlData.NbDtk)); 87 91 %%% 88 92
Note: See TracChangeset
for help on using the changeset viewer.