public class ImageJVirtualDisplay<T extends Type<T>>
extends ij.ImageStack
Constructor and Description |
---|
ImageJVirtualDisplay(Collection<InverseTransformDescription<T>> interpolators,
int[] dimensions,
int type,
int[] dim,
int[] dimensionPositions) |
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.
|
float[] |
extractSliceFloat(int slice) |
float[] |
extractSliceFloatSingleThreaded(int slice) |
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.
|
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.
|
Collection<InverseTransformDescription<T>> |
getTransformDescription() |
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 |
setParent(ij.ImagePlus parent) |
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, convertToFloat, create, create, crop, drawSphere, duplicate, getBitDepth, getColorModel, getHeight, getRoi, getSize, getVoxel, getVoxels, getVoxels, getWidth, isHSB32, isLab, setBitDepth, setColorModel, setProcessor, setRoi, setVoxel, setVoxels, setVoxels, size
public ImageJVirtualDisplay(Collection<InverseTransformDescription<T>> interpolators, int[] dimensions, int type, int[] dim, int[] dimensionPositions)
public void setParent(ij.ImagePlus parent)
public Collection<InverseTransformDescription<T>> getTransformDescription()
public ij.process.ImageProcessor getProcessor(int n)
getProcessor
in class ij.ImageStack
public float[] extractSliceFloat(int slice)
public float[] extractSliceFloatSingleThreaded(int slice)
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.ImageStack
public void addSlice(String sliceLabel, ij.process.ImageProcessor ip, int n)
addSlice
in class ij.ImageStack
public void deleteSlice(int n)
deleteSlice
in class ij.ImageStack
public void deleteLastSlice()
deleteLastSlice
in class ij.ImageStack
public void update(ij.process.ImageProcessor ip)
update
in class ij.ImageStack
public Object getPixels(int n)
getPixels
in class ij.ImageStack
public void setPixels(Object pixels, int n)
setPixels
in class ij.ImageStack
public Object[] getImageArray()
getImageArray
in class ij.ImageStack
public String[] getSliceLabels()
getSliceLabels
in class ij.ImageStack
public String getSliceLabel(int n)
getSliceLabel
in class ij.ImageStack
public String getShortSliceLabel(int n)
getShortSliceLabel
in class ij.ImageStack
public void setSliceLabel(String label, int n)
setSliceLabel
in class ij.ImageStack
public boolean isRGB()
isRGB
in class ij.ImageStack
public boolean isHSB()
isHSB
in class ij.ImageStack
public boolean isVirtual()
isVirtual
in class ij.ImageStack
public void trim()
trim
in class ij.ImageStack
public String toString()
toString
in class ij.ImageStack
Copyright © 2015–2021 Fiji. All rights reserved.