Commit 97bfc4bf authored by Andrey Filippov's avatar Andrey Filippov

More debug images

parent bcba8c48
......@@ -3598,11 +3598,43 @@ public class CuasMotion {
boolean save_filtered_high = intermed_high && (niter < iter_show);
boolean save_filtered_giga = intermed_giga && (niter < iter_show);
if (save_filtered_low) {
//title_vf_all
ImagePlus imp_ms1 = showVectorFieldsSequence(
motion_scan, // double [][][] vector_fields_sequence,
speed_min, // double speed_min,
speed_pref, // double speed_pref,
speed_boost, // double speed_boost,
slice_titles, // String [] titles, // all slices*frames titles or just slice titles or null
model_prefix+"MS1-n"+niter,// String title,
false, // boolean nan_effective_strength,
!batch_mode, // boolean show,
cuasMotion.tilesX); // int tilesX) {
parentCLT.saveImagePlusInModelDirectory(imp_ms1);
}
// remove known bad targets. TODO: maybe will need to modify corr2d and recalculate, if the same tile is shared by a target and background
motion_scan = subtractMotionScans( // motion vectors
motion_scan, // double [][][] scan0, // all tried for targets
targets_bad, // double [][][] scan1) // good targets
remain);
if (save_filtered_low) {
//title_vf_all
ImagePlus imp_ms1 = showVectorFieldsSequence(
motion_scan, // double [][][] vector_fields_sequence,
speed_min, // double speed_min,
speed_pref, // double speed_pref,
speed_boost, // double speed_boost,
slice_titles, // String [] titles, // all slices*frames titles or just slice titles or null
model_prefix+"MS1-NOBAD-n"+niter,// String title,
false, // boolean nan_effective_strength,
!batch_mode, // boolean show,
cuasMotion.tilesX); // int tilesX) {
parentCLT.saveImagePlusInModelDirectory(imp_ms1);
}
if (debugLevel > -4) printRemain(remain, "motion_scan wo bad", true);
// filter remaining (no known bad ones)
boolean[][] filter5 = filterMotionScan(
......@@ -3618,8 +3650,8 @@ public class CuasMotion {
if (save_filtered_low) {
ImagePlus imp_filter5 = ShowDoubleFloatArrays.makeArrays(
filter5, // double[][] pixels,
cuasMotion.gpu_max_width,
cuasMotion.gpu_max_height,
cuasMotion.tilesX,
cuasMotion.tilesY,
model_prefix+"-FILTER5-n"+niter, // String title,
slice_titles);
if (!batch_mode) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment