Skip to content
Snippets Groups Projects
Commit 12dbce4c authored by Céline  TREBEAU's avatar Céline TREBEAU
Browse files

code cleanup

parent 2a725e7a
No related branches found
No related tags found
1 merge request!10Surface reconstruction Refactoring
......@@ -23,7 +23,7 @@ import net.imglib2.type.logic.BitType;
import net.imglib2.type.numeric.RealType;
import net.imglib2.type.numeric.integer.UnsignedShortType;
import java.util.TreeMap;
import java.util.TreeSet;
public class SurfacesExtraction
......@@ -31,7 +31,6 @@ public class SurfacesExtraction
private static int X;
private static int Y;
private static int Z;
public static int zCount;
public static TreeSet<Integer> list;
public static < T extends RealType< T > & NativeType< T > > void extract(
......@@ -96,15 +95,11 @@ public class SurfacesExtraction
/* Grid of local maximums*/
Img< BitType > threshold = LocalOtsuClassification.find( input , percent);
// Img< BitType > threshold = LocalOtsu.find( maximums , percent);
//ImageJFunctions.show( threshold, "Local threshold " );
/* Maxima selection according to threshold*/
maximums = Threshold.classification( maximums.copy(), maximums.factory(), threshold );
// maximums = IsolatedPixFilter.run( maximums.copy(), 1, 2, 4 );
// ImageJFunctions.show(m.copy(), "isolated pix 1 ");
/* Dilatation of the resulting image*/
Utils.gaussConvolution( maximums.copy(), maximums, new double[]{ sigma, sigma } );
// ImageJFunctions.show( maximums, "blurred maximums" );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment