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

More debug images

parent bcba8c48
...@@ -3598,11 +3598,43 @@ public class CuasMotion { ...@@ -3598,11 +3598,43 @@ public class CuasMotion {
boolean save_filtered_high = intermed_high && (niter < iter_show); boolean save_filtered_high = intermed_high && (niter < iter_show);
boolean save_filtered_giga = intermed_giga && (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 // 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 = subtractMotionScans( // motion vectors
motion_scan, // double [][][] scan0, // all tried for targets motion_scan, // double [][][] scan0, // all tried for targets
targets_bad, // double [][][] scan1) // good targets targets_bad, // double [][][] scan1) // good targets
remain); 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); if (debugLevel > -4) printRemain(remain, "motion_scan wo bad", true);
// filter remaining (no known bad ones) // filter remaining (no known bad ones)
boolean[][] filter5 = filterMotionScan( boolean[][] filter5 = filterMotionScan(
...@@ -3618,8 +3650,8 @@ public class CuasMotion { ...@@ -3618,8 +3650,8 @@ public class CuasMotion {
if (save_filtered_low) { if (save_filtered_low) {
ImagePlus imp_filter5 = ShowDoubleFloatArrays.makeArrays( ImagePlus imp_filter5 = ShowDoubleFloatArrays.makeArrays(
filter5, // double[][] pixels, filter5, // double[][] pixels,
cuasMotion.gpu_max_width, cuasMotion.tilesX,
cuasMotion.gpu_max_height, cuasMotion.tilesY,
model_prefix+"-FILTER5-n"+niter, // String title, model_prefix+"-FILTER5-n"+niter, // String title,
slice_titles); slice_titles);
if (!batch_mode) { 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