Changeset 854 for trunk/src/series/sub_background.m
- Timestamp:
- Jan 21, 2015, 7:02:04 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/series/sub_background.m
r810 r854 145 145 if nbfield_i~=1 146 146 nbaver=floor(nbaver_init/nbfield_j); % number of bursts used for the sliding background, 147 if isequal( floor(nbaver/2),nbaver)147 if isequal(mod(nbaver,2),0)% if nbaver is even 148 148 nbaver=nbaver+1;%put the number of burst to an odd number (so the middle burst is defined) 149 149 end … … 170 170 step=nbfield_j;%case of bursts: the sliding background is shifted by the length of one burst 171 171 end 172 nbaver_ima=str2 num(answer{2});%number of images for the sliding background172 nbaver_ima=str2double(answer{2});%number of images for the sliding background 173 173 nbaver=ceil(nbaver_ima/step);%number of bursts for the sliding background 174 if isequal( floor(nbaver/2),nbaver)174 if isequal(mod(nbaver,2),0)% if nbaver is even 175 175 nbaver=nbaver+1;%set the number of bursts to an odd number (so the middle burst is defined) 176 176 end … … 178 178 ParamOut.ActionInput.CheckVolume=strcmp(answer{1},'Yes'); 179 179 ParamOut.ActionInput.SlidingSequenceLength=nbaver_ima; 180 ParamOut.ActionInput.BrightnessRankThreshold=str2 num(answer{3});180 ParamOut.ActionInput.BrightnessRankThreshold=str2double(answer{3}); 181 181 182 182 % apply the image rescaling function 'level' (avoid the blinking effects of bright particles) … … 198 198 199 199 %% input preparation 200 nbaver_ima=Param.ActionInput.SlidingSequenceLength;201 200 NbSlice=Param.IndexRange.NbSlice; 202 201 if ~isequal(NbSlice,1) … … 251 250 nbaver_ima=Param.ActionInput.SlidingSequenceLength;%number of images for the sliding background 252 251 nbaver=ceil(nbaver_ima/step);%number of bursts for the sliding background 253 if isequal( floor(nbaver/2),nbaver)252 if isequal(mod(nbaver,2),0) 254 253 nbaver=nbaver+1;%set the number of bursts to an odd number (so the middle burst is defined) 255 254 end
Note: See TracChangeset
for help on using the changeset viewer.