27 template <
class DataPo
int,
class _NFilter,
typename T>
30 PONCA_FITTING_DECLARE_DEFAULT_TYPES
31 PONCA_FITTING_DECLARE_MATRIX_TYPE
36 Check = Base::PROVIDES_MEAN_POSITION && Base::PROVIDES_MEAN_NORMAL && Base::PROVIDES_PLANE
42 PONCA_FITTING_APIDOC_FINALIZE
46 if (Base::finalize() ==
STABLE)
48 if (Base::plane().isValid())
50 Base::setPlane(Base::m_sumN / Base::getWeightSum(), Base::barycenterLocal());
52 return Base::m_eCurrentState;
54 PONCA_FITTING_IS_SIGNED(
true)
59 template <
class DataPo
int,
class _NFilter,
typename T>
Compute the mean normal of the input points.
Plane fitting procedure computing the mean position and orientation from oriented points.
FIT_RESULT finalize()
Finalize the procedure.
MeanPlaneFitImpl< DataPoint, _NFilter, T > & meanPlaneFit()
Explicit conversion to MeanPlaneFitImpl , to access methods potentially hidden by heritage.
This Source Code Form is subject to the terms of the Mozilla Public License, v.
FIT_RESULT
Enum corresponding to the state of a fitting method (and what the finalize function returns)
@ CONFLICT_ERROR_FOUND
Multiple classes of the fitting procedure initialize the primitive.
@ STABLE
The fitting is stable and ready to use.