Changeset 1059 for trunk/src/series
- Timestamp:
- Nov 29, 2018, 5:44:44 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/series/extract_rdvision.m
r1051 r1059 186 186 % nbfield2=size(time,1); 187 187 checkpreserve=0;% if =1, will npreserve the original images, else it erases them at the end 188 188 189 for iview=1:size(Param.InputTable,1) 190 check_xml=0; 189 191 for iview_xml=1:size(Param.InputTable,1)% look for the xml files in the different data directories 190 192 filexml=[fullfile(RootPath,Param.InputTable{iview_xml,2},Param.InputTable{iview,3}) '.xml'];%new convention: xml at the level of the image folder 191 193 if exist(filexml,'file') 194 check_xml=1; 192 195 break 193 196 end 194 197 end 195 if ~exist(filexml,'file')196 disp_uvmat('ERROR',[filexml ' missing'],checkrun)197 return198 end199 198 % if ~exist(filexml,'file') 199 % disp_uvmat('ERROR',[filexml ' missing'],checkrun) 200 % return 201 % end 202 200 203 newxml=fullfile(RootPath,Param.InputTable{iview,3}); 201 204 newxml=regexprep(newxml,'_Master_Dalsa_4M180$','');%suppress '_Master_Dalsa_4M180' … … 211 214 [success,errormsg] = copyfile(filename_seq,[fullfile(RootPath,logdir,Param.InputTable{iview,3}) '.seq']); %copy the seq file in the upper folder 212 215 [success,errormsg] = copyfile(filename_sqb,[fullfile(RootPath,logdir,Param.InputTable{iview,3}) '.sqb']); %copy the sqb file in the upper folder 216 if check_xml 213 217 [success,errormsg] = copyfile(filexml,[fullfile(RootPath,logdir,Param.InputTable{iview,3}) '.xml']); %copy the original xml file in the upper folder 218 end 214 219 otherwise 215 220 errormsg='input file extension must be .seq or .sqb';
Note: See TracChangeset
for help on using the changeset viewer.