diff --git a/Code/Learning/otbConfusionMatrixCalculator.txx b/Code/Learning/otbConfusionMatrixCalculator.txx
index cf20f178ef65811a61bf8feb818fc4bec69a80f3..acbb699a792640451bf3ffc24860b29bd8943193 100644
--- a/Code/Learning/otbConfusionMatrixCalculator.txx
+++ b/Code/Learning/otbConfusionMatrixCalculator.txx
@@ -205,7 +205,7 @@ ConfusionMatrixCalculator<TRefListLabel, TProdListLabel>
           + this->m_FalseNegativeValues[i]);
         }
 
-      if (vcl_abs(this->m_Recalls[i] + this->m_Precisions[i]) > 0)
+      if (vcl_abs(this->m_Recalls[i] + this->m_Precisions[i]) > epsilon)
         {
         this->m_FScores[i] = 2 * this->m_Recalls[i] * this->m_Precisions[i]
             / (this->m_Recalls[i] + this->m_Precisions[i]);