Skip to content
Snippets Groups Projects
Commit 51ae8d3d authored by Jonathan Guinet's avatar Jonathan Guinet
Browse files

BUG: convergence threshold calculus is wrong.

parent 66f35346
No related branches found
No related tags found
No related merge requests found
......@@ -681,6 +681,7 @@ MeanShiftImageFilter2<TInputImage,TOutputMetricImage, TOutputImage, TKernel>
// TODO change the maximum value;
bool hasConverged = false;
while ((iteration < m_MaxIterationNumber) && (!hasConverged))
{
......@@ -720,7 +721,7 @@ MeanShiftImageFilter2<TInputImage,TOutputMetricImage, TOutputImage, TKernel>
rangePixel[comp] += meanShiftVector[spatialNumberOfComponents + comp];
metricPixel[spatialNumberOfComponents + comp] = meanShiftVector[spatialNumberOfComponents + comp]
* meanShiftVector[spatialNumberOfComponents + comp];
sum += metricPixel[comp];
sum += metricPixel[spatialNumberOfComponents+comp];
}
//TODO replace SSD Test with templated metric
......
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