booleangenerate_output=clt_parameters.imp.cuas_generate;// generate and save targets Tiff and/or video files
booleangenerate_csv=clt_parameters.imp.cuas_generate_csv;// generate and save targets as csv file
booleanclean_video=clt_parameters.imp.cuas_clean_video;//true;// save video without any debug information for targets, output in TIFF files. False - same output for video and TIFFs
...
...
@@ -275,6 +278,10 @@ public class CuasRanging {
getRangeFromDisparity(targets);
// generate results video (move from earlier)
if(generate_csv){
saveTargetStats(targets);// final double [][][] targets_single) {
}
if(generate_output){
cuasMotion.generateExtractFilterMovingTargets(// move parameters to clt_parameters
false,// final boolean video_pass, // if clt_parameters.cuas_clean_video=true, video_pass=0 - output TIFFS, but no video. If video_pass==1 - only video with no debug
...
...
@@ -290,6 +297,7 @@ public class CuasRanging {
targets,// _nonconflict, // final double [][][] vf_sequence, // center tiles (not extended), null /non-null only
debugLevel);// final int debugLevel)
}
}else{
System.out.println("Output images/videos with detected targets is disabled by \"Generate and save detected targets\" parameter, skipping it.");
doublecuas_initial_disparity=clt_parameters.imp.cuas_initial_disparity;// 1.0; // Start correlation with this disparity (in addition to infinity) after reset
doublecuas_infinity=clt_parameters.imp.cuas_infinity;// 0.63; // disparity at infinity for targets
finalinttilesX=center_CLT.getTilesX();
finalinttilesY=center_CLT.getTilesY();
finalintframe_center=cuasMotion.getFrameCenter(nseq);// for debug only