Commit 51ae8d3d authored by Jonathan Guinet's avatar Jonathan Guinet

BUG: convergence threshold calculus is wrong.

parent 66f35346
......@@ -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
......
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