Commit 25577f58 authored by Andrey Filippov's avatar Andrey Filippov

debugging

parent 147f6635
...@@ -3067,6 +3067,7 @@ public class CuasMotion { ...@@ -3067,6 +3067,7 @@ public class CuasMotion {
int [] remain = new int [num_corr_samples]; int [] remain = new int [num_corr_samples];
boolean debug_tum= false; boolean debug_tum= false;
String model_prefix = parentCLT.getImageName()+getParametersSuffix(clt_parameters,null); String model_prefix = parentCLT.getImageName()+getParametersSuffix(clt_parameters,null);
float [][] fpixels_tum = fpixels;
if (temporal_um > 0) { if (temporal_um > 0) {
if (intermed_high && debug_tum) { if (intermed_high && debug_tum) {
ImagePlus imp_src = ShowDoubleFloatArrays.makeArrays( ImagePlus imp_src = ShowDoubleFloatArrays.makeArrays(
...@@ -3136,12 +3137,12 @@ public class CuasMotion { ...@@ -3136,12 +3137,12 @@ public class CuasMotion {
} }
// modify original fpixels // modify original fpixels
fpixels = subtract( fpixels_tum = subtract(
fpixels, // float [][] fpixels, fpixels, // float [][] fpixels,
fpixels_ra); // float [][] fpixels_avg) fpixels_ra); // float [][] fpixels_avg)
if (intermed_high) { if (intermed_high) {
ImagePlus imp_diff = ShowDoubleFloatArrays.makeArrays( ImagePlus imp_diff = ShowDoubleFloatArrays.makeArrays(
fpixels, // float[][] pixels, fpixels_tum, // float[][] pixels,
cuasMotion.gpu_max_width, // int width, cuasMotion.gpu_max_width, // int width,
cuasMotion.gpu_max_height, // int height, cuasMotion.gpu_max_height, // int height,
model_prefix+"-SOURCE-DIFF", //String title, model_prefix+"-SOURCE-DIFF", //String title,
...@@ -3155,10 +3156,10 @@ public class CuasMotion { ...@@ -3155,10 +3156,10 @@ public class CuasMotion {
} }
} }
float [][] fpixels_ra = fpixels; float [][] fpixels_ra = fpixels_tum; //fpixels;
if (precorr_ra > 1) { if (precorr_ra > 1) {
fpixels_ra = runningAverage( fpixels_ra = runningAverage(
fpixels, // final float [][] fpixels, fpixels_tum, // fpixels, // final float [][] fpixels,
precorr_ra, // final int ra_length, precorr_ra, // final int ra_length,
cuasMotion.gpu_max_width); // final int width) cuasMotion.gpu_max_width); // final int width)
if (intermed_high) { if (intermed_high) {
...@@ -3331,7 +3332,7 @@ public class CuasMotion { ...@@ -3331,7 +3332,7 @@ public class CuasMotion {
float [][] fpixels_accumulated = cuasMotion.shiftAndRenderAccumulate( float [][] fpixels_accumulated = cuasMotion.shiftAndRenderAccumulate(
clt_parameters, // CLTParameters clt_parameters, clt_parameters, // CLTParameters clt_parameters,
false, // final boolean fill_zeros, false, // final boolean fill_zeros,
fpixels, // final float [][] fpixels, fpixels_tum, // final float [][] fpixels,
extended_scan, // final double [][][] vector_field, extended_scan, // final double [][][] vector_field,
frame0, // final int frame0, // for vector_field[0] frame0, // final int frame0, // for vector_field[0]
corr_inc, // final int frame_step, corr_inc, // final int frame_step,
......
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