diff --git a/Code/Learning/otbSVMPointSetModelEstimator.txx b/Code/Learning/otbSVMPointSetModelEstimator.txx index 9ef4e5a8692e818f7798985607c18c2ae69e10bd..fffb151472da59700cdc1743045e6cd595704075 100644 --- a/Code/Learning/otbSVMPointSetModelEstimator.txx +++ b/Code/Learning/otbSVMPointSetModelEstimator.txx @@ -130,7 +130,7 @@ SVMPointSetModelEstimator<TInputPointSet, TTrainingPointSet> unsigned int dataId = 0; while (inIt!=inEnd && trIt!=trEnd) { - typename TTrainingPointSet::PixelType label; + typename TTrainingPointSet::PixelType label = itk::NumericTraits<typename TTrainingPointSet::PixelType>::Zero; trainingPointSet->GetPointData( dataId, & label ); otbMsgDevMacro( << " Label " << label );