- java.lang.Object
-
- org.scijava.ops.tutorial.UsingNils
-
public class UsingNils extends Object
SciJvaa Ops allows users to take advantage of the strong type safety of the Java language, which can provide benefits in certainty and efficiency. The downside of this is verbosity, especially in obtaining generically-typed outputs from OpBuilder calls.Luckily, SciJava Ops allows you to specify the generic types of outputs using the
Niltype, as shown in this tutorial.- Author:
- Gabriel Selzer
-
-
Field Summary
Fields Modifier and Type Field Description Producer<Img<UnsignedByteType>>imgOfBytesThis Op returns a 10x10 image of unsigned bytesProducer<Img<DoubleType>>imgOfDoublesThis Op returns a 10x10 image of doubles
-
Constructor Summary
Constructors Constructor Description UsingNils()
-
-
-
Field Detail
-
imgOfBytes
public final Producer<Img<UnsignedByteType>> imgOfBytes
This Op returns a 10x10 image of unsigned bytes- Output parameters:
- Implementation Note:
- op names="tutorial.nils"
-
imgOfDoubles
public final Producer<Img<DoubleType>> imgOfDoubles
This Op returns a 10x10 image of doubles- Output parameters:
- Implementation Note:
- op names="tutorial.nils"
-
-
Method Detail
-
main
public static void main(String... args)
-
-