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

debugging

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