public class ImageJVirtualStack<T extends Type<T>>
extends ij.VirtualStack
| Constructor and Description |
|---|
ImageJVirtualStack(Image<T> img,
int[] dim,
int[] dimensionPositions)
Constructs a virtual stack of type ImageJFunctions.GRAY32 of up to 3 arbitrary dimensions
Image
|
ImageJVirtualStack(Image<T> img,
int type,
int[] dim,
int[] dimensionPositions)
Constructs a virtual stack of up to 3 arbitrary dimensions
Image
|
| Modifier and Type | Method and Description |
|---|---|
void |
addSlice(String sliceLabel,
ij.process.ImageProcessor ip)
Adds the image in 'ip' to the end of the stack.
|
void |
addSlice(String sliceLabel,
ij.process.ImageProcessor ip,
int n)
Adds the image in 'ip' to the stack following slice 'n'.
|
void |
addUnsignedShortSlice(String sliceLabel,
Object pixels)
Obsolete.
|
void |
deleteLastSlice()
Deletes the last slice in the stack.
|
void |
deleteSlice(int n)
Deletes the specified slice, where 1<=n<=nslices.
|
static <T extends Type<T>> |
extractSliceByte(Image<T> img,
Display<T> display,
int dimX,
int dimY,
int[] dimensionPositions) |
static <T extends Type<T>> |
extractSliceFloat(Image<T> img,
Display<T> display,
int dimX,
int dimY,
int[] dimensionPositions) |
static <T extends Type<T>> |
extractSliceRGB(Image<T> img,
Display<T> display,
int dimX,
int dimY,
int[] dimensionPositions) |
int |
getBitDepth() |
String |
getDirectory() |
String |
getFileName(int n) |
Object[] |
getImageArray()
Returns the stack as an array of 1D pixel arrays.
|
Object |
getPixels(int n)
Returns the pixel array for the specified slice, where 1<=n<=nslices.
|
ij.process.ImageProcessor |
getProcessor(int n)
Returns an ImageProcessor for the specified slice,
where 1<=n<=nslices.
|
String |
getShortSliceLabel(int n)
Returns a shortened version (up to the first 60 characters or first newline and
suffix removed) of the label of the specified slice.
|
int |
getSize() |
String |
getSliceLabel(int n)
Returns the label of the specified slice, where 1<=n<=nslices.
|
String[] |
getSliceLabels()
Returns the slice labels as an array of Strings.
|
boolean |
isHSB()
Returns true if this is a 3-slice HSB stack.
|
boolean |
isRGB()
Returns true if this is a 3-slice RGB stack.
|
boolean |
isVirtual()
Returns true if this is a virtual (disk resident) stack.
|
void |
setBitDepth(int bitDepth) |
void |
setPixels(Object pixels,
int n)
Assigns a pixel array to the specified slice,
where 1<=n<=nslices.
|
void |
setSliceLabel(String label,
int n)
Sets the label of the specified slice, where 1<=n<=nslices.
|
String |
toString() |
void |
trim()
Frees memory by deleting a few slices from the end of the stack.
|
void |
update(ij.process.ImageProcessor ip)
Updates this stack so its attributes, such as min, max,
calibration table and color model, are the same as 'ip'.
|
addSlice, addSlice, getProperties, saveChanges, setIndexes, size, sortDicom, translatepublic ImageJVirtualStack(Image<T> img, int type, int[] dim, int[] dimensionPositions)
public ImageJVirtualStack(Image<T> img, int[] dim, int[] dimensionPositions)
public ij.process.ImageProcessor getProcessor(int n)
getProcessor in class ij.VirtualStackpublic static <T extends Type<T>> float[] extractSliceFloat(Image<T> img, Display<T> display, int dimX, int dimY, int[] dimensionPositions)
public static <T extends Type<T>> int[] extractSliceRGB(Image<T> img, Display<T> display, int dimX, int dimY, int[] dimensionPositions)
public static <T extends Type<T>> byte[] extractSliceByte(Image<T> img, Display<T> display, int dimX, int dimY, int[] dimensionPositions)
public void addUnsignedShortSlice(String sliceLabel, Object pixels)
addUnsignedShortSlice in class ij.ImageStackpublic void addSlice(String sliceLabel, ij.process.ImageProcessor ip)
addSlice in class ij.VirtualStackpublic void addSlice(String sliceLabel, ij.process.ImageProcessor ip, int n)
addSlice in class ij.VirtualStackpublic void deleteSlice(int n)
deleteSlice in class ij.VirtualStackpublic void deleteLastSlice()
deleteLastSlice in class ij.VirtualStackpublic void update(ij.process.ImageProcessor ip)
update in class ij.ImageStackpublic Object getPixels(int n)
getPixels in class ij.VirtualStackpublic void setPixels(Object pixels, int n)
setPixels in class ij.VirtualStackpublic Object[] getImageArray()
getImageArray in class ij.VirtualStackpublic String[] getSliceLabels()
getSliceLabels in class ij.ImageStackpublic String getSliceLabel(int n)
getSliceLabel in class ij.VirtualStackpublic String getShortSliceLabel(int n)
getShortSliceLabel in class ij.ImageStackpublic void setSliceLabel(String label, int n)
setSliceLabel in class ij.VirtualStackpublic boolean isRGB()
isRGB in class ij.ImageStackpublic boolean isHSB()
isHSB in class ij.ImageStackpublic boolean isVirtual()
isVirtual in class ij.VirtualStackpublic void trim()
trim in class ij.VirtualStackpublic String toString()
toString in class ij.ImageStackpublic int getSize()
getSize in class ij.VirtualStackpublic void setBitDepth(int bitDepth)
setBitDepth in class ij.VirtualStackpublic int getBitDepth()
getBitDepth in class ij.VirtualStackpublic String getDirectory()
getDirectory in class ij.VirtualStackpublic String getFileName(int n)
getFileName in class ij.VirtualStackCopyright © 2015–2021 Fiji. All rights reserved.