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

BUG: Mean shift. fixed uninitilized iterator and label output for monothreaded case

parent 50a6dd19
No related branches found
No related tags found
No related merge requests found
......@@ -389,6 +389,7 @@ MeanShiftImageFilter2<TInputImage, TOutputImage, TKernel, TNorm, TOutputMetricIm
n >>= 1;
m_ThreadIdNumberOfBits++;
}
if(m_ThreadIdNumberOfBits == 0) m_ThreadIdNumberOfBits = 1; // minimum 1 bit
m_NumLabels.SetSize(numThreads);
for(unsigned int i = 0; i < numThreads; i++)
{
......@@ -594,6 +595,7 @@ MeanShiftImageFilter2<TInputImage, TOutputImage, TKernel, TNorm, TOutputMetricIm
metricIt.GoToBegin();
iterationIt.GoToBegin();
modeTableIt.GoToBegin();
labelIt.GoToBegin();
unsigned int iteration = 0;
......
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