Skip to content
Snippets Groups Projects
Commit 0cac4191 authored by Sebastien Harasse's avatar Sebastien Harasse
Browse files

BUG: Mean shift: replaced std::vector reserve by resize

parent 6aa975cf
Branches
Tags
No related merge requests found
......@@ -572,7 +572,7 @@ MeanShiftImageFilter2<TInputImage, TOutputImage, TKernel, TNorm, TOutputIteratio
// Variables used by mode search optimization
// List of indices where the current pixel passes through
std::vector<InputIndexType> pointList;
if(m_ModeSearchOptimization) pointList.reserve(m_MaxIterationNumber);
if(m_ModeSearchOptimization) pointList.resize(m_MaxIterationNumber);
// Number of points currently in the pointList
unsigned int pointCount;
// Number of times an already processed candidate pixel is encountered, resulting in no
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment