|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectij.gui.Wand
public class Wand
This class implements ImageJ's wand (tracing) tool. The wand selects pixels of equal or similar value or thresholded pixels forming a contiguous area. The wand creates selections that have only one boundary line (inner holes are not excluded from the selection). There may be holes at the boundary, however, if the boundary line touches the same vertex twice (both in 4-connected and 8-connected mode). Version 2009-06-01 (code refurbished; tolerance, 4- & 8-connected options added)
Field Summary | |
---|---|
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 Summary | |
---|---|
Wand(ImageProcessor ip)
Constructs a Wand object from an ImageProcessor. |
Method Summary | |
---|---|
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)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
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
Constructor Detail |
---|
public Wand(ImageProcessor ip)
Method Detail |
---|
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()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |