Skip to content

Commit 652324d

Browse files
authored
Merge pull request #57 from hanslovsky/remove-imagej-common-dependency
Remove imagej-common dependency
2 parents 4008e1b + 87c51a2 commit 652324d

File tree

2 files changed

+1
-26
lines changed

2 files changed

+1
-26
lines changed

pom.xml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -227,12 +227,6 @@ Jean-Yves Tinevez and Michael Zinsmaier.</license.copyrightOwners>
227227
<artifactId>imglib2-realtransform</artifactId>
228228
</dependency>
229229

230-
<!-- ImageJ dependencies -->
231-
<dependency>
232-
<groupId>net.imagej</groupId>
233-
<artifactId>imagej-common</artifactId>
234-
</dependency>
235-
236230
<!-- Third-party dependencies -->
237231
<dependency>
238232
<groupId>gov.nist.math</groupId>

src/main/java/net/imglib2/algorithm/dog/DogDetection.java

Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@
3737
import java.util.concurrent.ExecutorService;
3838
import java.util.concurrent.Executors;
3939

40-
import net.imagej.space.LinearSpace;
4140
import net.imglib2.Interval;
4241
import net.imglib2.Point;
4342
import 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

Comments
 (0)