Commit 17265194 authored by Andrey Filippov's avatar Andrey Filippov

debugging and fine tuning detection

parent 673cd8a6
......@@ -1091,6 +1091,7 @@ G= Y +Pr*(- 2*Kr*(1-Kr))/Kg + Pb*(-2*Kb*(1-Kb))/Kg
int num_slices, // (0 - all)
int [] wh) {
ImagePlus imp = null;
System.out.println("readFloatArray(): reading "+file_path);
try {
imp = new ImagePlus(file_path);
} catch (Exception e) {
......@@ -1111,6 +1112,7 @@ G= Y +Pr*(- 2*Kr*(1-Kr))/Kg + Pb*(-2*Kb*(1-Kb))/Kg
int [] wh, // should be null or int[2]
String [][] ptop_titles, // should be null or String [1][]
String [][] pslice_titles){// should be null or String [1][]
System.out.println("readDoubleHyperstack(): reading "+path);
ImagePlus imp = new ImagePlus(path);
if (imp.getWidth() == 0) {
System.out.println("testSynthetic(): Failed reading Vector field from: " + path);
......
......@@ -124,6 +124,7 @@ public class CuasMotionLMA {
public static final int FAIL_MISMATCH = 17; // Mismatch on both ends is too high
public static final int FAIL_NEIGHBOR = 18; // failed because some neighbor is stronger
public static final int FAIL_DUPLICATE= 19; // coordinate are (almost) the same as those of a stronger tile
public static final int FAIL_USED= 20; // non-centered used to generate centered, remove this
public static final int CENTERED_NO = 0;
public static final int CENTERED_YES = 1;
......
......@@ -6171,6 +6171,7 @@ public class QuadCLTCPU {
String x3d_path = readX3dDirectory(correctionsParameters.getModelName(image_name));
String file_name = image_name + suffix;
String file_path = x3d_path + Prefs.getFileSeparator() + file_name + ".tiff";
System.out.println("readImagePlusFromModelDirectory(): reading "+file_path);
ImagePlus imp = null;
try {
imp = new ImagePlus(file_path);
......@@ -6184,41 +6185,6 @@ public class QuadCLTCPU {
}
/*
public float [][] readFloatArrayFromThisModelDirectory(
String suffix,
int num_slices, // (0 - all)
int [] wh)
{
String x3d_path = getImagePath(); // getX3dDirectory();
String file_name = image_name + suffix;
String file_path = x3d_path + Prefs.getFileSeparator() + file_name + ".tiff";
ImagePlus imp = null;
try {
imp = new ImagePlus(file_path);
} catch (Exception e) {
System.out.println ("Failed to open "+file_path+", will generate it");
}
if ((imp == null) || (imp.getTitle() == null) || (imp.getTitle().equals(""))) {
return null;
}
ImageStack imageStack = imp.getStack();
int nChn=imageStack.getSize();
if ((num_slices > 0) && (num_slices < nChn)) {
nChn = num_slices;
}
float [][] result = new float [nChn][];
for (int n = 0; n < nChn; n++) {
result[n] = (float[]) imageStack.getPixels(n + 1);
}
if (wh != null) {
wh[0] = imp.getWidth();
wh[1] = imp.getHeight();
}
return result;
}*/
public void saveDSI() { saveDSI(this.dsi);}
......
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