- Timestamp:
- Mar 5, 2016, 9:33:35 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/series/extract_rdvision.m
r928 r929 71 71 ParamOut.Mask='off';...%can use mask option (option 'off'/'on', 'off' by default) 72 72 ParamOut.OutputDirExt='.extract';%set the output dir extension 73 ParamOut.OutputSubDirMode='one'; %output folder given by the program, not by the GUI series73 ParamOut.OutputSubDirMode='one'; %output folder given by the folder name of the first input line 74 74 % detect the set of image folder 75 75 RootPath=Param.InputTable{1,1}; … … 212 212 filename_seq=fullfile(RootPath,Param.InputTable{iview,2},[Param.InputTable{iview,3} '.seq']); 213 213 filename_sqb=fullfile(RootPath,Param.InputTable{iview,2},[Param.InputTable{iview,3} '.sqb']); 214 [success,errormsg] = copyfile(filename_seq,[fullfile(RootPath,Param.InputTable{iview,3}) '.seq']); %copy the seq file in the upper folder 215 [success,errormsg] = copyfile(filename_sqb,[fullfile(RootPath,Param.InputTable{iview,3}) '.sqb']); %copy the sqb file in the upper folder 214 logdir=[Param.InputTable{1,2} .extract]; 215 [success,errormsg] = copyfile(filename_seq,[fullfile(RootPath,logdir,Param.InputTable{iview,3}) '.seq']); %copy the seq file in the upper folder 216 [success,errormsg] = copyfile(filename_sqb,[fullfile(RootPath,logdir,Param.InputTable{iview,3}) '.sqb']); %copy the sqb file in the upper folder 216 217 otherwise 217 218 errormsg='input file extension must be .seq or .sqb'; … … 301 302 end 302 303 % check the existence of the expected output image files (from the xml) 304 FileDir=SeqData.sequencename; 305 FileDir=regexprep(FileDir,'_Master_Dalsa_4M180$','');%suppress '_Master_Dalsa_4M180' 303 306 for i1=1:npi-1 304 307 for j1=1:npj-1 305 OutputFile=fullfile_uvmat(RootPath, SeqData.sequencename,'img','.png',NomTypeNew,i1,[],j1);% TODO: set NomTypeNew from SeqData.mode308 OutputFile=fullfile_uvmat(RootPath,FileDir,'img','.png',NomTypeNew,i1,[],j1);% TODO: set NomTypeNew from SeqData.mode 306 309 A=imread(OutputFile);% check image reading (stop if error) 307 310 end
Note: See TracChangeset
for help on using the changeset viewer.