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, translate
public 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.VirtualStack
public 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.ImageStack
public void addSlice(String sliceLabel, ij.process.ImageProcessor ip)
addSlice
in class ij.VirtualStack
public void addSlice(String sliceLabel, ij.process.ImageProcessor ip, int n)
addSlice
in class ij.VirtualStack
public void deleteSlice(int n)
deleteSlice
in class ij.VirtualStack
public void deleteLastSlice()
deleteLastSlice
in class ij.VirtualStack
public void update(ij.process.ImageProcessor ip)
update
in class ij.ImageStack
public Object getPixels(int n)
getPixels
in class ij.VirtualStack
public void setPixels(Object pixels, int n)
setPixels
in class ij.VirtualStack
public Object[] getImageArray()
getImageArray
in class ij.VirtualStack
public String[] getSliceLabels()
getSliceLabels
in class ij.ImageStack
public String getSliceLabel(int n)
getSliceLabel
in class ij.VirtualStack
public String getShortSliceLabel(int n)
getShortSliceLabel
in class ij.ImageStack
public void setSliceLabel(String label, int n)
setSliceLabel
in class ij.VirtualStack
public boolean isRGB()
isRGB
in class ij.ImageStack
public boolean isHSB()
isHSB
in class ij.ImageStack
public boolean isVirtual()
isVirtual
in class ij.VirtualStack
public void trim()
trim
in class ij.VirtualStack
public String toString()
toString
in class ij.ImageStack
public int getSize()
getSize
in class ij.VirtualStack
public void setBitDepth(int bitDepth)
setBitDepth
in class ij.VirtualStack
public int getBitDepth()
getBitDepth
in class ij.VirtualStack
public String getDirectory()
getDirectory
in class ij.VirtualStack
public String getFileName(int n)
getFileName
in class ij.VirtualStack
Copyright © 2015–2021 Fiji. All rights reserved.