Ponca
aa50bfdf187919869239c5b44b748842569114c1
Point Cloud Analysis library
|
A parametrized line is defined by an origin point \(\mathbf{o}\) and a unit direction vector \(\overrightarrow{\mathbf{d}}\) such that the line corresponds to the set \(l(t)=\mathbf{o}+t\overrightarrow{\mathbf{d}}, t\in \mathbb{R}\). More...
#include <linePrimitive.h>
Public Types | |
using | Scalar = typename DataPoint::Scalar |
Alias to scalar type. | |
using | VectorType = typename Base::VectorType |
Alias to vector type. | |
using | WFunctor = typename Base::WFunctor |
Alias to weight function. | |
using | EigenBase = Eigen::ParametrizedLine< typename DataPoint::Scalar, DataPoint::Dim > |
Specialization of Eigen::ParametrizedLine inherited by Ponca::Line. | |
Public Member Functions | |
Line< DataPoint, _WFunctor, T > & | line () |
Explicit conversion to Line , to access methods potentially hidden by heritage. | |
const Line< DataPoint, _WFunctor, T > & | line () const |
Explicit conversion to Line , to access methods potentially hidden by heritage. | |
void | init (const VectorType &_basisCenter=VectorType::Zero()) |
Set the scalar field values to 0 and reset the distance() and origin() status. | |
bool | isValid () const |
Tell if the line as been correctly set. Used to set CONFLICT_ERROR_FOUND during fitting. | |
bool | operator== (const Line< DataPoint, WFunctor, T > &other) const |
Comparison operator. | |
bool | operator!= (const Line< DataPoint, WFunctor, T > &other) const |
Comparison operator, convenience function. | |
void | setLine (const VectorType &origin, const VectorType &direction) |
Init the line from a direction and a position. | |
Scalar | potential () const |
Value of the scalar field at the evaluation point. | |
Scalar | potential (const VectorType &_q) const |
Value of the scalar field at the location \( \mathbf{q} \), defined as the squared distance between \( \mathbf{q} \) and the line. | |
VectorType | project (const VectorType &_q) const |
Project a point on the line. | |
Protected Types | |
enum | { check = Base::PROVIDES_PRIMITIVE_BASE , PROVIDES_LINE } |
using | Base = T |
Base class of the procedure. | |
A parametrized line is defined by an origin point \(\mathbf{o}\) and a unit direction vector \(\overrightarrow{\mathbf{d}}\) such that the line corresponds to the set \(l(t)=\mathbf{o}+t\overrightarrow{\mathbf{d}}, t\in \mathbb{R}\).
This class inherits Eigen::ParametrizedLine.
This primitive requires the definition of n-dimensionnal vectors (VectorType) in Concept::PointConcept.
This primitive provides:
PROVIDES_LINE
Definition at line 34 of file linePrimitive.h.
|
protected |
Base class of the procedure.
Definition at line 37 of file linePrimitive.h.
using Ponca::Line< DataPoint, _WFunctor, T >::EigenBase = Eigen::ParametrizedLine<typename DataPoint::Scalar, DataPoint::Dim > |
Specialization of Eigen::ParametrizedLine inherited by Ponca::Line.
Definition at line 41 of file linePrimitive.h.
using Ponca::Line< DataPoint, _WFunctor, T >::Scalar = typename DataPoint::Scalar |
Alias to scalar type.
Definition at line 37 of file linePrimitive.h.
using Ponca::Line< DataPoint, _WFunctor, T >::VectorType = typename Base::VectorType |
Alias to vector type.
Definition at line 37 of file linePrimitive.h.
using Ponca::Line< DataPoint, _WFunctor, T >::WFunctor = typename Base::WFunctor |
Alias to weight function.
Definition at line 37 of file linePrimitive.h.
|
protected |
Enumerator | |
---|---|
check | Requires PrimitiveBase. |
PROVIDES_LINE | Provides Line. |
Definition at line 45 of file linePrimitive.h.
|
inline |
Set the scalar field values to 0 and reset the distance() and origin() status.
Definition at line 57 of file linePrimitive.h.
|
inline |
Tell if the line as been correctly set. Used to set CONFLICT_ERROR_FOUND during fitting.
Definition at line 67 of file linePrimitive.h.
|
inline |
Explicit conversion to Line , to access methods potentially hidden by heritage.
Definition at line 52 of file linePrimitive.h.
|
inline |
Explicit conversion to Line , to access methods potentially hidden by heritage.
Definition at line 52 of file linePrimitive.h.
|
inline |
Comparison operator, convenience function.
Definition at line 78 of file linePrimitive.h.
|
inline |
Comparison operator.
Definition at line 73 of file linePrimitive.h.
|
inline |
Value of the scalar field at the evaluation point.
#isSigned
of the fit to check if the sign is reliable Definition at line 95 of file linePrimitive.h.
|
inline |
Value of the scalar field at the location \( \mathbf{q} \), defined as the squared distance between \( \mathbf{q} \) and the line.
#isSigned
of the fit to check if the sign is reliable Definition at line 105 of file linePrimitive.h.
|
inline |
Project a point on the line.
Definition at line 112 of file linePrimitive.h.
|
inline |
Init the line from a direction and a position.
direction | Orientation of the line, does not need to be normalized |
origin | Position of the line |
Definition at line 86 of file linePrimitive.h.