Commit 3d7b3a0d authored by Nicolas Mellado's avatar Nicolas Mellado

Cleaning

parent 3325ded7
......@@ -75,8 +75,7 @@ CovariancePlaneFit<DataPoint, _WFunctor, T>::finalize ()
Base::setPlane(m_solver.eigenvectors().col(0), m_cog);
// \todo Use the output of the solver to check stability
Base::m_eCurrentState = STABLE;
Base::m_eCurrentState = ( m_solver.info() == Eigen::Success ? STABLE : UNDEFINED );
return Base::m_eCurrentState;
}
......@@ -85,9 +84,6 @@ template < class DataPoint, class _WFunctor, typename T>
typename CovariancePlaneFit<DataPoint, _WFunctor, T>::Scalar
CovariancePlaneFit<DataPoint, _WFunctor, T>::surfaceVariation () const
{
if( Base::m_eCurrentState == UNDEFINED )
return 0;
return m_solver.eigenvalues()(0) / m_solver.eigenvalues().mean();
}
......
......@@ -4,8 +4,6 @@
file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
#include <Eigen/Eigenvalues>
#ifndef _GRENAILLE_GLS_
#define _GRENAILLE_GLS_
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment