diff --git a/Code/Markov/otbMRFEnergyFisherClassification.h b/Code/Markov/otbMRFEnergyFisherClassification.h index c534b6c0d0961cdf9502a7e63a799e3ad3db547f..dd4536b9314763f47bf2a3f8fa1da71805abacd3 100644 --- a/Code/Markov/otbMRFEnergyFisherClassification.h +++ b/Code/Markov/otbMRFEnergyFisherClassification.h @@ -70,9 +70,9 @@ public: itkExceptionMacro(<<"Number of parameters does not correspond to number of classes" ); } double val1 = static_cast<double>(value1); - double mu = this->m_Parameters[3*static_cast<double>(value2)]; - double l = this->m_Parameters[3*static_cast<double>(value2)+1]; - double m = this->m_Parameters[3*static_cast<double>(value2)+2]; + double mu = this->m_Parameters[3*value2]; + double l = this->m_Parameters[3*value2+1]; + double m = this->m_Parameters[3*value2+2]; double result = -vcl_log((boost::math::tgamma(l+m)/(boost::math::tgamma(l)*boost::math::tgamma(m))) * (2/(mu)) * (vcl_sqrt(l/m)) *