3737import java .util .concurrent .ExecutorService ;
3838import java .util .concurrent .Executors ;
3939
40- import net .imagej .space .LinearSpace ;
4140import net .imglib2 .Interval ;
4241import net .imglib2 .Point ;
4342import net .imglib2 .RandomAccessible ;
@@ -78,16 +77,6 @@ public static enum ExtremaType
7877 **/
7978 private ExecutorService executorService ;
8079
81- public < I extends RandomAccessibleInterval < T > & LinearSpace < ? > > DogDetection (
82- final I input ,
83- final double sigmaSmaller ,
84- final double sigmaLarger ,
85- final ExtremaType extremaType ,
86- final double minPeakValue )
87- {
88- this ( Views .extendMirrorSingle ( input ), input , getcalib ( input ), sigmaSmaller , sigmaLarger , extremaType , minPeakValue , true );
89- }
90-
9180 public DogDetection (
9281 final RandomAccessibleInterval < T > input ,
9382 final double [] calibration ,
@@ -97,7 +86,7 @@ public DogDetection(
9786 final double minPeakValue ,
9887 final boolean normalizeMinPeakValue )
9988 {
100- this ( Views .extendMirrorSingle ( input ), input , calibration , sigmaSmaller , sigmaLarger , extremaType , minPeakValue , true );
89+ this ( Views .extendMirrorSingle ( input ), input , calibration , sigmaSmaller , sigmaLarger , extremaType , minPeakValue , normalizeMinPeakValue );
10190 }
10291
10392 /**
@@ -314,14 +303,6 @@ public void setExecutorService( final ExecutorService service )
314303 this .executorService = service ;
315304 }
316305
317- private static double [] getcalib ( final LinearSpace < ? > calib )
318- {
319- final double [] c = new double [ calib .numDimensions () ];
320- for ( int d = 0 ; d < c .length ; ++d )
321- c [ d ] = calib .axis ( d ).scale ();
322- return c ;
323- }
324-
325306 private static class DogComputationType < F extends RealType < F > & NativeType < F > >
326307 {
327308 private final F type ;
0 commit comments