public class Ovuscule extends java.lang.Object implements IOvusculeSnake2D
| Constructor and Description |
|---|
Ovuscule(FastBitmap fastBitmap,
double p1,
double p2,
double q1,
double q2,
double r1,
double r2) |
Ovuscule(FastBitmap fastBitmap,
DoublePoint p,
DoublePoint q,
DoublePoint r) |
Ovuscule(FastBitmap fastBitmap,
IntPoint p,
IntPoint q,
IntPoint r) |
| Modifier and Type | Method and Description |
|---|---|
double |
energy()
The purpose of this method is to compute the energy of the snake.
|
DoublePoint[] |
getEnergyGradient()
The purpose of this method is to compute the gradient of the snake
energy with respect to the snake-defining nodes.
|
OvusculeSnake2DNode[] |
getNodes()
This method provides an accessor to the snake-defining nodes.
|
OvusculeSnake2DScale[] |
getScales()
The purpose of this method is to detemine what to draw on screen,
given the current configuration of nodes.
|
void |
setNodes(OvusculeSnake2DNode[] node)
This method provides a mutator to the snake-defining nodes.
|
public Ovuscule(FastBitmap fastBitmap, DoublePoint p, DoublePoint q, DoublePoint r)
public Ovuscule(FastBitmap fastBitmap, IntPoint p, IntPoint q, IntPoint r)
public Ovuscule(FastBitmap fastBitmap, double p1, double p2, double q1, double q2, double r1, double r2)
public double energy()
IOvusculeSnake2Denergy in interface IOvusculeSnake2Dpublic DoublePoint[] getEnergyGradient()
IOvusculeSnake2DOvusculeSnake2DKeeper.Optimize().getEnergyGradient in interface IOvusculeSnake2DgetNodes(). If
null is returned, the optimizer within the class
OvusculeSnake2DKeeper will attempt to estimate the
gradient by a finite-difference approach.IOvusculeSnake2D.getNodes()public OvusculeSnake2DNode[] getNodes()
IOvusculeSnake2DgetNodes in interface IOvusculeSnake2DIOvusculeSnake2D.setNodes(Catalano.Imaging.ActiveContour.Ovuscule.OvusculeSnake2DNode[])public OvusculeSnake2DScale[] getScales()
IOvusculeSnake2DOvusculeSnake2DKeeper.interactAndOptimize(). The origin
of coordinates lies at the top-left corner of the
display parameter. Collectively, the array of scales
forms the skin of the snake.getScales in interface IOvusculeSnake2DOvusculeSnake2DScale objects.
Straight lines will be drawn between the apices of each polygon, in
the specified color. It is not necessary to maintain a constant
number of polygons in the array, or a constant number of apices in a
given polygon.OvusculeSnake2DScalepublic void setNodes(OvusculeSnake2DNode[] node)
IOvusculeSnake2DOvusculeSnake2DKeeper.Optimize().setNodes in interface IOvusculeSnake2Dnode - Array of subpixel node locations.