public class ImagePlusContainer<T extends Type<T>,A extends ArrayDataAccess<A>> extends PlanarContainer<T,A>
Container
that stores data in an aray of 2d-slices each as a
linear array of basic types. For types that are supported by ImageJ (byte,
short, int, float), an actual ImagePlus is created or used to store the
data. Alternatively, an ImagePlusContainer
can be created using
an already existing ImagePlus
instance.
ImagePlusContainers
provides a legacy layer to
apply imglib-based algorithm implementations directly on the data stored in
an ImageJ ImagePlus
. For all types that are suported by ImageJ, the
ImagePlusContainer
provides access to the pixels of an
ImagePlus
instance that can be accessed (getImagePlus()
.
Johannes SchindelinModifier and Type | Field and Description |
---|---|
protected int |
channels |
protected int |
depth |
protected ImagePlusContainerFactory |
factory |
protected int |
frames |
protected int |
height |
protected int |
width |
mirror, slices
linkedType
entitiesPerPixel, numEntities
dim, id, numDimensions, numPixels
Modifier | Constructor and Description |
---|---|
protected |
ImagePlusContainer(ImagePlusContainerFactory factory,
int width,
int height,
int depth,
int frames,
int channels,
int entitiesPerPixel) |
Modifier and Type | Method and Description |
---|---|
ImagePlusCursor<T> |
createCursor(Image<T> image) |
ImagePlusLocalizableByDimCursor<T> |
createLocalizableByDimCursor(Image<T> image) |
ImagePlusLocalizableByDimOutOfBoundsCursor<T> |
createLocalizableByDimCursor(Image<T> image,
OutOfBoundsStrategyFactory<T> outOfBoundsFactory) |
ImagePlusLocalizableCursor<T> |
createLocalizableCursor(Image<T> image) |
ImagePlusLocalizablePlaneCursor<T> |
createLocalizablePlaneCursor(Image<T> image) |
int |
getChannels() |
int |
getDepth() |
ImagePlusContainerFactory |
getFactory() |
int |
getFrames() |
int |
getHeight() |
ij.ImagePlus |
getImagePlus() |
int |
getWidth() |
protected static int[] |
reduceDimensions(ij.ImagePlus imp)
Estimate the minimal required number of dimensions for a given
ImagePlus , whereas width and height are always first. |
protected static int[] |
reduceDimensions(int[] impDimensions) |
close, compareStorageContainerCompatibility, getIndex, getPlane, getSlices, setPlane, update
setLinkedType
getNumEntities, getNumEntities, getNumEntitiesPerPixel
compareStorageContainerDimensions, getDimension, getDimensions, getDimensions, getId, getNumDimensions, getNumPixels, getNumPixels, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getNumEntities, getNumEntitiesPerPixel
compareStorageContainerDimensions, getDimension, getDimensions, getDimensions, getId, getNumDimensions, getNumPixels
protected final ImagePlusContainerFactory factory
protected final int width
protected final int height
protected final int depth
protected final int frames
protected final int channels
protected ImagePlusContainer(ImagePlusContainerFactory factory, int width, int height, int depth, int frames, int channels, int entitiesPerPixel)
public ij.ImagePlus getImagePlus() throws ImgLibException
ImgLibException
protected static int[] reduceDimensions(ij.ImagePlus imp)
ImagePlus
, whereas width and height are always first.
E.g. a gray-scale 2d time series would have three dimensions
[width,height,frames], a gray-scale 3d stack [width,height,depth] and a
2d composite image [width,height,channels] as well. A composite 3d
stack has four dimensions [width,height,channels,depth], as a time
series five [width,height,channels,depth,frames].imp
- protected static int[] reduceDimensions(int[] impDimensions)
public int getWidth()
public int getHeight()
public int getChannels()
public int getDepth()
public int getFrames()
public ImagePlusCursor<T> createCursor(Image<T> image)
createCursor
in interface Container<T extends Type<T>>
createCursor
in class PlanarContainer<T extends Type<T>,A extends ArrayDataAccess<A>>
public ImagePlusLocalizableCursor<T> createLocalizableCursor(Image<T> image)
createLocalizableCursor
in interface Container<T extends Type<T>>
createLocalizableCursor
in class PlanarContainer<T extends Type<T>,A extends ArrayDataAccess<A>>
public ImagePlusLocalizablePlaneCursor<T> createLocalizablePlaneCursor(Image<T> image)
createLocalizablePlaneCursor
in interface Container<T extends Type<T>>
createLocalizablePlaneCursor
in class PlanarContainer<T extends Type<T>,A extends ArrayDataAccess<A>>
public ImagePlusLocalizableByDimCursor<T> createLocalizableByDimCursor(Image<T> image)
createLocalizableByDimCursor
in interface Container<T extends Type<T>>
createLocalizableByDimCursor
in class PlanarContainer<T extends Type<T>,A extends ArrayDataAccess<A>>
public ImagePlusLocalizableByDimOutOfBoundsCursor<T> createLocalizableByDimCursor(Image<T> image, OutOfBoundsStrategyFactory<T> outOfBoundsFactory)
createLocalizableByDimCursor
in interface Container<T extends Type<T>>
createLocalizableByDimCursor
in class PlanarContainer<T extends Type<T>,A extends ArrayDataAccess<A>>
public ImagePlusContainerFactory getFactory()
getFactory
in interface Container<T extends Type<T>>
getFactory
in class PlanarContainer<T extends Type<T>,A extends ArrayDataAccess<A>>
Copyright © 2015–2021 Fiji. All rights reserved.