Changeset 783 for trunk/src/series
- Timestamp:
- Jun 5, 2014, 10:39:28 PM (11 years ago)
- Location:
- trunk/src/series
- Files:
-
- 16 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/series/aver_stat.m
r751 r783 121 121 return 122 122 end 123 [FileType{iview},FileInfo{iview},MovieObject{iview}]=get_file_type(filecell{iview,1}); 123 [FileInfo{iview},MovieObject{iview}]=get_file_type(filecell{iview,1}); 124 FileType{iview}=FileInfo{iview}.FileType; 124 125 CheckImage{iview}=~isempty(find(strcmp(FileType{iview},ImageTypeOptions)));% =1 for images 125 126 CheckNc{iview}=~isempty(find(strcmp(FileType{iview},NcTypeOptions)));% =1 for netcdf files -
trunk/src/series/aver_synchro.m
r751 r783 93 93 FileExt=Param.InputTable(:,5); 94 94 [filecell,i1_series,i2_series,j1_series,j2_series]=get_file_series(Param); 95 [FileType,FileInfo]=get_file_type(filecell{1,1}); 95 FileInfo=get_file_type(filecell{1,1}); 96 FileType=FileInfo.FileType; 96 97 %%%%%%%%%%%% 97 98 % The cell array filecell is the list of input file names, while -
trunk/src/series/beam_forming.m
r782 r783 82 82 return 83 83 end 84 [FileType{iview},FileInfo{iview},MovieObject{iview}]=get_file_type(filecell{iview,1}); 84 [FileInfo{iview},MovieObject{iview}]=get_file_type(filecell{iview,1}); 85 FileType{iview}=FileInfo{iview}.FileType; 85 86 CheckImage{iview}=~isempty(find(strcmp(FileType{iview},ImageTypeOptions)));% =1 for images 86 87 CheckNc{iview}=~isempty(find(strcmp(FileType{iview},NcTypeOptions)));% =1 for netcdf files -
trunk/src/series/check_data_files.m
r649 r783 92 92 NcTypeOptions={'netcdf','civx','civdata'}; 93 93 for iview=1:nbview 94 [FileType{iview},FileInfo{iview},Object{iview}]=get_file_type(filecell{iview,1}); 94 [FileInfo{iview},Object{iview}]=get_file_type(filecell{iview,1}); 95 FileType{iview}=FileInfo{iview}.FileType; 95 96 CheckImage{iview}=~isempty(find(strcmp(FileType{iview},ImageTypeOptions)));% =1 for images 96 97 CheckNc{iview}=~isempty(find(strcmp(FileType{iview},NcTypeOptions)));% =1 for netcdf files … … 100 101 for iview=1:nbview 101 102 if isequal(FileType{iview},'mmreader')||isequal(FileType{iview},'video')||isequal(FileType{iview},'multimage') 102 [ tild,FileInfo]=get_file_type(filecell{iview,1});103 [FileInfo]=get_file_type(filecell{iview,1}); 103 104 Tabchar{1}=filecell{iview,1};%info.Filename; 104 105 Tabchar{2}=''; 105 106 Tabchar{3}=[num2str(FileInfo.FrameRate) ' frames/s ']; 106 107 message=''; 107 % Tabchar{4}='';108 % Tabchar{5}=[' compression' FileInfo.VideoCompression];109 % Tabchar{6}=[ 'quality ' num2str(FileInfo.Quality)];110 108 else 111 109 Tabchar={}; … … 133 131 end 134 132 lastfield=''; 135 [FileType{iview},FileInfo,Object]=get_file_type(file); 133 [FileInfo,Object]=get_file_type(file); 134 FileType{iview}=FileInfo.FileType; 136 135 if strcmp(FileType{iview},'civx')||strcmp(FileType{iview},'civdata') 137 136 if isfield(FileInfo,'CivStage') -
trunk/src/series/check_peaklock.m
r668 r783 113 113 return 114 114 end 115 [FileType{iview},FileInfo{iview},MovieObject{iview}]=get_file_type(filecell{iview,1}); 115 [FileInfo{iview},MovieObject{iview}]=get_file_type(filecell{iview,1}); 116 FileType{iview}=FileInfo{iview}.FileType; 116 117 CheckImage{iview}=~isempty(find(strcmp(FileType{iview},ImageTypeOptions)));% =1 for images 117 118 CheckNc{iview}=~isempty(find(strcmp(FileType{iview},NcTypeOptions)));% =1 for netcdf files -
trunk/src/series/civ_input.m
r781 r783 2068 2068 Data.CoordUnit='pixel';% used to set equal scaling for x and y in image dispa=ly 2069 2069 par_civ1=read_GUI(handles.Civ1); 2070 par_civ1.FileTypeA=get_file_type(ImageName_A); 2070 FileInfo=get_file_type(ImageName_A); 2071 par_civ1.FileTypeA=FileInfo.FileType; 2071 2072 par_civ1.ImageWidth=size(Data.A,2); 2072 2073 par_civ1.ImageHeight=size(Data.A,1); -
trunk/src/series/civ_series.m
r782 r783 220 220 return 221 221 end 222 [FileType_A,FileInfo_A,VideoObject_A]=get_file_type(ImageName_A); 222 [FileInfo_A,VideoObject_A]=get_file_type(ImageName_A); 223 FileType_A=FileInfo_A.FileType; 223 224 if strcmp(FileInfo_A.FileType,'netcdf') 224 225 FieldName_A=Param.InputFields.FieldName; … … 233 234 return 234 235 end 235 [FileType_B,FileInfo_B,VideoObject_B]=get_file_type(ImageName_B); 236 [FileInfo_B,VideoObject_B]=get_file_type(ImageName_B); 237 FileType_B=FileInfo_B.FileType; 236 238 if strcmp(FileInfo_B.FileType,'netcdf') 237 239 FieldName_B=Param.InputFields.FieldName; … … 255 257 return 256 258 end 257 [FileType_B,FileInfo_B,VideoObject_B]=get_file_type(ImageName_B); 259 [FileInfo_B,VideoObject_B]=get_file_type(ImageName_B); 260 FileType_B=FileInfo_B.FileType; 258 261 [par_civ1.ImageB,VideoObject_B] = read_image(ImageName_B,FileType_B,VideoObject_B,FrameIndex_B_Civ2(1)); 259 262 NbField=numel(i1_series_Civ2); -
trunk/src/series/float_tracking.m
r635 r783 124 124 125 125 %% check the input file type 126 [FileType,FileInfo,VideoObject]=get_file_type(filecell{1,1}); 126 [FileInfo,VideoObject]=get_file_type(filecell{1,1}); 127 FileType=FileInfo.FileType; 127 128 ImageTypeOptions={'image','multimage','mmreader','video'}; 128 129 if isempty(find(strcmp(FileType,ImageTypeOptions))) -
trunk/src/series/ima_levels.m
r635 r783 65 65 msgbox_uvmat('WARNING','the first input file does not exist') 66 66 else 67 FileType=get_file_type(filecell{1,1}); 67 FileInfo=get_file_type(filecell{1,1}); 68 FileType=FileInfo.FileType; 68 69 if isempty(find(strcmp(FileType,{'image','multimage','mmreader','video'})));% =1 for images 69 70 msgbox_uvmat('ERROR',['bad input file type for ' mfilename ': an image is needed']) … … 106 107 nbfield_i=size(i1_series{1},2); %nb of fields for the i index 107 108 nbfield=nbfield_j*nbfield_i; %total number of fields 108 [FileType{1},FileInfo{1},VideoObject{1}]=get_file_type(filecell{1,1});% type of input file 109 [FileInfo{1},VideoObject{1}]=get_file_type(filecell{1,1});% type of input file 110 FileType{1}=FileInfo{1}.FileType; 109 111 110 112 %% frame index for movie or multimage file input -
trunk/src/series/merge_proj.m
r746 r783 121 121 return 122 122 end 123 [FileType{iview},FileInfo{iview},MovieObject{iview}]=get_file_type(filecell{iview,1}); 123 [FileInfo{iview},MovieObject{iview}]=get_file_type(filecell{iview,1}); 124 FileType{iview}=FileInfo{iview}.FileType; 124 125 CheckImage{iview}=~isempty(find(strcmp(FileType{iview},ImageTypeOptions)));% =1 for images 125 126 CheckNc{iview}=~isempty(find(strcmp(FileType{iview},NcTypeOptions)));% =1 for netcdf files -
trunk/src/series/merge_proj_special.m
r712 r783 114 114 return 115 115 end 116 [FileType{iview},FileInfo{iview},MovieObject{iview}]=get_file_type(filecell{iview,1}); 116 [FileInfo{iview},MovieObject{iview}]=get_file_type(filecell{iview,1}); 117 FileType{iview}=FileInfo{iview}.FileType; 117 118 CheckImage{iview}=~isempty(find(strcmp(FileType{iview},ImageTypeOptions)));% =1 for images 118 119 CheckNc{iview}=~isempty(find(strcmp(FileType{iview},NcTypeOptions)));% =1 for netcdf files -
trunk/src/series/particle_tracking.m
r635 r783 124 124 125 125 %% check the input file type 126 [FileType,FileInfo,VideoObject]=get_file_type(filecell{1,1}); 126 [FileInfo,VideoObject]=get_file_type(filecell{1,1}); 127 FileType=FileInfo.FileType; 127 128 ImageTypeOptions={'image','multimage','mmreader','video'}; 128 129 if isempty(find(strcmp(FileType,ImageTypeOptions))) -
trunk/src/series/relabel_i_j.m
r736 r783 95 95 return 96 96 end 97 [FileType{1},FileInfo{1},MovieObject{1}]=get_file_type(filecell{1,1}); 97 [FileInfo{1},MovieObject{1}]=get_file_type(filecell{1,1}); 98 FileType{1}=FileInfo{1}.FileType; 98 99 CheckImage=~isempty(find(strcmp(FileType{1},ImageTypeOptions)));% =1 for images 99 100 -
trunk/src/series/sub_background.m
r774 r783 90 90 %% check the validity of input file types 91 91 ImageTypeOptions={'image','multimage','mmreader','video'};%allowed input file types(images) 92 FileType=get_file_type(FirstFileName); 92 FileInfo=get_file_type(FirstFileName); 93 FileType=FileInfo.FileType; 93 94 CheckImage=~isempty(find(strcmp(FileType,ImageTypeOptions), 1));% =1 for images 94 95 if ~CheckImage … … 200 201 % i1_series(iview,fileindex) expresses the same indices as a 1D array in file indices 201 202 %%%%%%%%%%%% 202 [FileType{1},FileInfo{1},MovieObject{1}]=get_file_type(filecell{1,1}); 203 [FileInfo{1},MovieObject{1}]=get_file_type(filecell{1,1}); 204 FileType{1}=FileInfo{1}.FileType; 203 205 if ~isempty(j1_series{1}) 204 206 frame_index{1}=j1_series{1}; -
trunk/src/series/time_series.m
r768 r783 124 124 return 125 125 end 126 [FileType{iview},FileInfo{iview},MovieObject{iview}]=get_file_type(filecell{iview,1}); 126 [FileInfo{iview},MovieObject{iview}]=get_file_type(filecell{iview,1}); 127 FileType{iview}=FileInfo{iview}.FileType; 127 128 if strcmp(FileType{iview},'civdata')||strcmp(FileType{iview},'civx') 128 129 if ~isfield(Param.InputFields,'VelType') -
trunk/src/series/turb_stat.m
r761 r783 103 103 return 104 104 end 105 [FileType{iview},FileInfo{iview},MovieObject{iview}]=get_file_type(filecell{iview,1}); 105 [FileInfo{iview},MovieObject{iview}]=get_file_type(filecell{iview,1}); 106 FileType{iview}=FileInfo{iview}.FileType; 106 107 CheckImage{iview}=~isempty(find(strcmp(FileType{iview},ImageTypeOptions)));% =1 for images 107 108 CheckNc{iview}=~isempty(find(strcmp(FileType{iview},NcTypeOptions)));% =1 for netcdf files
Note: See TracChangeset
for help on using the changeset viewer.