Changeset 398 for trunk/src/civ.m


Ignore:
Timestamp:
Apr 26, 2012, 12:12:43 PM (12 years ago)
Author:
sommeria
Message:

find_file_series corrected and rationalised, with induced transforms in uvmat, civ, series

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/civ.m

    r397 r398  
    395395
    396396%% scan the image file series
    397 [RootPath,FileName,ImaExt]=fileparts(fileinput);
    398 [RootFile,i1_series,tild,j1_series,tild,NomTypeIma,FileType,Object]=find_file_series(RootPath,[FileName ImaExt]);
    399 if strcmp(NomTypeInput,'*')% movies will be opened at the first frame
    400     i1=1;
    401     i2=[];
    402     j1=[];
    403     j2=[];
    404 end
     397[FilePath,FileName,ImaExt]=fileparts(fileinput);
     398% detect the file type, get the movie object if relevant, and look for the corresponding file series:
     399% the root name and indices may be corrected by including the first index i1 if a corresponding xml file exists
     400[RootPath,SubDir,RootFile,i1_series,i2_series,j1_series,j2_series,NomTypeIma,FileType,Object,i1,i2,j1,j2]=find_file_series(FilePath,[FileName ImaExt]);
     401
     402% [RootPath,FileName,ImaExt]=fileparts(fileinput);
     403% [RootFile,i1_series,tild,j1_series,tild,NomTypeIma,FileType,Object]=find_file_series(RootPath,[FileName ImaExt]);
     404% if strcmp(NomTypeInput,'*')% movies will be opened at the first frame
     405%     i1=1;
     406%     i2=[];
     407%     j1=[];
     408%     j2=[];
     409% end
    405410switch FileType
    406411    case {'image','multimage','video'}
     
    427432
    428433%% scan the images if a civ file has been opened
    429 % if ~isempty(NomTypeNc)
    430 % [tild,i1_series,tild,j1_series,tild,NomTypeIma,ImageType,Object]=find_file_series(RootPath,RootFile);
    431 % end
    432434MinIndex_i=min(i1_series(i1_series>0));
    433435MinIndex_j=min(j1_series(j1_series>0));
     
    26952697        [tild,RootFile_1]=fileparts(name);
    26962698    else
    2697         [tild,tild,RootFile_1,tild,tild,tild,tild,tild,nom_type_1]=fileparts_uvmat(fileinput);
    2698         [RootFile_1,i1_series,tild,j1_series,tild,nom_type_1,FileType,Object]=find_file_series(PathName,FileName);
     2699        [FilePath,FileName,Ext]=fileparts(fileinput);
     2700% detect the file type, get the movie object if relevant, and look for the corresponding file series:
     2701% the root name and indices may be corrected by including the first index i1 if a corresponding xml file exists
     2702[RootPath,SubDir,RootFile_1,i1_series,i2_series,j1_series,j2_series,nom_type_1,FileType,Object,i1,i2,j1,j2]=find_file_series(FilePath,[FileName Ext]);
     2703       
     2704       % [tild,tild,RootFile_1,tild,tild,tild,tild,tild,nom_type_1]=fileparts_uvmat(fileinput);
     2705        %[RootFile_1,i1_series,tild,j1_series,tild,nom_type_1,FileType,Object]=find_file_series(PathName,FileName);
    26992706        %check image nom type
    27002707        if ~strcmp(nom_type_1,get(handles.NomType,'String'))
Note: See TracChangeset for help on using the changeset viewer.