Package net.imglib2.img.list
Class ListImgFactory<T>
- java.lang.Object
-
- net.imglib2.img.ImgFactory<T>
-
- net.imglib2.img.list.ListImgFactory<T>
-
- Type Parameters:
T- The value type of the pixels.
public class ListImgFactory<T> extends ImgFactory<T>
ImgFactoryforListImgof any type T. You can usTypes or arbitraryObjects. If you use non-Typepixels, note, that you cannot useType.set(Type)to change the value stored in every reference in theListImg. Instead, you can use theListCursor.set(Object)andListRandomAccess.set(Object)methods to alter the underlyingArrayList.
-
-
Constructor Summary
Constructors Constructor Description ListImgFactory()Deprecated.ListImgFactory(T type)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description ListImg<T>create(int[] dimensions)Create anImg<T>with the specifieddimensions.ListImg<T>create(long... dimensions)Create anImg<T>with the specifieddimensions.ListImg<T>create(long[] dim, T type)Deprecated.ListImg<T>create(Dimensions dimensions)Create anImg<T>with the specifieddimensions.<S> ImgFactory<S>imgFactory(S type)Creates the sameImgFactoryfor a different generic parameter if possible.-
Methods inherited from class net.imglib2.img.ImgFactory
cache, create, create, create, create, create, imgFactory, type
-
-
-
-
Constructor Detail
-
ListImgFactory
public ListImgFactory(T type)
-
ListImgFactory
@Deprecated public ListImgFactory()
Deprecated.
-
-
Method Detail
-
create
public ListImg<T> create(long... dimensions)
Description copied from class:ImgFactoryCreate anImg<T>with the specifieddimensions.- Specified by:
createin classImgFactory<T>- Returns:
- new image with the specified
dimensions.
-
create
public ListImg<T> create(Dimensions dimensions)
Description copied from class:ImgFactoryCreate anImg<T>with the specifieddimensions.- Overrides:
createin classImgFactory<T>- Returns:
- new image with the specified
dimensions.
-
create
public ListImg<T> create(int[] dimensions)
Description copied from class:ImgFactoryCreate anImg<T>with the specifieddimensions.Note: This is not a vararg function because the underlying
int[]based methods already copies theint[]dimensions into a disposablelong[]anyways. This would be an unnecessary copy forint...varargs.- Overrides:
createin classImgFactory<T>- Returns:
- new image with the specified
dimensions.
-
imgFactory
public <S> ImgFactory<S> imgFactory(S type) throws IncompatibleTypeException
Description copied from class:ImgFactoryCreates the sameImgFactoryfor a different generic parameter if possible. If the type "S" does not suit the needs of theImgFactory(for example implementNativeTypein allNativeImgFactory, this method will throw anIncompatibleTypeException.- Specified by:
imgFactoryin classImgFactory<T>- Type Parameters:
S- the new type- Parameters:
type- an instance of S- Returns:
ImgFactoryof type S- Throws:
IncompatibleTypeException- if type S is not compatible
-
-