public final class ArrayImgs extends Object
Convenience factory methods for creation of ArrayImg
instances with
the most common pixel Type
variants. The collection includes
factories to re-use existing primitive type arrays as data. This can be used
for in-place access to data from other libraries such as AWT or ImageJ. Keep
in mind that this cannot be a complete collection since the number of
existing pixel Type
s may be extended.
For pixel Type
s T not present in this collection, use the generic
ArrayImgFactory.create(long[], net.imglib2.type.NativeType)
, e.g.
img = new ArrayImgFactory< MyType >.create( new long[] { 100, 200 }, new MyType() );
public static final ArrayImg<UnsignedByteType,ByteArray> unsignedBytes(long... dim)
public static final ArrayImg<UnsignedByteType,ByteArray> unsignedBytes(byte[] array, long... dim)
public static final <A extends ByteAccess> ArrayImg<UnsignedByteType,A> unsignedBytes(A access, long... dim)
public static final <A extends ByteAccess> ArrayImg<ByteType,A> bytes(A access, long... dim)
public static final ArrayImg<UnsignedShortType,ShortArray> unsignedShorts(long... dim)
public static final ArrayImg<UnsignedShortType,ShortArray> unsignedShorts(short[] array, long... dim)
public static final <A extends ShortAccess> ArrayImg<UnsignedShortType,A> unsignedShorts(A access, long... dim)
public static final ArrayImg<ShortType,ShortArray> shorts(long... dim)
public static final ArrayImg<ShortType,ShortArray> shorts(short[] array, long... dim)
public static final <A extends ShortAccess> ArrayImg<ShortType,A> shorts(A access, long... dim)
public static final ArrayImg<UnsignedIntType,IntArray> unsignedInts(long... dim)
public static final ArrayImg<UnsignedIntType,IntArray> unsignedInts(int[] array, long... dim)
public static final <A extends IntAccess> ArrayImg<UnsignedIntType,A> unsignedInts(A access, long... dim)
public static final ArrayImg<UnsignedLongType,LongArray> unsignedLongs(long... dim)
@Deprecated public static final ArrayImg<UnsignedLongType,LongArray> unsignedLongss(long[] array, long... dim)
unsignedLongs(long[], long...)
public static final ArrayImg<UnsignedLongType,LongArray> unsignedLongs(long[] array, long... dim)
public static final <A extends LongAccess> ArrayImg<UnsignedLongType,A> unsignedLongs(A access, long... dim)
public static final <A extends LongAccess> ArrayImg<LongType,A> longs(A access, long... dim)
public static final ArrayImg<NativeBoolType,BooleanArray> booleans(long... dim)
public static final ArrayImg<NativeBoolType,BooleanArray> booleans(boolean[] array, long... dim)
public static final <A extends BooleanAccess> ArrayImg<NativeBoolType,A> booleans(A access, long... dim)
@Deprecated public static final <A extends BooleanAccess> ArrayImg<NativeBoolType,A> bits(A access, long... dim)
booleans(BooleanAccess, long...)
public static final <A extends LongAccess> ArrayImg<BitType,A> bits(A access, long... dim)
public static final ArrayImg<Unsigned2BitType,LongArray> unsigned2Bits(long... dim)
public static final <A extends LongAccess> ArrayImg<Unsigned2BitType,A> unsigned2Bits(A access, long... dim)
public static final ArrayImg<Unsigned4BitType,LongArray> unsigned4Bits(long... dim)
public static final <A extends LongAccess> ArrayImg<Unsigned4BitType,A> unsigned4Bits(A access, long... dim)
public static final ArrayImg<Unsigned12BitType,LongArray> unsigned12Bits(long... dim)
public static final <A extends LongAccess> ArrayImg<Unsigned12BitType,A> unsigned12Bits(A access, long... dim)
public static final ArrayImg<Unsigned128BitType,LongArray> unsigned128Bits(long... dim)
public static final <A extends LongAccess> ArrayImg<Unsigned128BitType,A> unsigned128Bits(A access, long... dim)
public static final ArrayImg<UnsignedVariableBitLengthType,LongArray> unsignedVariableBitLengths(int nbits, long... dim)
public static final <A extends LongAccess> ArrayImg<UnsignedVariableBitLengthType,A> unsignedVariableBitLengths(A access, int nbits, long... dim)
ArrayImg
<UnsignedVariableBitLengthType
, LongAccess
>
using a LongAccess
passed as argument.public static final ArrayImg<FloatType,FloatArray> floats(long... dim)
public static final ArrayImg<FloatType,FloatArray> floats(float[] array, long... dim)
public static final <A extends FloatAccess> ArrayImg<FloatType,A> floats(A access, long... dim)
public static final ArrayImg<DoubleType,DoubleArray> doubles(long... dim)
public static final ArrayImg<DoubleType,DoubleArray> doubles(double[] array, long... dim)
public static final <A extends DoubleAccess> ArrayImg<DoubleType,A> doubles(A access, long... dim)
public static final ArrayImg<ComplexFloatType,FloatArray> complexFloats(long... dim)
public static final ArrayImg<ComplexFloatType,FloatArray> complexFloats(float[] array, long... dim)
public static final <A extends FloatAccess> ArrayImg<ComplexFloatType,A> complexFloats(A access, long... dim)
public static final ArrayImg<ComplexDoubleType,DoubleArray> complexDoubles(long... dim)
public static final ArrayImg<ComplexDoubleType,DoubleArray> complexDoubles(double[] array, long... dim)
public static final <A extends DoubleAccess> ArrayImg<ComplexDoubleType,A> complexDoubles(A access, long... dim)
Copyright © 2015–2022 ImgLib2. All rights reserved.