gd.addNumericField("Number of pairs",corr_pairs,0,3,"","The number of correlation pairs to accumulate.");
gd.addNumericField("Pairs offset",corr_offset,0,3,"","Offset between the correlation pairs");
gd.addNumericField("Pairs offset",corr_offset,0,3,"scenes","Offset between the correlation pairs");
gd.addNumericField("Pre-correlation running average",precorr_ra,0,3,"scenes","Smoothing input data by running average before correlation for motion vectors calculations. Target extraction wil still use individual scenes.");
gd.addNumericField("Correlation step after RA",corr_ra_step,0,3,"scenes","Decimate correlations after running average");
gd.addCheckbox("Smooth weights",smooth,"Apply cosine weights when averaging a sequence of correlation pairs.");
gd.addCheckbox("Half scan step",half_step,"Reduce step for motion detection = offset/2, if false = offset.");
gd.addNumericField("Fat zero",fat_zero,7,10,"","Fat zero for TD->PD conversion");
...
...
@@ -414,6 +423,8 @@ public class CuasMotion {
"Minimal ratio of the overshoot radius to the first 0 radius (typical 1.0).");
intframe_cent=start_frame+corr_step*nscan+seq_length/2;// debug only
intframe_cent=start_frame+corr_inc*nscan+seq_length/2;// debug only
slice_titles[nscan]=imp_sel.getStack().getSliceLabel(frame_cent+1+first_corr);// wrong! should be imp_sel.getStack().getSliceLabel(frame_cent+1+first_corr)
}
...
...
@@ -1564,11 +1590,12 @@ public class CuasMotion {
booleanbatch_mode,
CLTParametersclt_parameters,
CuasMotioncuasMotion,
float[][]fpixels,
float[][]fpixels,// may be running average
intstart_frame,
intcorr_pairs,
intcorr_offset,
intcorr_step,
intcorr_inc,
intcorr_ra_step,// 5; // correlation step when using rolling average