Class ArrayImgs

java.lang.Object
net.imglib2.img.array.ArrayImgs

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 Types may be extended.

For pixel Types 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() );
 
Author:
Stephan Saalfeld, Philipp Hanslovsky