Package georegression.fitting.plane
Class FitPlane3D_F64
java.lang.Object
georegression.fitting.plane.FitPlane3D_F64
Various functions for fitting planes in 3D to point clouds.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
solvePoint
(List<Point3D_F64> points, Point3D_F64 pointOnPlane, Vector3D_F64 outputNormal) SVD based method for fitting a plane to a set of points and a known point on the plane.boolean
svd
(List<Point3D_F64> points, Point3D_F64 outputCenter, Vector3D_F64 outputNormal) SVD based method for fitting a plane to a set of points.
-
Constructor Details
-
FitPlane3D_F64
public FitPlane3D_F64()
-
-
Method Details
-
svd
SVD based method for fitting a plane to a set of points. The plane's equation is returned as a point on the plane and the normal vector.- Parameters:
points
- (Input) Set of points on a plane.outputCenter
- (Output) Centroid of the passed in points. Modified.outputNormal
- (Output) Vector tangent to the plane. Normalized. Modified.- Returns:
- true if successful or false if it failed.
-
solvePoint
public boolean solvePoint(List<Point3D_F64> points, Point3D_F64 pointOnPlane, Vector3D_F64 outputNormal) SVD based method for fitting a plane to a set of points and a known point on the plane. The plane's equation is returned as a point on the plane and the normal vector.- Parameters:
points
- (Input)Set of points on a plane.pointOnPlane
- (Input) A known point on the planeoutputNormal
- (Output) Vector tangent to the plane. Normalized. Modified.- Returns:
- true if successful or false if it failed.
-