Commit c04a826d authored by Jordi Inglada's avatar Jordi Inglada

BUG: vector must be initialised in case nbBands>nbClasses

parent 74206c00
......@@ -172,6 +172,7 @@ ImageClassificationFilter<TInputImage, TOutputImage, TMaskImage>
bool validPoint = true;
double confidenceIndex = 0.0;
ProbaSampleType probaVector{m_NumberOfClasses};
// Walk the part of the image
for (inIt.GoToBegin(), outIt.GoToBegin(); !inIt.IsAtEnd() && !outIt.IsAtEnd();
++inIt, ++outIt)
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