Changeset 595 for trunk/src/series/aver_stat.m
- Timestamp:
- Mar 29, 2013, 9:03:29 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/series/aver_stat.m
r594 r595 89 89 % i1_series(iview,fileindex) expresses the same indices as a 1D array in file indices 90 90 %%%%%%%%%%%% 91 NbSlice=1;%default92 if isfield(Param.IndexRange,'NbSlice')&&~isempty(Param.IndexRange.NbSlice)93 NbSlice=Param.IndexRange.NbSlice;94 end91 % NbSlice=1;%default 92 % if isfield(Param.IndexRange,'NbSlice')&&~isempty(Param.IndexRange.NbSlice) 93 % NbSlice=Param.IndexRange.NbSlice; 94 % end 95 95 nbview=numel(i1_series);%number of input file series (lines in InputTable) 96 96 nbfield_j=size(i1_series{1},1); %nb of fields for the j index (bursts or volume slices) 97 97 nbfield_i=size(i1_series{1},2); %nb of fields for the i index 98 98 nbfield=nbfield_j*nbfield_i; %total number of fields 99 nbfield_i=floor(nbfield/NbSlice);%total number of indexes in a slice (adjusted to an integer number of slices)100 nbfield=nbfield_i*NbSlice; %total number of fields after adjustement99 %nbfield_i=floor(nbfield/NbSlice);%total number of indexes in a slice (adjusted to an integer number of slices) 100 %nbfield=nbfield_i*NbSlice; %total number of fields after adjustement 101 101 102 102 %determine the file type on each line from the first input file … … 173 173 174 174 %% MAIN LOOP ON SLICES 175 for i_slice=1:NbSlice176 index_slice=i_slice:NbSlice:nbfield;% select file indices of the slice175 % for i_slice=1:NbSlice 176 % index_slice=i_slice:NbSlice:nbfield;% select file indices of the slice 177 177 nbfiles=0; 178 178 nbmissing=0; 179 179 180 180 %%%%%%%%%%%%%%%% loop on field indices %%%%%%%%%%%%%%%% 181 for index=index_slice 181 for index=1:nbfield 182 %for index=index_slice 182 183 if checkrun 183 184 stopstate=get(Param.RUNHandle,'BusyAction'); … … 305 306 306 307 %writting the result file 307 OutputFile=fullfile_uvmat(RootPath{1},OutputDir,RootFile{1},FileExtOut,NomTypeOut,i1_series{1}(1),i1_series{1}(end), i_slice,[]);308 OutputFile=fullfile_uvmat(RootPath{1},OutputDir,RootFile{1},FileExtOut,NomTypeOut,i1_series{1}(1),i1_series{1}(end),j1_series{1}(1),j1_series{1}(end)); 308 309 if CheckImage{1} %case of images 309 310 if isequal(FileInfo{1}.BitDepth,16)||(numel(FileInfo)==2 &&isequal(FileInfo{2}.BitDepth,16)) … … 324 325 end 325 326 end % end averaging loop 326 end327 % end 327 328 %%%%%%%%%%%%%%%% end loop on slices %%%%%%%%%%%%%%%% 328 329
Note: See TracChangeset
for help on using the changeset viewer.