public class ImagePlusImg<T extends NativeType<T>,A extends ArrayDataAccess<A>> extends PlanarImg<T,A>
byte,
short, int, float), an actual ImagePlus is
created or used to store the data. Alternatively, an ImagePlusImg can
be created using an already existing ImagePlus instance.
ImagePlusImg provides a legacy layer to apply ImgLib-based algorithm
implementations directly on the data stored in an ImageJ ImagePlus.
For all types that are supported by ImageJ, the ImagePlusImg provides
access to the pixels of an ImagePlus instance that can be accessed
via getImagePlus().
PlanarImg.PlanarContainerSampler| Modifier and Type | Field and Description |
|---|---|
protected int |
channels |
protected int |
depth |
protected int |
frames |
protected int |
height |
protected int |
width |
dimensions, mirror, numSlices, sliceStepsentitiesPerPixel, linkedType, numEntitiesdimension, max, n, numPixels| Modifier | Constructor and Description |
|---|---|
protected |
ImagePlusImg(ij.ImagePlus imp) |
protected |
ImagePlusImg(int width,
int height,
int depth,
int frames,
int channels,
Fraction entitiesPerPixel) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Free resources.
|
ImagePlusImgFactory<T> |
factory()
Get a
ImgFactory that creates Imgs of the same kind as
this one. |
int |
getChannels() |
int |
getDepth() |
int |
getFrames() |
int |
getHeight() |
ij.ImagePlus |
getImagePlus() |
int |
getWidth() |
protected int |
numEntities(Fraction entities) |
protected static long[] |
reduceDimensions(ij.ImagePlus imp)
Compute the minimal required number of dimensions for a given
ImagePlus, whereas width and height are always first. |
protected static long[] |
reduceDimensions(long[] impDimensions) |
copy, cursor, cursor, getIndex, getPlane, indexToGlobalPosition, indexToGlobalPosition, iterationOrder, localizingCursor, localizingCursor, numberOfSlices, numSlices, randomAccess, setPlane, subIntervalIterationOrder, supportsOptimizedCursor, updatecreateLinkedType, setLinkedTypedimension, dimensions, firstElement, iterator, max, max, max, min, min, min, numDimensions, numElements, randomAccess, realMax, realMax, realMax, realMin, realMin, realMin, size, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetAt, getAt, getAt, randomAccessfirstElement, sizeforEach, iterator, spliteratordimension, max, max, max, maxAsLongArray, maxAsPoint, min, min, min, minAsLongArray, minAsPoint, realMax, realMinmaxAsDoubleArray, maxAsRealPoint, minAsDoubleArray, minAsRealPoint, realMax, realMax, realMin, realMinallPositive, allPositive, dimensions, dimensions, dimensionsAsLongArray, dimensionsAsPoint, verify, verify, verifyAllPositive, verifyAllPositivenumDimensionsprotected final int width
protected final int height
protected final int depth
protected final int frames
protected final int channels
protected ImagePlusImg(ij.ImagePlus imp)
protected ImagePlusImg(int width,
int height,
int depth,
int frames,
int channels,
Fraction entitiesPerPixel)
public ij.ImagePlus getImagePlus()
throws ImgLibException
ImgLibExceptionprotected static long[] 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].protected static long[] reduceDimensions(long[] impDimensions)
public int getWidth()
public int getHeight()
public int getChannels()
public int getDepth()
public int getFrames()
public ImagePlusImgFactory<T> factory()
ImgImgFactory that creates Imgs of the same kind as
this one.
This is useful to create Imgs for temporary storage in generic methods
where the specific Img type is unknown. Note, that the factory can be
used even if all references to this Img have been invalidated.factory in interface Img<T extends NativeType<T>>factory in class PlanarImg<T extends NativeType<T>,A extends ArrayDataAccess<A>>public void close()
ImagePlus.protected int numEntities(Fraction entities)
Copyright © 2015–2022 ImgLib2. All rights reserved.