public class LayerStack
extends ij.ImageStack
| Constructor and Description |
|---|
LayerStack(LayerSet layer_set,
double scale,
int type,
Class<?> clazz,
int c_alphas) |
LayerStack(LayerSet layer_set,
double scale,
int type,
Class<?> clazz,
int c_alphas,
boolean invert) |
LayerStack(List<Layer> layers,
Rectangle roi,
double scale,
int type,
Class<?> clazz,
int c_alphas,
boolean invert)
If
scale <=0 || scale > 1, throws IllegalArgumentException. |
| Modifier and Type | Method and Description |
|---|---|
void |
addSlice(String sliceLabel,
ij.process.ImageProcessor ip)
Does nothing.
|
void |
addSlice(String sliceLabel,
ij.process.ImageProcessor ip,
int n)
Does nothing.
|
void |
addSlice(String sliceLabel,
Object pixels)
Does nothing.
|
void |
deleteLastSlice()
Does nothing.
|
void |
deleteSlice(int n)
Does nothing.
|
Object[] |
getImageArray()
Returns a linear array for each slice, real (not virtual)!
|
ij.ImagePlus |
getImagePlus() |
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. |
int |
getSize()
Returns the number of slices in this stack.
|
String |
getSliceLabel(int n)
Returns the file name of the Nth image.
|
int |
getType() |
boolean |
isHSB()
Override: always false.
|
boolean |
isRGB()
Override: always false.
|
boolean |
isVirtual()
Always return true.
|
void |
setPixels(Object pixels,
int n)
Does nothing.
|
void |
setSliceLabel(String label,
int n)
Does nothing.
|
void |
trim()
Does nothing.
|
addSlice, addUnsignedShortSlice, convertToFloat, create, create, crop, drawSphere, duplicate, getBitDepth, getColorModel, getHeight, getRoi, getShortSliceLabel, getSliceLabels, getVoxel, getVoxels, getVoxels, getWidth, isHSB32, isLab, setBitDepth, setColorModel, setProcessor, setRoi, setVoxel, setVoxels, setVoxels, size, toString, updatepublic LayerStack(LayerSet layer_set, double scale, int type, Class<?> clazz, int c_alphas, boolean invert)
public LayerStack(List<Layer> layers, Rectangle roi, double scale, int type, Class<?> clazz, int c_alphas, boolean invert)
scale <=0 || scale > 1, throws IllegalArgumentException.public void addSlice(String sliceLabel, Object pixels)
addSlice in class ij.ImageStackpublic void addSlice(String sliceLabel, ij.process.ImageProcessor ip)
addSlice in class ij.ImageStackpublic void addSlice(String sliceLabel, ij.process.ImageProcessor ip, int n)
addSlice in class ij.ImageStackpublic void deleteSlice(int n)
deleteSlice in class ij.ImageStackpublic void deleteLastSlice()
deleteLastSlice in class ij.ImageStackpublic Object getPixels(int n)
1<=n<=nslices. The scale of the returned flat image for the Layer at index 'n-1' will be defined by the LayerSet virtualization options.getPixels in class ij.ImageStackpublic void setPixels(Object pixels, int n)
setPixels in class ij.ImageStackpublic ij.process.ImageProcessor getProcessor(int n)
1<=n<=nslices. Returns null if the stack is empty.getProcessor in class ij.ImageStackpublic int getSize()
getSize in class ij.ImageStackpublic String getSliceLabel(int n)
getSliceLabel in class ij.ImageStackpublic Object[] getImageArray()
getImageArray in class ij.ImageStackpublic void setSliceLabel(String label, int n)
setSliceLabel in class ij.ImageStackpublic boolean isVirtual()
isVirtual in class ij.ImageStackpublic boolean isHSB()
isHSB in class ij.ImageStackpublic boolean isRGB()
isRGB in class ij.ImageStackpublic void trim()
trim in class ij.ImageStackpublic int getType()
public ij.ImagePlus getImagePlus()
Copyright © 2015–2021 Fiji. All rights reserved.