Package georegression.fitting.cylinder
Class GenerateCylinderFromPointNormals_F32
java.lang.Object
georegression.fitting.cylinder.GenerateCylinderFromPointNormals_F32
- All Implemented Interfaces:
ModelGenerator<Cylinder3D_F32,
PlaneNormal3D_F32>
@Generated("georegression.fitting.cylinder.GenerateCylinderFromPointNormals_F64")
public class GenerateCylinderFromPointNormals_F32
extends Object
implements ModelGenerator<Cylinder3D_F32,PlaneNormal3D_F32>
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_F32> dataSet, Cylinder3D_F32 output) int
boolean
twoPointFormula
(PlaneNormal3D_F32 a, PlaneNormal3D_F32 b, Cylinder3D_F32 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_F32
public GenerateCylinderFromPointNormals_F32()
-
-
Method Details
-
generate
- Specified by:
generate
in interfaceModelGenerator<Cylinder3D_F32,
PlaneNormal3D_F32>
-
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_F32,
PlaneNormal3D_F32>
-