Changeset 1162 for trunk/src/series


Ignore:
Timestamp:
Jul 20, 2024, 9:33:32 AM (9 months ago)
Author:
sommeria
Message:

further cleaning

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/series/civ_series.m

    r1161 r1162  
    993993    shifty=shifty*ones(nbvec,1);
    994994end
     995%TODO: shift the origin by -shift/2
    995996
    996997%% Array initialisation and default output  if par_civ.CorrSmooth=0 (just the grid calculated, no civ computation)
     
    11931194   FF=false; % no error by the limited search box
    11941195    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
    11961198    result_conv=result_conv*peak2noise/max_conv;% renormalise the correlation with respect to the noise
    11971199    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.