|
| 1 | +package net.imagej.ops.create; |
| 2 | + |
| 3 | +import net.imglib2.type.logic.BitType; |
| 4 | +import net.imglib2.type.numeric.complex.ComplexDoubleType; |
| 5 | +import net.imglib2.type.numeric.complex.ComplexFloatType; |
| 6 | +import net.imglib2.type.numeric.integer.ByteType; |
| 7 | +import net.imglib2.type.numeric.integer.IntType; |
| 8 | +import net.imglib2.type.numeric.integer.LongType; |
| 9 | +import net.imglib2.type.numeric.integer.ShortType; |
| 10 | +import net.imglib2.type.numeric.integer.Unsigned128BitType; |
| 11 | +import net.imglib2.type.numeric.integer.Unsigned12BitType; |
| 12 | +import net.imglib2.type.numeric.integer.Unsigned2BitType; |
| 13 | +import net.imglib2.type.numeric.integer.Unsigned4BitType; |
| 14 | +import net.imglib2.type.numeric.integer.UnsignedByteType; |
| 15 | +import net.imglib2.type.numeric.integer.UnsignedIntType; |
| 16 | +import net.imglib2.type.numeric.integer.UnsignedLongType; |
| 17 | +import net.imglib2.type.numeric.integer.UnsignedShortType; |
| 18 | +import net.imglib2.type.numeric.real.DoubleType; |
| 19 | +import net.imglib2.type.numeric.real.FloatType; |
| 20 | + |
| 21 | +import org.scijava.ops.OpField; |
| 22 | +import org.scijava.ops.core.OpCollection; |
| 23 | +import org.scijava.ops.core.function.Source; |
| 24 | +import org.scijava.param.Parameter; |
| 25 | +import org.scijava.plugin.Plugin; |
| 26 | +import org.scijava.struct.ItemIO; |
| 27 | + |
| 28 | +@Plugin(type = OpCollection.class) |
| 29 | +public class CreateTypes { |
| 30 | + |
| 31 | + @OpField(names = "create, create.bit") |
| 32 | + @Parameter(key = "output", type = ItemIO.OUTPUT) |
| 33 | + public final Source<BitType> bitTypeSource = () -> new BitType(); |
| 34 | + |
| 35 | + @OpField(names = "create, create.uint2") |
| 36 | + @Parameter(key = "output", type = ItemIO.OUTPUT) |
| 37 | + public final Source<Unsigned2BitType> uint2TypeSource = () -> new Unsigned2BitType(); |
| 38 | + |
| 39 | + @OpField(names = "create, create.uint4") |
| 40 | + @Parameter(key = "output", type = ItemIO.OUTPUT) |
| 41 | + public final Source<Unsigned4BitType> uint4TypeSource = () -> new Unsigned4BitType(); |
| 42 | + |
| 43 | + @OpField(names = "create, create.byte") |
| 44 | + @Parameter(key = "output", type = ItemIO.OUTPUT) |
| 45 | + public final Source<ByteType> byteTypeSource = () -> new ByteType(); |
| 46 | + |
| 47 | + @OpField(names = "create, create.uint8") |
| 48 | + @Parameter(key = "output", type = ItemIO.OUTPUT) |
| 49 | + public final Source<UnsignedByteType> uint8TypeSource = () -> new UnsignedByteType(); |
| 50 | + |
| 51 | + @OpField(names = "create, create.uint12") |
| 52 | + @Parameter(key = "output", type = ItemIO.OUTPUT) |
| 53 | + public final Source<Unsigned12BitType> uint12TypeSource = () -> new Unsigned12BitType(); |
| 54 | + |
| 55 | + @OpField(names = "create, create.int16") |
| 56 | + @Parameter(key = "output", type = ItemIO.OUTPUT) |
| 57 | + public final Source<ShortType> shortTypeSource = () -> new ShortType(); |
| 58 | + |
| 59 | + @OpField(names = "create, create.uint16") |
| 60 | + @Parameter(key = "output", type = ItemIO.OUTPUT) |
| 61 | + public final Source<UnsignedShortType> uint16TypeSource = () -> new UnsignedShortType(); |
| 62 | + |
| 63 | + @OpField(names = "create, create.int32") |
| 64 | + @Parameter(key = "output", type = ItemIO.OUTPUT) |
| 65 | + public final Source<IntType> int32TypeSource = () -> new IntType(); |
| 66 | + |
| 67 | + @OpField(names = "create, create.uint32") |
| 68 | + @Parameter(key = "output", type = ItemIO.OUTPUT) |
| 69 | + public final Source<UnsignedIntType> uint32TypeSource = () -> new UnsignedIntType(); |
| 70 | + |
| 71 | + @OpField(names = "create, create.int64") |
| 72 | + @Parameter(key = "output", type = ItemIO.OUTPUT) |
| 73 | + public final Source<LongType> int64TypeSource = () -> new LongType(); |
| 74 | + |
| 75 | + @OpField(names = "create, create.uint64") |
| 76 | + @Parameter(key = "output", type = ItemIO.OUTPUT) |
| 77 | + public final Source<UnsignedLongType> uint64TypeSource = () -> new UnsignedLongType(); |
| 78 | + |
| 79 | + @OpField(names = "create, create.uint128") |
| 80 | + @Parameter(key = "output", type = ItemIO.OUTPUT) |
| 81 | + public final Source<Unsigned128BitType> uint128TypeSource = () -> new Unsigned128BitType(); |
| 82 | + |
| 83 | + @OpField(names = "create, create.float32") |
| 84 | + @Parameter(key = "output", type = ItemIO.OUTPUT) |
| 85 | + public final Source<FloatType> float32TypeSource = () -> new FloatType(); |
| 86 | + |
| 87 | + @OpField(names = "create, create.cfloat32") |
| 88 | + @Parameter(key = "output", type = ItemIO.OUTPUT) |
| 89 | + public final Source<ComplexFloatType> cfloat32TypeSource = () -> new ComplexFloatType(); |
| 90 | + |
| 91 | + @OpField(names = "create, create.float64") |
| 92 | + @Parameter(key = "output", type = ItemIO.OUTPUT) |
| 93 | + public final Source<DoubleType> float64TypeSource = () -> new DoubleType(); |
| 94 | + |
| 95 | + @OpField(names = "create, create.cfloat64") |
| 96 | + @Parameter(key = "output", type = ItemIO.OUTPUT) |
| 97 | + public final Source<ComplexDoubleType> cfloat64TypeSource = () -> new ComplexDoubleType(); |
| 98 | + |
| 99 | +} |
0 commit comments