Changeset 595 for trunk/src/series
- Timestamp:
- Mar 29, 2013, 9:03:29 PM (12 years ago)
- Location:
- trunk/src/series
- Files:
-
- 2 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 -
trunk/src/series/merge_proj.m
r592 r595 63 63 64 64 %%%%%%%%%%%% STANDARD PART (DO NOT EDIT) %%%%%%%%%%%% 65 66 65 67 %% read input parameters from an xml file if input is a file name (batch mode) 66 68 checkrun=1; … … 157 159 end 158 160 NomTypeOut=NomType;% output file index will indicate the first and last ref index in the series 159 if checkrun==1160 ParamOut.Specific=[];%no specific parameter161 return %stop here for interactive input (option Param.Specific='?')162 end161 % if checkrun==1 162 % ParamOut.Specific=[];%no specific parameter 163 % return %stop here for interactive input (option Param.Specific='?') 164 % end 163 165 164 166 %% Set field names and velocity types … … 174 176 %%%%%%%%%%%%%%%% loop on field indices %%%%%%%%%%%%%%%% 175 177 for index=index_slice 176 177 178 if checkrun 178 update_waitbar(hseries.Waitbar,index/(nbfield))179 stopstate=get(hseries.RUN,'BusyAction');179 stopstate=get(Param.RUNHandle,'BusyAction'); 180 update_waitbar(Param.WaitbarHandle,index/nbfield) 180 181 else 181 182 stopstate='queue'; 182 183 end 183 184 if ~isequal(stopstate,'queue')% enable STOP command 185 return 186 end 184 187 %%%%%%%%%%%%%%%% loop on views (input lines) %%%%%%%%%%%%%%%% 185 188 Data=cell(1,nbview);%initiate the set Data
Note: See TracChangeset
for help on using the changeset viewer.