Changeset 1162 for trunk/src/series
- Timestamp:
- Jul 20, 2024, 9:33:32 AM (9 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/series/civ_series.m
r1161 r1162 993 993 shifty=shifty*ones(nbvec,1); 994 994 end 995 %TODO: shift the origin by -shift/2 995 996 996 997 %% Array initialisation and default output if par_civ.CorrSmooth=0 (just the grid calculated, no civ computation) … … 1193 1194 FF=false; % no error by the limited search box 1194 1195 max_conv=result_conv(y,x);% max correlation 1195 peak2noise= max(4,max_conv/std(reshape(result_conv,1,[])));% ratio of max conv to standard deviation of correlations (estiamtion of noise level), set to value 4 if it is too low 1196 %peak2noise= max(4,max_conv/std(reshape(result_conv,1,[])));% ratio of max conv to standard deviation of correlations (estiamtion of noise level), set to value 4 if it is too low 1197 peak2noise=100;% TODO: make this threshold more precise, depending on the image noise 1196 1198 result_conv=result_conv*peak2noise/max_conv;% renormalise the correlation with respect to the noise 1197 1199 result_conv(result_conv<1)=1; %set to 1 correlation values smaller than 1 (=0 by discretisation, to avoid divergence in the log)
Note: See TracChangeset
for help on using the changeset viewer.