|
Ponca
8e4373a7fc557bbfb1afb9210d70f03872388d04
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>
Inheritance diagram for Ponca::Line< DataPoint, _NFilter, T >:
Collaboration diagram for Ponca::Line< DataPoint, _NFilter, T >:Public Types | |
| using | Scalar = typename DataPoint::Scalar |
| Alias to scalar type. | |
| using | VectorType = typename Base::VectorType |
| Alias to vector type. | |
| using | NeighborFilter = typename Base::NeighborFilter |
| Alias to the filter applied on the neighbors. | |
| using | EigenBase = Eigen::ParametrizedLine< typename DataPoint::Scalar, DataPoint::Dim > |
| Specialization of Eigen::ParametrizedLine inherited by Ponca::Line. | |
Public Member Functions | |
| Line< DataPoint, _NFilter, T > & | line () |
| Explicit conversion to Line , to access methods potentially hidden by heritage. | |
| const Line< DataPoint, _NFilter, T > & | line () const |
| Explicit conversion to Line , to access methods potentially hidden by heritage. | |
| void | init () |
| 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, NeighborFilter, T > &other) const |
| Comparison operator. | |
| bool | operator!= (const Line< DataPoint, NeighborFilter, T > &other) const |
| Comparison operator, convenience function. | |
| void | setLine (const VectorType &origin, const VectorType &direction) |
| Init the line from a direction and a position. | |
| void | changeBasis (const VectorType &newbasis) |
| Express the line relatively to a new basis. | |
| 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. | |
Protected Member Functions | |
| Scalar | potentialLocal (const VectorType &_lq) const |
| Value of the scalar field at the evaluation point. | |
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-d 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, _NFilter, 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, _NFilter, T >::NeighborFilter = typename Base::NeighborFilter |
Alias to the filter applied on the neighbors.
Definition at line 37 of file linePrimitive.h.
| using Ponca::Line< DataPoint, _NFilter, T >::Scalar = typename DataPoint::Scalar |
Alias to scalar type.
Definition at line 37 of file linePrimitive.h.
| using Ponca::Line< DataPoint, _NFilter, T >::VectorType = typename Base::VectorType |
Alias to vector type.
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 |
Express the line relatively to a new basis.
Definition at line 96 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 106 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 116 of file linePrimitive.h.
|
inlineprotected |
Value of the scalar field at the evaluation point.
#isSigned of the fit to check if the sign is reliable Definition at line 132 of file linePrimitive.h.
|
inline |
Project a point on the line.
Definition at line 125 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.