Class 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 Nil type, as shown in this tutorial.

    Author:
    Gabriel Selzer
    • 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"
    • Constructor Detail

      • UsingNils

        public UsingNils()
    • Method Detail

      • main

        public static void main​(String... args)