public class Curve
extends java.lang.Object
| Constructor and Description |
|---|
Curve(java.awt.geom.Point2D[] nodes,
int sampling) |
| Modifier and Type | Method and Description |
|---|---|
double |
getCost() |
double |
getEnergy(double[] img,
int width,
int height) |
double |
getEnergy(double[] img,
int width,
int height,
int k1,
int k2) |
int |
getNodeLength() |
int |
getNodeNumber(double x,
double y) |
java.awt.geom.Point2D[] |
getNodes()
Useful functions for point location.
|
int |
getNumberNodes() |
void |
setCost(double cost) |
void |
smooth() |
void |
updateCurve(java.awt.geom.Point2D[] nodes) |
public Curve(java.awt.geom.Point2D[] nodes,
int sampling)
nodes - sampling - public java.awt.geom.Point2D[] getNodes()
public int getNumberNodes()
public double getCost()
public void setCost(double cost)
public void updateCurve(java.awt.geom.Point2D[] nodes)
nodes - public double getEnergy(double[] img,
int width,
int height,
int k1,
int k2)
public double getEnergy(double[] img,
int width,
int height)
public int getNodeNumber(double x,
double y)
public int getNodeLength()
public void smooth()