Changeset 929 for trunk/src


Ignore:
Timestamp:
Mar 5, 2016, 9:33:35 PM (9 years ago)
Author:
sommeria
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/series/extract_rdvision.m

    r928 r929  
    7171    ParamOut.Mask='off';...%can use mask option   (option 'off'/'on', 'off' by default)
    7272     ParamOut.OutputDirExt='.extract';%set the output dir extension
    73     ParamOut.OutputSubDirMode='one'; %output folder given by the program, not by the GUI series
     73    ParamOut.OutputSubDirMode='one'; %output folder given by the folder name of the first input line
    7474     % detect the set of image folder
    7575    RootPath=Param.InputTable{1,1};
     
    212212            filename_seq=fullfile(RootPath,Param.InputTable{iview,2},[Param.InputTable{iview,3} '.seq']);
    213213            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
    216217        otherwise
    217218            errormsg='input file extension must be .seq or .sqb';
     
    301302    end
    302303    % 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'
    303306    for i1=1:npi-1
    304307        for j1=1:npj-1
    305             OutputFile=fullfile_uvmat(RootPath,SeqData.sequencename,'img','.png',NomTypeNew,i1,[],j1);% TODO: set NomTypeNew from SeqData.mode
     308            OutputFile=fullfile_uvmat(RootPath,FileDir,'img','.png',NomTypeNew,i1,[],j1);% TODO: set NomTypeNew from SeqData.mode
    306309            A=imread(OutputFile);% check image reading (stop if error)
    307310        end
Note: See TracChangeset for help on using the changeset viewer.