if(mb_en&&(mb_vectors!=null)){// increase fat zero when there is motion blur
corr_fz_inter*=8;
}
coord_motion=image_dtt.clt_process_tl_interscene(// convert to pixel domain and process correlations already prepared in fcorr_td and/or fcorr_combo_td
coord_motion=image_dtt.clt_process_tl_interscene(// convert to pixel domain and process correlations already prepared in fcorr_td and/or fcorr_combo_td
clt_parameters.img_dtt,// final ImageDttParameters imgdtt_params, // Now just extra correlation parameters, later will include, most others
clt_parameters.img_dtt,// final ImageDttParameters imgdtt_params, // Now just extra correlation parameters, later will include, most others
fcorr_td,// final float [][][][] fcorr_td, // [tilesY][tilesX][pair][4*64] transform domain representation of all selected corr pairs
fcorr_td,// final float [][][][] fcorr_td, // [tilesY][tilesX][pair][4*64] transform domain representation of all selected corr pairs
null,// float [][][] num_acc, // number of accumulated tiles [tilesY][tilesX][pair] (or null). Can be inner null if not used in tp_tasks
null,// float [][][] num_acc, // number of accumulated tiles [tilesY][tilesX][pair] (or null). Can be inner null if not used in tp_tasks
null,// double [] dcorr_weight, // alternative to num_acc, compatible with CPU processing (only one non-zero enough)
null,// double [] dcorr_weight, // alternative to num_acc, compatible with CPU processing (only one non-zero enough)
dcorr_tiles,// double [][][] dcorr_tiles,// [tile][sparse, correlation pair][(2*transform_size-1)*(2*transform_size-1)] // if null - will not calculate
dcorr_tiles,// double [][][] dcorr_tiles,// [tile][sparse, correlation pair][(2*transform_size-1)*(2*transform_size-1)] // if null - will not calculate
fclt_corr);// float [][][] fclt_corr) // new float [tilesX * tilesY][][] or null
fclt_corr);// float [][][] fclt_corr) // new float [tilesX * tilesY][][] or null
...
@@ -11404,484 +11562,9 @@ public class OpticalFlow {
...
@@ -11404,484 +11562,9 @@ public class OpticalFlow {
if(mb_en&&(mb_vectors!=null)){// increase fat zero when there is motion blur
corr_fz_inter*=8;
}
coord_motion=image_dtt.clt_process_tl_interscene(// convert to pixel domain and process correlations already prepared in fcorr_td and/or fcorr_combo_td
clt_parameters.img_dtt,// final ImageDttParameters imgdtt_params, // Now just extra correlation parameters, later will include, most others
fcorr_td,// final float [][][][] fcorr_td, // [tilesY][tilesX][pair][4*64] transform domain representation of all selected corr pairs
null,// float [][][] num_acc, // number of accumulated tiles [tilesY][tilesX][pair] (or null). Can be inner null if not used in tp_tasks
null,// double [] dcorr_weight, // alternative to num_acc, compatible with CPU processing (only one non-zero enough)
dcorr_tiles,// double [][][] dcorr_tiles,// [tile][sparse, correlation pair][(2*transform_size-1)*(2*transform_size-1)] // if null - will not calculate
fclt_corr);// float [][][] fclt_corr) // new float [tilesX * tilesY][][] or null
if(show_2d_correlations){// visualize prepare ref_scene correlation data
float[][]dbg_corr_rslt_partial=ImageDtt.corr_partial_dbg(// not used in lwir
fclt_corr1,// final float [][][] fcorr_data, // [tile][pair][(2*transform_size-1)*(2*transform_size-1)] // if null - will not calculate
image_dtt.getGPU().getCorrIndices(),// tp_tasks, // final TpTask [] tp_tasks, //
tilesX,//final int tilesX,
tilesY,//final int tilesX,
2*image_dtt.transform_size-1,// final int corr_size,
1000,// will be limited by available layersfinal int layers0,
clt_parameters.corr_border_contrast,// final double border_contrast,
THREADS_MAX,// final int threadsMax, // maximal number of threads to launch