Package net.imglib2.img.array
Class ArrayImgs
- java.lang.Object
-
- net.imglib2.img.array.ArrayImgs
-
public final class ArrayImgs extends java.lang.Object
Convenience factory methods for creation of
ArrayImg
instances with the most common pixelType
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 pixelType
s may be extended.For pixel
Type
s 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() );
- Author:
- Stephan Saalfeld, Philipp Hanslovsky
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ArrayImg<ARGBType,IntArray>
argbs(int[] array, long... dim)
static ArrayImg<ARGBType,IntArray>
argbs(long... dim)
static <A extends IntAccess>
ArrayImg<ARGBType,A>argbs(A access, long... dim)
static ArrayImg<BitType,LongArray>
bits(long... dim)
static <A extends LongAccess>
ArrayImg<BitType,A>bits(A access, long... dim)
static ArrayImg<ByteType,ByteArray>
bytes(byte[] array, long... dim)
static ArrayImg<ByteType,ByteArray>
bytes(long... dim)
static <A extends ByteAccess>
ArrayImg<ByteType,A>bytes(A access, long... dim)
static ArrayImg<ComplexDoubleType,DoubleArray>
complexDoubles(double[] array, long... dim)
static ArrayImg<ComplexDoubleType,DoubleArray>
complexDoubles(long... dim)
static <A extends DoubleAccess>
ArrayImg<ComplexDoubleType,A>complexDoubles(A access, long... dim)
static ArrayImg<ComplexFloatType,FloatArray>
complexFloats(float[] array, long... dim)
static ArrayImg<ComplexFloatType,FloatArray>
complexFloats(long... dim)
static <A extends FloatAccess>
ArrayImg<ComplexFloatType,A>complexFloats(A access, long... dim)
static ArrayImg<DoubleType,DoubleArray>
doubles(double[] array, long... dim)
static ArrayImg<DoubleType,DoubleArray>
doubles(long... dim)
static <A extends DoubleAccess>
ArrayImg<DoubleType,A>doubles(A access, long... dim)
static ArrayImg<FloatType,FloatArray>
floats(float[] array, long... dim)
static ArrayImg<FloatType,FloatArray>
floats(long... dim)
static <A extends FloatAccess>
ArrayImg<FloatType,A>floats(A access, long... dim)
static ArrayImg<IntType,IntArray>
ints(int[] array, long... dim)
static ArrayImg<IntType,IntArray>
ints(long... dim)
static <A extends IntAccess>
ArrayImg<IntType,A>ints(A access, long... dim)
static ArrayImg<LongType,LongArray>
longs(long... dim)
static ArrayImg<LongType,LongArray>
longs(long[] array, long... dim)
static <A extends LongAccess>
ArrayImg<LongType,A>longs(A access, long... dim)
static ArrayImg<ShortType,ShortArray>
shorts(long... dim)
static ArrayImg<ShortType,ShortArray>
shorts(short[] array, long... dim)
static <A extends ShortAccess>
ArrayImg<ShortType,A>shorts(A access, long... dim)
static ArrayImg<UnsignedByteType,ByteArray>
unsignedBytes(byte[] array, long... dim)
static ArrayImg<UnsignedByteType,ByteArray>
unsignedBytes(long... dim)
static <A extends ByteAccess>
ArrayImg<UnsignedByteType,A>unsignedBytes(A access, long... dim)
static ArrayImg<UnsignedIntType,IntArray>
unsignedInts(int[] array, long... dim)
static ArrayImg<UnsignedIntType,IntArray>
unsignedInts(long... dim)
static <A extends IntAccess>
ArrayImg<UnsignedIntType,A>unsignedInts(A access, long... dim)
static ArrayImg<UnsignedLongType,LongArray>
unsignedLongs(long... dim)
static <A extends LongAccess>
ArrayImg<UnsignedLongType,A>unsignedLongs(A access, long... dim)
static ArrayImg<UnsignedLongType,LongArray>
unsignedLongss(long[] array, long... dim)
static ArrayImg<UnsignedShortType,ShortArray>
unsignedShorts(long... dim)
static ArrayImg<UnsignedShortType,ShortArray>
unsignedShorts(short[] array, long... dim)
static <A extends ShortAccess>
ArrayImg<UnsignedShortType,A>unsignedShorts(A access, long... dim)
-
-
-
Method Detail
-
unsignedBytes
public static final ArrayImg<UnsignedByteType,ByteArray> unsignedBytes(long... dim)
-
unsignedBytes
public static final ArrayImg<UnsignedByteType,ByteArray> unsignedBytes(byte[] array, long... dim)
-
unsignedBytes
public static final <A extends ByteAccess> ArrayImg<UnsignedByteType,A> unsignedBytes(A access, long... dim)
-
bytes
public static final <A extends ByteAccess> ArrayImg<ByteType,A> bytes(A access, long... dim)
-
unsignedShorts
public static final ArrayImg<UnsignedShortType,ShortArray> unsignedShorts(long... dim)
-
unsignedShorts
public static final ArrayImg<UnsignedShortType,ShortArray> unsignedShorts(short[] array, long... dim)
-
unsignedShorts
public static final <A extends ShortAccess> ArrayImg<UnsignedShortType,A> unsignedShorts(A access, long... dim)
-
shorts
public static final ArrayImg<ShortType,ShortArray> shorts(long... dim)
-
shorts
public static final ArrayImg<ShortType,ShortArray> shorts(short[] array, long... dim)
-
shorts
public static final <A extends ShortAccess> ArrayImg<ShortType,A> shorts(A access, long... dim)
-
unsignedInts
public static final ArrayImg<UnsignedIntType,IntArray> unsignedInts(long... dim)
-
unsignedInts
public static final ArrayImg<UnsignedIntType,IntArray> unsignedInts(int[] array, long... dim)
-
unsignedInts
public static final <A extends IntAccess> ArrayImg<UnsignedIntType,A> unsignedInts(A access, long... dim)
-
unsignedLongs
public static final ArrayImg<UnsignedLongType,LongArray> unsignedLongs(long... dim)
-
unsignedLongss
public static final ArrayImg<UnsignedLongType,LongArray> unsignedLongss(long[] array, long... dim)
-
unsignedLongs
public static final <A extends LongAccess> ArrayImg<UnsignedLongType,A> unsignedLongs(A access, long... dim)
-
longs
public static final <A extends LongAccess> ArrayImg<LongType,A> longs(A access, long... dim)
-
bits
public static final <A extends LongAccess> ArrayImg<BitType,A> bits(A access, long... dim)
-
floats
public static final ArrayImg<FloatType,FloatArray> floats(long... dim)
-
floats
public static final ArrayImg<FloatType,FloatArray> floats(float[] array, long... dim)
-
floats
public static final <A extends FloatAccess> ArrayImg<FloatType,A> floats(A access, long... dim)
-
doubles
public static final ArrayImg<DoubleType,DoubleArray> doubles(long... dim)
-
doubles
public static final ArrayImg<DoubleType,DoubleArray> doubles(double[] array, long... dim)
-
doubles
public static final <A extends DoubleAccess> ArrayImg<DoubleType,A> doubles(A access, long... dim)
-
complexFloats
public static final ArrayImg<ComplexFloatType,FloatArray> complexFloats(long... dim)
-
complexFloats
public static final ArrayImg<ComplexFloatType,FloatArray> complexFloats(float[] array, long... dim)
-
complexFloats
public static final <A extends FloatAccess> ArrayImg<ComplexFloatType,A> complexFloats(A access, long... dim)
-
complexDoubles
public static final ArrayImg<ComplexDoubleType,DoubleArray> complexDoubles(long... dim)
-
complexDoubles
public static final ArrayImg<ComplexDoubleType,DoubleArray> complexDoubles(double[] array, long... dim)
-
complexDoubles
public static final <A extends DoubleAccess> ArrayImg<ComplexDoubleType,A> complexDoubles(A access, long... dim)
-
-