public class StackProcessor
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
FILTER_MAX |
static int |
FILTER_MAXLOCAL |
static int |
FILTER_MEAN |
static int |
FILTER_MEDIAN |
static int |
FILTER_MIN |
static int |
FILTER_VAR |
Constructor and Description |
---|
StackProcessor(ImageStack stack)
Constructs a StackProcessor from a stack.
|
StackProcessor(ImageStack stack,
ImageProcessor ip)
Constructs a StackProcessor from a stack.
|
Modifier and Type | Method and Description |
---|---|
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 |
filter3D(ImageStack out,
float radx,
float rady,
float radz,
int zmin,
int zmax,
int filter)
3D filter using threads
|
void |
flipHorizontal() |
void |
flipVertical() |
void |
invert() |
ImageStack |
resize(int newWidth,
int newHeight)
Creates a new stack with dimensions 'newWidth' x 'newHeight'.
|
ImageStack |
resize(int newWidth,
int newHeight,
boolean averageWhenDownsizing) |
ImageStack |
rotateLeft() |
ImageStack |
rotateRight() |
void |
scale(double xScale,
double yScale) |
void |
scale(double xScale,
double yScale,
double fillValue) |
public static final int FILTER_MEAN
public static final int FILTER_MEDIAN
public static final int FILTER_MIN
public static final int FILTER_MAX
public static final int FILTER_VAR
public static final int FILTER_MAXLOCAL
public StackProcessor(ImageStack stack)
public StackProcessor(ImageStack stack, ImageProcessor ip)
public void invert()
public void flipHorizontal()
public void flipVertical()
public void applyTable(int[] table)
public void scale(double xScale, double yScale)
public void scale(double xScale, double yScale, double fillValue)
public ImageStack resize(int newWidth, int newHeight)
public ImageStack resize(int newWidth, int newHeight, boolean averageWhenDownsizing)
public ImageStack crop(int x, int y, int width, int height)
public ImageStack rotateRight()
public ImageStack rotateLeft()
public void copyBits(ImageProcessor src, int xloc, int yloc, int mode)
public void copyBits(ImageStack src, int xloc, int yloc, int mode)
public void filter3D(ImageStack out, float radx, float rady, float radz, int zmin, int zmax, int filter)
out
- radx
- Radius of mean filter in xrady
- Radius of mean filter in yradz
- Radius of mean filter in zzmin
- zmax
- filter
-