Skip to content

Commit 4b4b9c5

Browse files
committed
added convenience method to start DoG with an RAinterval
1 parent 7604b05 commit 4b4b9c5

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed

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

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@
1111
* %%
1212
* Redistribution and use in source and binary forms, with or without
1313
* modification, are permitted provided that the following conditions are met:
14-
*
14+
*
1515
* 1. Redistributions of source code must retain the above copyright notice,
1616
* this list of conditions and the following disclaimer.
1717
* 2. Redistributions in binary form must reproduce the above copyright notice,
1818
* this list of conditions and the following disclaimer in the documentation
1919
* and/or other materials provided with the distribution.
20-
*
20+
*
2121
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
2222
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
2323
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
@@ -78,10 +78,22 @@ public static enum ExtremaType
7878
this( Views.extendMirrorSingle( input ), input, getcalib( input ), sigma1, sigma2, extremaType, minPeakValue, true );
7979
}
8080

81+
public DogDetection(
82+
final RandomAccessibleInterval< T > input,
83+
final double[] calibration,
84+
final double sigma1,
85+
final double sigma2,
86+
final ExtremaType extremaType,
87+
final double minPeakValue,
88+
final boolean normalizeMinPeakValue )
89+
{
90+
this( Views.extendMirrorSingle( input ), input, calibration, sigma1, sigma2, extremaType, minPeakValue, true );
91+
}
92+
8193
/**
8294
* Sets up a {@link DogDetection} with the specified parameters (does not do
8395
* any computation yet).
84-
*
96+
*
8597
* @param input
8698
* the input image.
8799
* @param interval

0 commit comments

Comments
 (0)