- java.lang.Object
-
- org.scijava.ops.image.convert.ConvertImages
-
public final class ConvertImages extends Object
Converters for converting between images of Complex types- Author:
- Gabriel Selzer
-
-
Constructor Summary
Constructors Constructor Description ConvertImages()
-
Method Summary
-
-
-
Method Detail
-
typeToBit
public static <C extends ComplexType<C>,RAIC extends RandomAccessibleInterval<C>> RandomAccessibleInterval<BitType> typeToBit(BiFunction<Dimensions,BitType,RandomAccessibleInterval<BitType>> creator, Computers.Arity1<C,BitType> converter, RAIC input)
- Parameters:
creator- aBiFunctionto create the output imageconverter- aComputers.Arity1to convert the type to aBitTypeinput- the input image- Returns:
- an output image whose values are equivalent to
inputs values but whose element types areBitTypes. - Implementation Note:
- op names='convert.bit, engine.convert', type=Function
-
typeToUnsigned2Bit
public static <C extends ComplexType<C>,RAIC extends RandomAccessibleInterval<C>> RandomAccessibleInterval<Unsigned2BitType> typeToUnsigned2Bit(BiFunction<Dimensions,Unsigned2BitType,RandomAccessibleInterval<Unsigned2BitType>> creator, Computers.Arity1<C,Unsigned2BitType> converter, RAIC input)
- Parameters:
creator- aBiFunctionto create the output imageconverter- aComputers.Arity1to convert the type to aUnsigned2BitTypeinput- the input image- Returns:
- an output image whose values are equivalent to
input's values but whose element types areUnsigned2BitTypes. - Implementation Note:
- op names='convert.uint2, engine.convert', type=Function
-
typeToUnsigned4Bit
public static <C extends ComplexType<C>,RAIC extends RandomAccessibleInterval<C>> RandomAccessibleInterval<Unsigned4BitType> typeToUnsigned4Bit(BiFunction<Dimensions,Unsigned4BitType,RandomAccessibleInterval<Unsigned4BitType>> creator, Computers.Arity1<C,Unsigned4BitType> converter, RAIC input)
- Parameters:
creator- aBiFunctionto create the output imageconverter- aComputers.Arity1to convert the type to aUnsigned4BitTypeinput- the input image- Returns:
- an output image whose values are equivalent to
input's values but whose element types areUnsigned4BitTypes. - Implementation Note:
- op names='convert.uint4, engine.convert', type=Function
-
typeToByte
public static <C extends ComplexType<C>,RAIC extends RandomAccessibleInterval<C>> RandomAccessibleInterval<ByteType> typeToByte(BiFunction<Dimensions,ByteType,RandomAccessibleInterval<ByteType>> creator, Computers.Arity1<C,ByteType> converter, RAIC input)
- Parameters:
creator- aBiFunctionto create the output imageconverter- aComputers.Arity1to convert the type to aByteTypeinput- the input image- Returns:
- an output image whose values are equivalent to
input's values but whose element types areByteTypes. - Implementation Note:
- op names='convert.int8, convert.byte, engine.convert', type=Function
-
typeToUnsignedByte
public static <C extends ComplexType<C>,RAIC extends RandomAccessibleInterval<C>> RandomAccessibleInterval<UnsignedByteType> typeToUnsignedByte(BiFunction<Dimensions,UnsignedByteType,RandomAccessibleInterval<UnsignedByteType>> creator, Computers.Arity1<C,UnsignedByteType> converter, RAIC input)
- Parameters:
creator- aBiFunctionto create the output imageconverter- aComputers.Arity1to convert the type to aUnsignedByteTypeinput- the input image- Returns:
- an output image whose values are equivalent to
input's values but whose element types areUnsignedByteTypes. - Implementation Note:
- op names='convert.uint8, engine.convert', type=Function
-
typeToUnsigned12Bit
public static <C extends ComplexType<C>,RAIC extends RandomAccessibleInterval<C>> RandomAccessibleInterval<Unsigned12BitType> typeToUnsigned12Bit(BiFunction<Dimensions,Unsigned12BitType,RandomAccessibleInterval<Unsigned12BitType>> creator, Computers.Arity1<C,Unsigned12BitType> converter, RAIC input)
- Parameters:
creator- aBiFunctionto create the output imageconverter- aComputers.Arity1to convert the type to aUnsigned12BitTypeinput- the input image- Returns:
- an output image whose values are equivalent to
input's values but whose element types areUnsigned12BitTypes. - Implementation Note:
- op names='convert.uint12, engine.convert', type=Function
-
typeToShort
public static <C extends ComplexType<C>,RAIC extends RandomAccessibleInterval<C>> RandomAccessibleInterval<ShortType> typeToShort(BiFunction<Dimensions,ShortType,RandomAccessibleInterval<ShortType>> creator, Computers.Arity1<C,ShortType> converter, RAIC input)
- Parameters:
creator- aBiFunctionto create the output imageconverter- aComputers.Arity1to convert the type to aShortTypeinput- the input image- Returns:
- an output image whose values are equivalent to
input's values but whose element types areShortTypes. - Implementation Note:
- op names='convert.int16, engine.convert', type=Function
-
typeToUnsignedShort
public static <C extends ComplexType<C>,RAIC extends RandomAccessibleInterval<C>> RandomAccessibleInterval<UnsignedShortType> typeToUnsignedShort(BiFunction<Dimensions,UnsignedShortType,RandomAccessibleInterval<UnsignedShortType>> creator, Computers.Arity1<C,UnsignedShortType> converter, RAIC input)
- Parameters:
creator- aBiFunctionto create the output imageconverter- aComputers.Arity1to convert the type to aUnsignedShortTypeinput- the input image- Returns:
- an output image whose values are equivalent to
input's values but whose element types areUnsignedShortTypes. - Implementation Note:
- op names='convert.uint16, engine.convert', type=Function
-
typeToInt
public static <C extends ComplexType<C>,RAIC extends RandomAccessibleInterval<C>> RandomAccessibleInterval<IntType> typeToInt(BiFunction<Dimensions,IntType,RandomAccessibleInterval<IntType>> creator, Computers.Arity1<C,IntType> converter, RAIC input)
- Parameters:
creator- aBiFunctionto create the output imageconverter- aComputers.Arity1to convert the type to aIntTypeinput- the input image- Returns:
- an output image whose values are equivalent to
input's values but whose element types areIntTypes. - Implementation Note:
- op names='convert.int32, engine.convert', type=Function
-
typeToUnsignedInt
public static <C extends ComplexType<C>,RAIC extends RandomAccessibleInterval<C>> RandomAccessibleInterval<UnsignedIntType> typeToUnsignedInt(BiFunction<Dimensions,UnsignedIntType,RandomAccessibleInterval<UnsignedIntType>> creator, Computers.Arity1<C,UnsignedIntType> converter, RAIC input)
- Parameters:
creator- aBiFunctionto create the output imageconverter- aComputers.Arity1to convert the type to aUnsignedIntTypeinput- the input image- Returns:
- an output image whose values are equivalent to
input's values but whose element types areUnsignedIntTypes. - Implementation Note:
- op names='convert.uint32, engine.convert', type=Function
-
typeToLong
public static <C extends ComplexType<C>,RAIC extends RandomAccessibleInterval<C>> RandomAccessibleInterval<LongType> typeToLong(BiFunction<Dimensions,LongType,RandomAccessibleInterval<LongType>> creator, Computers.Arity1<C,LongType> converter, RAIC input)
- Parameters:
creator- aBiFunctionto create the output imageconverter- aComputers.Arity1to convert the type to aLongTypeinput- the input image- Returns:
- an output image whose values are equivalent to
input's values but whose element types areLongTypes. - Implementation Note:
- op names='convert.int64, engine.convert', type=Function
-
typeToUnsignedLong
public static <C extends ComplexType<C>,RAIC extends RandomAccessibleInterval<C>> RandomAccessibleInterval<UnsignedLongType> typeToUnsignedLong(BiFunction<Dimensions,UnsignedLongType,RandomAccessibleInterval<UnsignedLongType>> creator, Computers.Arity1<C,UnsignedLongType> converter, RAIC input)
- Parameters:
creator- aBiFunctionto create the output imageconverter- aComputers.Arity1to convert the type to aUnsignedLongTypeinput- the input image- Returns:
- an output image whose values are equivalent to
input's values but whose element types areUnsignedLongTypes. - Implementation Note:
- op names='convert.uint64, engine.convert', type=Function
-
typeToUnsigned128Bit
public static <C extends ComplexType<C>,RAIC extends RandomAccessibleInterval<C>> RandomAccessibleInterval<Unsigned128BitType> typeToUnsigned128Bit(BiFunction<Dimensions,Unsigned128BitType,RandomAccessibleInterval<Unsigned128BitType>> creator, Computers.Arity1<C,Unsigned128BitType> converter, RAIC input)
- Parameters:
creator- aBiFunctionto create the output imageconverter- aComputers.Arity1to convert the type to aUnsigned128BitTypeinput- the input image- Returns:
- an output image whose values are equivalent to
input's values but whose element types areUnsigned128BitTypes. - Implementation Note:
- op names='convert.uint128, engine.convert', type=Function
-
typeToFloat32
public static <C extends ComplexType<C>,RAIC extends RandomAccessibleInterval<C>> RandomAccessibleInterval<FloatType> typeToFloat32(BiFunction<Dimensions,FloatType,RandomAccessibleInterval<FloatType>> creator, Computers.Arity1<C,FloatType> converter, RAIC input)
- Parameters:
creator- aBiFunctionto create the output imageconverter- aComputers.Arity1to convert the type to aFloatTypeinput- the input image- Returns:
- an output image whose values are equivalent to
input's values but whose element types areFloatTypes. - Implementation Note:
- op names='convert.float32, engine.convert', type=Function
-
typeToComplexFloat32
public static <C extends ComplexType<C>,RAIC extends RandomAccessibleInterval<C>> RandomAccessibleInterval<ComplexFloatType> typeToComplexFloat32(BiFunction<Dimensions,ComplexFloatType,RandomAccessibleInterval<ComplexFloatType>> creator, Computers.Arity1<C,ComplexFloatType> converter, RAIC input)
- Parameters:
creator- aBiFunctionto create the output imageconverter- aComputers.Arity1to convert the type to aComplexFloatTypeinput- the input image- Returns:
- an output image whose values are equivalent to
input's values but whose element types areComplexFloatTypes. - Implementation Note:
- op names='convert.cfloat32, engine.convert', type=Function
-
typeToDouble32
public static <C extends ComplexType<C>,RAIC extends RandomAccessibleInterval<C>> RandomAccessibleInterval<DoubleType> typeToDouble32(BiFunction<Dimensions,DoubleType,RandomAccessibleInterval<DoubleType>> creator, Computers.Arity1<C,DoubleType> converter, RAIC input)
- Parameters:
creator- aBiFunctionto create the output imageconverter- aComputers.Arity1to convert the type to aDoubleTypeinput- the input image- Returns:
- an output image whose values are equivalent to
input's values but whose element types areDoubleTypes. - Implementation Note:
- op names='convert.float64, engine.convert', type=Function
-
typeToComplexDouble32
public static <C extends ComplexType<C>,RAIC extends RandomAccessibleInterval<C>> RandomAccessibleInterval<ComplexDoubleType> typeToComplexDouble32(BiFunction<Dimensions,ComplexDoubleType,RandomAccessibleInterval<ComplexDoubleType>> creator, Computers.Arity1<C,ComplexDoubleType> converter, RAIC input)
- Parameters:
creator- aBiFunctionto create the output imageconverter- aComputers.Arity1to convert the type to aComplexDoubleTypeinput- the input image- Returns:
- an output image whose values are equivalent to
input's values but whose element types areComplexDoubleTypes. - Implementation Note:
- op names='convert.cfloat64, engine.convert', type=Function
-
-