float PointCoordinateType
Type of the coordinates of a (N-D) point.
Local modelization (generic interface)
LocalModel(const CCVector3 ¢er, PointCoordinateType squaredRadius)
Constructor.
static LocalModel * New(CV_LOCAL_MODEL_TYPES type, Neighbourhood &subset, const CCVector3 ¢er, PointCoordinateType squaredRadius)
Factory.
PointCoordinateType m_squaredRadius
Max radius (squared)
PointCoordinateType getSquareSize() const
Returns the model max radius (squared)
const CCVector3 & getCenter() const
Returns the model center.
virtual ~LocalModel()=default
Destructor.
virtual CV_LOCAL_MODEL_TYPES getType() const =0
Returns the model type.
CCVector3 m_modelCenter
Center.
virtual ScalarType computeDistanceFromModelToPoint(const CCVector3 *P, CCVector3 *nearestPoint=nullptr) const =0
Compute the (unsigned) distance between a 3D point and this model.
Generic file read and write utility for python interface.