Skip to content
Snippets Groups Projects
Commit c04a826d authored by Jordi Inglada's avatar Jordi Inglada
Browse files

BUG: vector must be initialised in case nbBands>nbClasses

parent 74206c00
No related branches found
No related tags found
No related merge requests found
......@@ -172,6 +172,7 @@ ImageClassificationFilter<TInputImage, TOutputImage, TMaskImage>
bool validPoint = true;
double confidenceIndex = 0.0;
ProbaSampleType probaVector{m_NumberOfClasses};
probaVector.Fill(0);
// Walk the part of the image
for (inIt.GoToBegin(), outIt.GoToBegin(); !inIt.IsAtEnd() && !outIt.IsAtEnd();
++inIt, ++outIt)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment