![]() |
ACloudViewer
3.9.4
A Modern Library for 3D Data Processing
|
Least Squares Best Fitting Plane "local modelization". More...


Public Member Functions | |
| LSLocalModel (const PointCoordinateType eq[4], const CCVector3 ¢er, PointCoordinateType squaredRadius) | |
| Constructor. More... | |
| CV_LOCAL_MODEL_TYPES | getType () const override |
| Returns the model type. More... | |
| ScalarType | computeDistanceFromModelToPoint (const CCVector3 *P, CCVector3 *nearestPoint=nullptr) const override |
| Compute the (unsigned) distance between a 3D point and this model. More... | |
Public Member Functions inherited from cloudViewer::LocalModel | |
| virtual | ~LocalModel ()=default |
| Destructor. More... | |
| const CCVector3 & | getCenter () const |
| Returns the model center. More... | |
| PointCoordinateType | getSquareSize () const |
| Returns the model max radius (squared) More... | |
Protected Attributes | |
| PointCoordinateType | m_eq [4] |
| Plane equation. More... | |
Protected Attributes inherited from cloudViewer::LocalModel | |
| CCVector3 | m_modelCenter |
| Center. More... | |
| PointCoordinateType | m_squaredRadius |
| Max radius (squared) More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from cloudViewer::LocalModel | |
| static LocalModel * | New (CV_LOCAL_MODEL_TYPES type, Neighbourhood &subset, const CCVector3 ¢er, PointCoordinateType squaredRadius) |
| Factory. More... | |
Protected Member Functions inherited from cloudViewer::LocalModel | |
| LocalModel (const CCVector3 ¢er, PointCoordinateType squaredRadius) | |
| Constructor. More... | |
Least Squares Best Fitting Plane "local modelization".
Definition at line 19 of file LocalModel.cpp.
|
inline |
Constructor.
Definition at line 22 of file LocalModel.cpp.
|
inlineoverridevirtual |
Compute the (unsigned) distance between a 3D point and this model.
| [in] | P | the query point |
| [out] | nearestPoint | returns the nearest point (optional) |
Implements cloudViewer::LocalModel.
Definition at line 33 of file LocalModel.cpp.
References abs(), cloudViewer::DistanceComputationTools::computePoint2PlaneDistance(), and dist().
|
inlineoverridevirtual |
Returns the model type.
Implements cloudViewer::LocalModel.
Definition at line 30 of file LocalModel.cpp.
References LS.
|
protected |
Plane equation.
Definition at line 49 of file LocalModel.cpp.