public class Wand
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
EIGHT_CONNECTED
Wand operation type: trace outline of 8-connected pixels
|
static int |
FOUR_CONNECTED
Wand operation type: trace outline of 4-connected pixels
|
static int |
LEGACY_MODE
Wand operation type similar to that of ImageJ 1.42p and before; for backwards
compatibility.
|
int |
npoints
The number of points in the generated outline.
|
int[] |
xpoints
The x-coordinates of the points in the outline.
|
int[] |
ypoints
The y-coordinates of the points in the outline.
|
Constructor and Description |
---|
Wand(ImageProcessor ip)
Constructs a Wand object from an ImageProcessor.
|
Modifier and Type | Method and Description |
---|---|
static boolean |
allPoints() |
void |
autoOutline(int startX,
int startY)
Traces the boundary of an area of uniform color, where
'startX' and 'startY' are somewhere inside the area.
|
void |
autoOutline(int startX,
int startY,
double lower,
double upper)
Traces an object defined by lower and upper threshold values or an
interior hole; whatever is found first ('legacy mode').
|
void |
autoOutline(int startX,
int startY,
double lower,
double upper,
int mode)
Traces an object defined by lower and upper threshold values.
|
void |
autoOutline(int startX,
int startY,
double tolerance,
int mode)
Traces the boundary of the area with pixel values within
'tolerance' of the value of the pixel at the starting location.
|
void |
autoOutline(int startX,
int startY,
int lower,
int upper)
This is a variation of legacy autoOutline that uses int threshold arguments.
|
static void |
setAllPoints(boolean b) |
public static final int FOUR_CONNECTED
public static final int EIGHT_CONNECTED
public static final int LEGACY_MODE
public int npoints
public int[] xpoints
public int[] ypoints
public Wand(ImageProcessor ip)
public void autoOutline(int startX, int startY, double lower, double upper, int mode)
public void autoOutline(int startX, int startY, double lower, double upper)
public void autoOutline(int startX, int startY, int lower, int upper)
public void autoOutline(int startX, int startY)
public void autoOutline(int startX, int startY, double tolerance, int mode)
public static void setAllPoints(boolean b)
public static boolean allPoints()