public class SnapToEllipseEdge<T extends boofcv.struct.image.ImageGray> extends BaseIntegralEdge<T>
| Modifier and Type | Field and Description |
|---|---|
protected double |
convergenceTol |
protected georegression.fitting.ellipse.FitEllipseWeightedAlgebraic |
fitter |
protected int |
maxIterations |
protected int |
numSampleContour |
protected georegression.struct.shapes.EllipseRotated_F64 |
previous |
protected int |
radialSamples |
protected org.ddogleg.struct.FastQueue<georegression.struct.point.Point2D_F64> |
samplePts |
protected org.ddogleg.struct.GrowQueue_F64 |
weights |
integral, integralImage| Constructor and Description |
|---|
SnapToEllipseEdge(int numSampleContour,
int radialSamples,
java.lang.Class<T> imageType)
Constructor with configuration
|
| Modifier and Type | Method and Description |
|---|---|
protected static double |
change(georegression.struct.shapes.EllipseRotated_F64 a,
georegression.struct.shapes.EllipseRotated_F64 b)
Computes a numerical value for the difference in parameters between the two ellipses
|
double |
getConvergenceTol() |
int |
getMaxIterations() |
boolean |
process(georegression.struct.shapes.EllipseRotated_F64 input,
georegression.struct.shapes.EllipseRotated_F64 refined)
Refines provided list by snapping it to edges found in the image
|
void |
setConvergenceTol(double convergenceTol) |
void |
setMaxIterations(int maxIterations) |
getInputType, setImage, setTransformprotected int maxIterations
protected double convergenceTol
protected int numSampleContour
protected int radialSamples
protected org.ddogleg.struct.GrowQueue_F64 weights
protected org.ddogleg.struct.FastQueue<georegression.struct.point.Point2D_F64> samplePts
protected georegression.fitting.ellipse.FitEllipseWeightedAlgebraic fitter
protected georegression.struct.shapes.EllipseRotated_F64 previous
public SnapToEllipseEdge(int numSampleContour,
int radialSamples,
java.lang.Class<T> imageType)
numSampleContour - Maximum number of iterations it will performanceradialSamples - When the difference between two ellipses is less than this amount stop iteratingimageType - Type of gray-scale input imagepublic boolean process(georegression.struct.shapes.EllipseRotated_F64 input,
georegression.struct.shapes.EllipseRotated_F64 refined)
input - (Output) Close approximation of the ellipse in the imagerefined - (Output) Storage for refined estimate. Can be same instance as inputprotected static double change(georegression.struct.shapes.EllipseRotated_F64 a,
georegression.struct.shapes.EllipseRotated_F64 b)
public int getMaxIterations()
public void setMaxIterations(int maxIterations)
public double getConvergenceTol()
public void setConvergenceTol(double convergenceTol)