Package georegression.fitting.cylinder
Class GenerateCylinderFromPointNormals_F64
java.lang.Object
georegression.fitting.cylinder.GenerateCylinderFromPointNormals_F64
- All Implemented Interfaces:
ModelGenerator<Cylinder3D_F64,
PlaneNormal3D_F64>
public class GenerateCylinderFromPointNormals_F64
extends Object
implements ModelGenerator<Cylinder3D_F64,PlaneNormal3D_F64>
Given a list of two point and surface normal pairs, first a cylinder using an analytic equation.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
generate
(List<PlaneNormal3D_F64> dataSet, Cylinder3D_F64 output) int
boolean
twoPointFormula
(PlaneNormal3D_F64 a, PlaneNormal3D_F64 b, Cylinder3D_F64 output) If there is no noise and the two points don't lie at the same location or have the same surface normal, then the following equation is valid.
-
Constructor Details
-
GenerateCylinderFromPointNormals_F64
public GenerateCylinderFromPointNormals_F64()
-
-
Method Details
-
generate
- Specified by:
generate
in interfaceModelGenerator<Cylinder3D_F64,
PlaneNormal3D_F64>
-
twoPointFormula
If there is no noise and the two points don't lie at the same location or have the same surface normal, then the following equation is valid.- Returns:
- true if no error detected
-
getMinimumPoints
public int getMinimumPoints()- Specified by:
getMinimumPoints
in interfaceModelGenerator<Cylinder3D_F64,
PlaneNormal3D_F64>
-