Package net.imglib2.img.array
Class ArrayImgs
- java.lang.Object
-
- net.imglib2.img.array.ArrayImgs
-
public final class ArrayImgs extends java.lang.ObjectConvenience factory methods for creation of
ArrayImginstances with the most common pixelTypevariants. 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 pixelTypes may be extended.For pixel
Types T not present in this collection, use the genericArrayImgFactory.create(long[], net.imglib2.type.NativeType), e.g.img = new ArrayImgFactory< MyType >.create( new long[] { 100, 200 }, new MyType() );
-
-
Constructor Summary
Constructors Modifier Constructor Description privateArrayImgs()
-
Method Summary
-
-
-
Method Detail
-
unsignedBytes
public static ArrayImg<UnsignedByteType,ByteArray> unsignedBytes(long... dim)
-
unsignedBytes
public static ArrayImg<UnsignedByteType,ByteArray> unsignedBytes(byte[] array, long... dim)
-
unsignedBytes
public static <A extends ByteAccess> ArrayImg<UnsignedByteType,A> unsignedBytes(A access, long... dim)
-
bytes
public static <A extends ByteAccess> ArrayImg<ByteType,A> bytes(A access, long... dim)
-
unsignedShorts
public static ArrayImg<UnsignedShortType,ShortArray> unsignedShorts(long... dim)
-
unsignedShorts
public static ArrayImg<UnsignedShortType,ShortArray> unsignedShorts(short[] array, long... dim)
-
unsignedShorts
public static <A extends ShortAccess> ArrayImg<UnsignedShortType,A> unsignedShorts(A access, long... dim)
-
shorts
public static ArrayImg<ShortType,ShortArray> shorts(long... dim)
-
shorts
public static ArrayImg<ShortType,ShortArray> shorts(short[] array, long... dim)
-
shorts
public static <A extends ShortAccess> ArrayImg<ShortType,A> shorts(A access, long... dim)
-
unsignedInts
public static ArrayImg<UnsignedIntType,IntArray> unsignedInts(long... dim)
-
unsignedInts
public static ArrayImg<UnsignedIntType,IntArray> unsignedInts(int[] array, long... dim)
-
unsignedInts
public static <A extends IntAccess> ArrayImg<UnsignedIntType,A> unsignedInts(A access, long... dim)
-
unsignedLongs
public static ArrayImg<UnsignedLongType,LongArray> unsignedLongs(long... dim)
-
unsignedLongss
@Deprecated public static ArrayImg<UnsignedLongType,LongArray> unsignedLongss(long[] array, long... dim)
Deprecated.
-
unsignedLongs
public static ArrayImg<UnsignedLongType,LongArray> unsignedLongs(long[] array, long... dim)
-
unsignedLongs
public static <A extends LongAccess> ArrayImg<UnsignedLongType,A> unsignedLongs(A access, long... dim)
-
longs
public static <A extends LongAccess> ArrayImg<LongType,A> longs(A access, long... dim)
-
booleans
public static ArrayImg<NativeBoolType,BooleanArray> booleans(long... dim)
-
booleans
public static ArrayImg<NativeBoolType,BooleanArray> booleans(boolean[] array, long... dim)
-
booleans
public static <A extends BooleanAccess> ArrayImg<NativeBoolType,A> booleans(A access, long... dim)
-
bits
@Deprecated public static <A extends BooleanAccess> ArrayImg<NativeBoolType,A> bits(A access, long... dim)
Deprecated.
-
bits
public static <A extends LongAccess> ArrayImg<BitType,A> bits(A access, long... dim)
-
unsigned2Bits
public static ArrayImg<Unsigned2BitType,LongArray> unsigned2Bits(long... dim)
-
unsigned2Bits
public static <A extends LongAccess> ArrayImg<Unsigned2BitType,A> unsigned2Bits(A access, long... dim)
-
unsigned4Bits
public static ArrayImg<Unsigned4BitType,LongArray> unsigned4Bits(long... dim)
-
unsigned4Bits
public static <A extends LongAccess> ArrayImg<Unsigned4BitType,A> unsigned4Bits(A access, long... dim)
-
unsigned12Bits
public static ArrayImg<Unsigned12BitType,LongArray> unsigned12Bits(long... dim)
-
unsigned12Bits
public static <A extends LongAccess> ArrayImg<Unsigned12BitType,A> unsigned12Bits(A access, long... dim)
-
unsigned128Bits
public static ArrayImg<Unsigned128BitType,LongArray> unsigned128Bits(long... dim)
-
unsigned128Bits
public static <A extends LongAccess> ArrayImg<Unsigned128BitType,A> unsigned128Bits(A access, long... dim)
-
unsignedVariableBitLengths
public static ArrayImg<UnsignedVariableBitLengthType,LongArray> unsignedVariableBitLengths(int nbits, long... dim)
-
unsignedVariableBitLengths
public static <A extends LongAccess> ArrayImg<UnsignedVariableBitLengthType,A> unsignedVariableBitLengths(A access, int nbits, long... dim)
Creates anArrayImg<UnsignedVariableBitLengthType,LongAccess> using aLongAccesspassed as argument.
-
floats
public static ArrayImg<FloatType,FloatArray> floats(long... dim)
-
floats
public static ArrayImg<FloatType,FloatArray> floats(float[] array, long... dim)
-
floats
public static <A extends FloatAccess> ArrayImg<FloatType,A> floats(A access, long... dim)
-
doubles
public static ArrayImg<DoubleType,DoubleArray> doubles(long... dim)
-
doubles
public static ArrayImg<DoubleType,DoubleArray> doubles(double[] array, long... dim)
-
doubles
public static <A extends DoubleAccess> ArrayImg<DoubleType,A> doubles(A access, long... dim)
-
complexFloats
public static ArrayImg<ComplexFloatType,FloatArray> complexFloats(long... dim)
-
complexFloats
public static ArrayImg<ComplexFloatType,FloatArray> complexFloats(float[] array, long... dim)
-
complexFloats
public static <A extends FloatAccess> ArrayImg<ComplexFloatType,A> complexFloats(A access, long... dim)
-
complexDoubles
public static ArrayImg<ComplexDoubleType,DoubleArray> complexDoubles(long... dim)
-
complexDoubles
public static ArrayImg<ComplexDoubleType,DoubleArray> complexDoubles(double[] array, long... dim)
-
complexDoubles
public static <A extends DoubleAccess> ArrayImg<ComplexDoubleType,A> complexDoubles(A access, long... dim)
-
-