Changeset 928 for trunk/src/series
- Timestamp:
- Mar 5, 2016, 5:57:11 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/series/extract_rdvision.m
r924 r928 64 64 ParamOut.AllowInputSort='off';...% allow alphabetic sorting of the list of input file SubDir (options 'off'/'on', 'off' by default) 65 65 ParamOut.WholeIndexRange='on';...% prescribes the file index ranges from min to max (options 'off'/'on', 'off' by default) 66 ParamOut.NbSlice= 'one'; ...%nbre of slices, 'one'prevents splitting in several processes, ('off' by default)66 ParamOut.NbSlice=1; ...%nbre of slices, 1 prevents splitting in several processes, ('off' by default) 67 67 ParamOut.VelType='off';...% menu for selecting the velocity type (options 'off'/'one'/'two', 'off' by default) 68 68 ParamOut.FieldName='off';...% menu for selecting the field (s) in the input file(options 'off'/'one'/'two', 'off' by default) … … 184 184 checkpreserve=0;% if =1, will npreserve the original images, else it erases them at the end 185 185 for iview=1:size(Param.InputTable,1) 186 for iview_xml=1:size(Param.InputTable,1)% loo jk for the xml files in the different data directories187 filexml=[fullfile(RootPath,Param.InputTable{iview_xml,2},Param.InputTable{iview,3}) '.xml'];%new convention: xml at the level of the image folder188 if exist(filexml,'file')189 break190 end191 end 186 for iview_xml=1:size(Param.InputTable,1)% look for the xml files in the different data directories 187 filexml=[fullfile(RootPath,Param.InputTable{iview_xml,2},Param.InputTable{iview,3}) '.xml'];%new convention: xml at the level of the image folder 188 if exist(filexml,'file') 189 break 190 end 191 end 192 192 if ~exist(filexml,'file') 193 193 disp_uvmat('ERROR',[filexml ' missing'],checkrun) … … 195 195 end 196 196 [XmlData,errormsg]=imadoc2struct(filexml); 197 198 newxml=[fullfile(RootPath,Param.InputTable{iview,3}) '.xml'] 197 newxml=fullfile(RootPath,Param.InputTable{iview,3}); 198 newxml=regexprep(newxml,'_Master_Dalsa_4M180$','');%suppress '_Master_Dalsa_4M180' 199 newxml=[newxml '.xml']; 199 200 200 201 [success,errormsg] = copyfile(filexml,newxml); %copy the xml file in the upper folder … … 306 307 end 307 308 end 308 309 % check images 310 311 % delete(fullfile(RootPath,'Running.xml'))%delete the xml file to indicate that processing is finished 312 % if ~checkpreserve 313 % for ibin=1:numel(BinList) 314 % delete(BinList{ibin}) 315 % end 316 % rmdir(fullfile(RootPath,Param.InputTable{iview,2})) 317 % end 318 end 309 end 310 311 %% remove binary files if transfer OK 312 if ~checkpreserve 313 for ibin=1:numel(BinList) 314 delete(BinList{ibin}) 315 end 316 rmdir(fullfile(RootPath,Param.InputTable{iview,2})) 317 end 319 318 delete(fullfile(RootPath,'Running.xml'))%delete the xml file to indicate that processing is finished 320 319 … … 352 351 BitDepth=8*SeqData.bytesperpixel;%needed to write images (8 or 16 bits) 353 352 binrepertoire=fullfile(PathDir,SeqData.binrepertoire); 354 OutputDir=fullfile(PathDir,SeqData.sequencename); 353 FileDir=SeqData.sequencename; 354 FileDir=regexprep(FileDir,'_Master_Dalsa_4M180$','');%suppress '_Master_Dalsa_4M180' 355 OutputDir=fullfile(PathDir,FileDir); 355 356 if ~exist(OutputDir,'dir') 356 357 % errormsg=[OutputDir ' already exist, delete it first']; … … 371 372 end 372 373 i1=floor((ii-1)/nbfield2)+1; 373 OutputFile=fullfile_uvmat(PathDir, SeqData.sequencename,'img','.png',NomTypeNew,i1,[],j1);% TODO: set NomTypeNew from SeqData.mode374 OutputFile=fullfile_uvmat(PathDir,FileDir,'img','.png',NomTypeNew,i1,[],j1);% TODO: set NomTypeNew from SeqData.mode 374 375 fname=fullfile(binrepertoire,sprintf('%s%.5d.bin',SeqData.binfile,SqbData(ii).file_idx)); 375 376 if exist(OutputFile,'file')
Note: See TracChangeset
for help on using the changeset viewer.