Changeset 839 for trunk


Ignore:
Timestamp:
Dec 9, 2014, 12:25:23 AM (6 years ago)
Author:
sommeria
Message:

extract_rdvision corrected, civ2vel_3C introduced (combined vel fields to get 3D components)

Location:
trunk/src/series
Files:
1 added
1 edited

Legend:

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

    r833 r839  
    8080    InputTable=cell(numel(ListDir),5);
    8181    InputTable(:,2)=ListDir';
     82    isel=0;
    8283    for ilist=1:numel(ListDir)
    83         InputTable{ilist,1}=RootPath;
    8484        ListStructSub=dir(fullfile(RootPath,ListDir{ilist}));
    8585        ListCellSub=struct2cell(ListStructSub);% transform dir struct to a cell arrray
    8686        detect_seq=regexp(ListCellSub(1,:),'.seq$');
    8787        seq_index=find(~cellfun('isempty',detect_seq),1);
    88         if isempty(seq_index)
    89             msgbox_uvmat('ERROR',['not seq file in ' ListDir{ilist} ': please check the input folders'])
    90         else
     88        if ~isempty(seq_index)
     89%             msgbox_uvmat('ERROR',['not seq file in ' ListDir{ilist} ': please check the input folders'])
     90%         else
     91           isel=isel+1;
     92           InputTable{isel,1}=RootPath;
    9193            RootFile=regexprep(ListCellSub{1,seq_index},'.seq$','');
    92             InputTable{ilist,3}=RootFile;
    93         end
    94         InputTable{ilist,4}='*';
    95         InputTable{ilist,5}='.seq';
     94            InputTable{isel,3}=RootFile;
     95        end
     96        InputTable{isel,4}='*';
     97        InputTable{isel,5}='.seq';
    9698    end
    9799    hseries=findobj(allchild(0),'Tag','series');% find the parent GUI 'series'
Note: See TracChangeset for help on using the changeset viewer.