Skip to content

Commit 51883b0

Browse files
committed
Remove superfluous ItemIO assignments
The default value of ItemIO.AUTO should be able to figure these out.
1 parent 0b231d8 commit 51883b0

337 files changed

Lines changed: 392 additions & 393 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/src/main/java/net/imagej/ops2/coloc/icq/LiICQ.java‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
@Parameter(key = "image2")
5858
@Parameter(key = "mean1")
5959
@Parameter(key = "mean2")
60-
@Parameter(key = "output", itemIO = ItemIO.OUTPUT)
60+
@Parameter(key = "output")
6161
public class LiICQ<T extends RealType<T>, U extends RealType<U>, V extends RealType<V>>
6262
implements Functions.Arity4<Iterable<T>, Iterable<U>, DoubleType, DoubleType, Double> {
6363

@@ -122,7 +122,7 @@ private double computeMeanUOf(final Iterable<U> in) {
122122
@Plugin(type = Op.class, name = "coloc.icq")
123123
@Parameter(key = "image1")
124124
@Parameter(key = "image2")
125-
@Parameter(key = "output", itemIO = ItemIO.OUTPUT)
125+
@Parameter(key = "output")
126126
class LiICQSimple<T extends RealType<T>, U extends RealType<U>, V extends RealType<V>>
127127
implements BiFunction<Iterable<T>, Iterable<U>, Double> {
128128

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@
7878
@Plugin(type = Op.class, name = "coloc.kendallTau")
7979
@Parameter(key = "image1")
8080
@Parameter(key = "image2")
81-
@Parameter(key = "output", itemIO = ItemIO.OUTPUT)
81+
@Parameter(key = "output")
8282
public class KendallTauBRank<T extends RealType<T>, U extends RealType<U>>
8383
/* extends Algorithm<T> */ implements BiFunction<Iterable<T>, Iterable<U>, Double> {
8484

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@
7171
@Parameter(key = "image1")
7272
@Parameter(key = "image2")
7373
@Parameter(key = "seed")
74-
@Parameter(key = "output", itemIO = ItemIO.OUTPUT)
74+
@Parameter(key = "output")
7575
public class MTKT<T extends RealType<T>, U extends RealType<U>>
7676
implements Functions.Arity3<RandomAccessibleInterval<T>, RandomAccessibleInterval<U>, Long, Double>
7777
{
@@ -250,7 +250,7 @@ static double calculateKendallTau(final double[][] rank,
250250
@Plugin(type = Op.class, name = "coloc.maxTKendallTau")
251251
@Parameter(key = "image1")
252252
@Parameter(key = "image2")
253-
@Parameter(key = "output", itemIO = ItemIO.OUTPUT)
253+
@Parameter(key = "output")
254254
class MTKTSimple<T extends RealType<T>, U extends RealType<U>>
255255
implements BiFunction<RandomAccessibleInterval<T>, RandomAccessibleInterval<U>, Double>
256256
{

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070
@Parameter(key = "psfSize")
7171
@Parameter(key = "seed")
7272
@Parameter(key = "executorService")
73-
@Parameter(key = "output", itemIO = ItemIO.BOTH)
73+
@Parameter(key = "output")
7474
public class DefaultPValue<T extends RealType<T>, U extends RealType<U>> implements
7575
Computers.Arity7<RandomAccessibleInterval<T>, RandomAccessibleInterval<U>, BiFunction<RandomAccessibleInterval<T>, RandomAccessibleInterval<U>, Double>, Integer, Dimensions, Long, ExecutorService, PValueResult> {
7676

@@ -197,7 +197,7 @@ private static <V> RandomAccessibleInterval<V> trim(final RandomAccessibleInterv
197197
@Parameter(key = "op")
198198
@Parameter(key = "nrRandomizations")
199199
@Parameter(key = "executorService")
200-
@Parameter(key = "output", itemIO = ItemIO.BOTH)
200+
@Parameter(key = "output")
201201
class PValueSimpleWithRandomizations<T extends RealType<T>, U extends RealType<U>> implements
202202
Computers.Arity5<RandomAccessibleInterval<T>, RandomAccessibleInterval<U>, BiFunction<RandomAccessibleInterval<T>, RandomAccessibleInterval<U>, Double>, Integer, ExecutorService, PValueResult> {
203203

@@ -219,7 +219,7 @@ public void compute(RandomAccessibleInterval<T> in1, RandomAccessibleInterval<U>
219219
@Parameter(key = "image2")
220220
@Parameter(key = "op")
221221
@Parameter(key = "executorService")
222-
@Parameter(key = "output", itemIO = ItemIO.BOTH)
222+
@Parameter(key = "output")
223223
class PValueSimple<T extends RealType<T>, U extends RealType<U>> implements
224224
Computers.Arity4<RandomAccessibleInterval<T>, RandomAccessibleInterval<U>, BiFunction<RandomAccessibleInterval<T>, RandomAccessibleInterval<U>, Double>, ExecutorService, PValueResult> {
225225

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
@Plugin(type = Op.class, name = "coloc.pearsons")
5050
@Parameter(key = "image1")
5151
@Parameter(key = "image2")
52-
@Parameter(key = "output", itemIO = ItemIO.OUTPUT)
52+
@Parameter(key = "output")
5353
public class DefaultPearsons<T extends RealType<T>, U extends RealType<U>> implements
5454
BiFunction<Iterable<T>, Iterable<U>, Double>
5555
{

‎imagej/imagej-ops2/src/main/java/net/imagej/ops2/convert/clip/ClipRealTypes.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
*/
4646
@Plugin(type = Op.class, name = "convert.clip")
4747
@Parameter(key = "input")
48-
@Parameter(key = "output", itemIO = ItemIO.BOTH)
48+
@Parameter(key = "output")
4949
public class ClipRealTypes<I extends RealType<I>, O extends RealType<O>>
5050
implements Computers.Arity1<I, O>
5151
{

‎imagej/imagej-ops2/src/main/java/net/imagej/ops2/convert/copy/CopyRealTypes.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
*/
4646
@Plugin(type = Op.class, name = "convert.copy")
4747
@Parameter(key = "input")
48-
@Parameter(key = "output", itemIO = ItemIO.BOTH)
48+
@Parameter(key = "output")
4949
public class CopyRealTypes<I extends RealType<I>, O extends RealType<O>>
5050
implements Computers.Arity1<I, O>
5151
{

‎imagej/imagej-ops2/src/main/java/net/imagej/ops2/copy/CopyArrayImg.java‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
*/
5454
@Plugin(type = Op.class, name = "copy, copy.img", priority = Priority.VERY_HIGH)
5555
@Parameter(key = "input")
56-
@Parameter(key = "copy", itemIO = ItemIO.BOTH)
56+
@Parameter(key = "copy")
5757
public class CopyArrayImg<T extends NativeType<T>, A extends ArrayDataAccess<A>>
5858
implements Computers.Arity1<ArrayImg<T, A>, ArrayImg<T, A>> {
5959
@Override
@@ -70,7 +70,7 @@ public void compute(final ArrayImg<T, A> input, final ArrayImg<T, A> output) {
7070

7171
@Plugin(type = Op.class, name = "copy, copy.img", priority = Priority.VERY_HIGH)
7272
@Parameter(key = "input")
73-
@Parameter(key = "copy", itemIO = ItemIO.OUTPUT)
73+
@Parameter(key = "copy")
7474
class CopyArrayImgFunction<T extends NativeType<T>, A extends ArrayDataAccess<A>>
7575
implements Function<ArrayImg<T, A>, ArrayImg<T, A>> {
7676

‎imagej/imagej-ops2/src/main/java/net/imagej/ops2/copy/CopyII.java‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
*/
5252
@Plugin(type = Op.class, name = "copy, copy.iterableInterval", priority = 1.0)
5353
@Parameter(key = "input")
54-
@Parameter(key = "output", itemIO = ItemIO.BOTH)
54+
@Parameter(key = "output")
5555
public class CopyII<T> implements Computers.Arity1<IterableInterval<T>, IterableInterval<T>> {
5656

5757
// used internally
@@ -70,7 +70,7 @@ public void compute(final IterableInterval<T> input, final IterableInterval<T> o
7070

7171
@Plugin(type = Op.class, name = "copy, copy.iterableInterval", priority = 1.0)
7272
@Parameter(key = "input")
73-
@Parameter(key = "output", itemIO = ItemIO.OUTPUT)
73+
@Parameter(key = "output")
7474
class CopyIIFunction<T> implements Function<IterableInterval<T>, IterableInterval<T>> {
7575

7676
@OpDependency(name = "create.img")

‎imagej/imagej-ops2/src/main/java/net/imagej/ops2/copy/CopyImg.java‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
*/
5151
@Plugin(type = Op.class, name = "copy, copy.img")
5252
@Parameter(key = "input")
53-
@Parameter(key = "output", itemIO = ItemIO.BOTH)
53+
@Parameter(key = "output")
5454
public class CopyImg<T extends NativeType<T>> implements Computers.Arity1<Img<T>, Img<T>> {
5555

5656
@OpDependency(name = "copy.iterableInterval")
@@ -66,7 +66,7 @@ public void compute(final Img<T> input, final Img<T> output) {
6666

6767
@Plugin(type = Op.class, name = "copy, copy.img")
6868
@Parameter(key = "input")
69-
@Parameter(key = "output", itemIO = ItemIO.OUTPUT)
69+
@Parameter(key = "output")
7070
class CopyImgFunction<T extends NativeType<T>> implements Function<Img<T>, Img<T>> {
7171

7272
@OpDependency(name = "copy.img")

0 commit comments

Comments
 (0)