Squiz Matrix  4.12.2
 All Data Structures Namespaces Functions Variables Pages
Wand Class Reference

Public Member Functions

 Wand (ImageProcessor ip)
 
void autoOutline (int startX, int startY)
 
void autoOutline (int startX, int startY, double lower, double upper)
 
void autoOutline (int startX, int startY, int lower, int upper)
 

Data Fields

int npoints
 
int[] xpoints = new int[maxPoints]
 
int[] ypoints = new int[maxPoints]
 

Detailed Description

This class implements ImageJ's wand (tracing) tool.

Definition at line 8 of file Wand.java.

Constructor & Destructor Documentation

Wand ( ImageProcessor  ip)
inline

Constructs a Wand object from an ImageProcessor.

Definition at line 28 of file Wand.java.

Member Function Documentation

void autoOutline ( int  startX,
int  startY 
)
inline

Traces the boundary of an area of uniform color, where 'startX' and 'startY' are somewhere inside the area. The boundary points are stored in the public xpoints and ypoints fields. A 16 entry lookup table is used to determine the direction at each step of the tracing process.

Definition at line 121 of file Wand.java.

void autoOutline ( int  startX,
int  startY,
double  lower,
double  upper 
)
inline

Traces an object defined by lower and upper threshold values. The boundary points are stored in the public xpoints and ypoints fields.

Definition at line 143 of file Wand.java.

void autoOutline ( int  startX,
int  startY,
int  lower,
int  upper 
)
inline

This is a variation of autoOutline that uses int threshold arguments.

Definition at line 167 of file Wand.java.

Field Documentation

int npoints

The number of points in the generated outline.

Definition at line 12 of file Wand.java.

int [] xpoints = new int[maxPoints]

The x-coordinates of the points in the outline.

Definition at line 15 of file Wand.java.

int [] ypoints = new int[maxPoints]

The y-coordinates of the points in the outline.

Definition at line 17 of file Wand.java.


The documentation for this class was generated from the following file: