Skip to content

Commit c893de5

Browse files
authored
Merge pull request #49 from scijava/imagej/imagej-ops2/plugin-purging
Use Therapi Discovery in ImageJ Ops2
2 parents 883acc7 + 8a62ad7 commit c893de5

487 files changed

Lines changed: 2990 additions & 2132 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

imagej/imagej-ops2/pom.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,7 @@
219219

220220
<!-- NB: Deploy releases to the ImageJ Maven repository. -->
221221
<releaseProfiles>deploy-to-imagej</releaseProfiles>
222+
<therapi.packages></therapi.packages>
222223
</properties>
223224

224225
<build>

imagej/imagej-ops2/src/main/java/module-info.java

Lines changed: 114 additions & 113 deletions
Large diffs are not rendered by default.

imagej/imagej-ops2/src/main/java/net/imagej/ops2/coloc/icq/LiICQ.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,7 @@
3838

3939
import org.scijava.function.Computers;
4040
import org.scijava.function.Functions;
41-
import org.scijava.ops.spi.Op;
4241
import org.scijava.ops.spi.OpDependency;
43-
import org.scijava.plugin.Plugin;
4442

4543
/**
4644
* This algorithm calculates Li et al.'s ICQ (intensity correlation quotient).
@@ -49,8 +47,8 @@
4947
* Type of the first image
5048
* @param <U>
5149
* Type of the second image
50+
*@implNote op names='coloc.icq'
5251
*/
53-
@Plugin(type = Op.class, name = "coloc.icq")
5452
public class LiICQ<T extends RealType<T>, U extends RealType<U>, V extends RealType<V>>
5553
implements Functions.Arity4<Iterable<T>, Iterable<U>, DoubleType, DoubleType, Double> {
5654

@@ -121,7 +119,9 @@ private double computeMeanUOf(final Iterable<U> in) {
121119

122120
}
123121

124-
@Plugin(type = Op.class, name = "coloc.icq")
122+
/**
123+
*@implNote op names='coloc.icq'
124+
*/
125125
class LiICQSimple<T extends RealType<T>, U extends RealType<U>, V extends RealType<V>>
126126
implements BiFunction<Iterable<T>, Iterable<U>, Double> {
127127

imagej/imagej-ops2/src/main/java/net/imagej/ops2/coloc/kendallTau/KendallTauBRank.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,6 @@
3838
import net.imglib2.util.IterablePair;
3939
import net.imglib2.util.Pair;
4040

41-
import org.scijava.ops.spi.Op;
42-
import org.scijava.plugin.Plugin;
43-
4441
/**
4542
* This algorithm calculates Kendall's Tau-b rank correlation coefficient
4643
* <p>
@@ -72,8 +69,8 @@
7269
* @author Johannes Schindelin
7370
* @author Ellen T Arena
7471
* @param <T>
72+
*@implNote op names='coloc.kendallTau'
7573
*/
76-
@Plugin(type = Op.class, name = "coloc.kendallTau")
7774
public class KendallTauBRank<T extends RealType<T>, U extends RealType<U>>
7875
/* extends Algorithm<T> */ implements BiFunction<Iterable<T>, Iterable<U>, Double> {
7976

imagej/imagej-ops2/src/main/java/net/imagej/ops2/coloc/maxTKendallTau/MTKT.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,7 @@
4949

5050
import org.scijava.function.Computers;
5151
import org.scijava.function.Functions;
52-
import org.scijava.ops.spi.Op;
5352
import org.scijava.ops.spi.OpDependency;
54-
import org.scijava.plugin.Plugin;
5553
import org.scijava.util.IntArray;
5654

5755
/**
@@ -64,8 +62,8 @@
6462
* @author Ellen T Arena
6563
* @author Shulei Wang
6664
* @author Curtis Rueden
65+
*@implNote op names='coloc.maxTKendallTau'
6766
*/
68-
@Plugin(type = Op.class, name = "coloc.maxTKendallTau")
6967
public class MTKT<T extends RealType<T>, U extends RealType<U>>
7068
implements Functions.Arity3<RandomAccessibleInterval<T>, RandomAccessibleInterval<U>, Long, Double>
7169
{
@@ -249,7 +247,9 @@ static double calculateKendallTau(final double[][] rank,
249247

250248
}
251249

252-
@Plugin(type = Op.class, name = "coloc.maxTKendallTau")
250+
/**
251+
*@implNote op names='coloc.maxTKendallTau'
252+
*/
253253
class MTKTSimple<T extends RealType<T>, U extends RealType<U>>
254254
implements BiFunction<RandomAccessibleInterval<T>, RandomAccessibleInterval<U>, Double>
255255
{

imagej/imagej-ops2/src/main/java/net/imagej/ops2/coloc/pValue/DefaultPValue.java

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,18 +48,16 @@
4848
import net.imglib2.view.Views;
4949

5050
import org.scijava.function.Computers;
51-
import org.scijava.ops.spi.Op;
5251
import org.scijava.ops.spi.OpDependency;
53-
import org.scijava.plugin.Plugin;
5452

5553
/**
5654
* This algorithm repeatedly executes a colocalization algorithm, computing a
5755
* p-value. It is based on a new statistical framework published by Wang et al
5856
* (2017) IEEE Signal Processing "Automated and Robust Quantification of
5957
* Colocalization in Dual-Color Fluorescence Microscopy: A Nonparametric
6058
* Statistical Approach".
59+
*@implNote op names='coloc.pValue'
6160
*/
62-
@Plugin(type = Op.class, name = "coloc.pValue")
6361
public class DefaultPValue<T extends RealType<T>, U extends RealType<U>> implements
6462
Computers.Arity7<RandomAccessibleInterval<T>, RandomAccessibleInterval<U>, BiFunction<RandomAccessibleInterval<T>, RandomAccessibleInterval<U>, Double>, Integer, Dimensions, Long, ExecutorService, PValueResult> {
6563

@@ -192,7 +190,9 @@ private static <V> RandomAccessibleInterval<V> trim(final RandomAccessibleInterv
192190
}
193191
}
194192

195-
@Plugin(type = Op.class, name = "coloc.pValue")
193+
/**
194+
*@implNote op names='coloc.pValue'
195+
*/
196196
class PValueSimpleWithRandomizations<T extends RealType<T>, U extends RealType<U>> implements
197197
Computers.Arity5<RandomAccessibleInterval<T>, RandomAccessibleInterval<U>, BiFunction<RandomAccessibleInterval<T>, RandomAccessibleInterval<U>, Double>, Integer, ExecutorService, PValueResult> {
198198

@@ -219,7 +219,9 @@ public void compute(RandomAccessibleInterval<T> in1, RandomAccessibleInterval<U>
219219

220220
}
221221

222-
@Plugin(type = Op.class, name = "coloc.pValue")
222+
/**
223+
*@implNote op names='coloc.pValue'
224+
*/
223225
class PValueSimple<T extends RealType<T>, U extends RealType<U>> implements
224226
Computers.Arity4<RandomAccessibleInterval<T>, RandomAccessibleInterval<U>, BiFunction<RandomAccessibleInterval<T>, RandomAccessibleInterval<U>, Double>, ExecutorService, PValueResult> {
225227

imagej/imagej-ops2/src/main/java/net/imagej/ops2/coloc/pearsons/DefaultPearsons.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,16 +35,13 @@
3535
import net.imglib2.util.IterablePair;
3636
import net.imglib2.util.Pair;
3737

38-
import org.scijava.ops.spi.Op;
39-
import org.scijava.plugin.Plugin;
40-
4138
/**
4239
* A class that represents the mean calculation of the two source images in the
4340
* data container. It implements the FAST calculation for Pearson's Correlation.
4441
*
4542
* @author Ellen T Arena
43+
*@implNote op names='coloc.pearsons'
4644
*/
47-
@Plugin(type = Op.class, name = "coloc.pearsons")
4845
public class DefaultPearsons<T extends RealType<T>, U extends RealType<U>> implements
4946
BiFunction<Iterable<T>, Iterable<U>, Double>
5047
{

0 commit comments

Comments
 (0)