ij.process
Class StackProcessor
java.lang.Object
ij.process.StackProcessor
public class StackProcessor
- extends java.lang.Object
This class processes stacks.
Method Summary |
void |
applyTable(int[] table)
|
void |
copyBits(ImageProcessor src,
int xloc,
int yloc,
int mode)
|
void |
copyBits(ImageStack src,
int xloc,
int yloc,
int mode)
|
ImageStack |
crop(int x,
int y,
int width,
int height)
Crops the stack to the specified rectangle. |
void |
flipHorizontal()
|
void |
flipVertical()
|
void |
invert()
|
(package private) void |
process(int command)
|
ImageStack |
resize(int newWidth,
int newHeight)
Creates a new stack with dimensions 'newWidth' x 'newHeight'. |
(package private) ImageStack |
rotate90Degrees(boolean clockwise)
|
ImageStack |
rotateLeft()
|
ImageStack |
rotateRight()
|
void |
scale(double xScale,
double yScale)
|
void |
scale(double xScale,
double yScale,
double fillValue)
|
(package private) void |
showStatus(java.lang.String s,
int n,
int total)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
nSlices
int nSlices
xScale
double xScale
yScale
double yScale
table
int[] table
fillValue
double fillValue
FLIPH
static final int FLIPH
- See Also:
- Constant Field Values
FLIPV
static final int FLIPV
- See Also:
- Constant Field Values
SCALE
static final int SCALE
- See Also:
- Constant Field Values
INVERT
static final int INVERT
- See Also:
- Constant Field Values
APPLY_TABLE
static final int APPLY_TABLE
- See Also:
- Constant Field Values
SCALE_WITH_FILL
static final int SCALE_WITH_FILL
- See Also:
- Constant Field Values
StackProcessor
public StackProcessor(ImageStack stack,
ImageProcessor ip)
- Constructs a StackProcessor from a stack. 'ip' is the
processor that will be used to process the slices.
'ip' can be null when using crop().
process
void process(int command)
invert
public void invert()
flipHorizontal
public void flipHorizontal()
flipVertical
public void flipVertical()
applyTable
public void applyTable(int[] table)
scale
public void scale(double xScale,
double yScale)
scale
public void scale(double xScale,
double yScale,
double fillValue)
resize
public ImageStack resize(int newWidth,
int newHeight)
- Creates a new stack with dimensions 'newWidth' x 'newHeight'.
To reduce memory requirements, the orginal stack is deleted
as the new stack is created.
crop
public ImageStack crop(int x,
int y,
int width,
int height)
- Crops the stack to the specified rectangle.
rotate90Degrees
ImageStack rotate90Degrees(boolean clockwise)
rotateRight
public ImageStack rotateRight()
rotateLeft
public ImageStack rotateLeft()
copyBits
public void copyBits(ImageProcessor src,
int xloc,
int yloc,
int mode)
copyBits
public void copyBits(ImageStack src,
int xloc,
int yloc,
int mode)
showStatus
void showStatus(java.lang.String s,
int n,
int total)