Skip to content
Snippets Groups Projects
Commit 2f38e3e0 authored by Manuel Grizonnet's avatar Manuel Grizonnet
Browse files

BUG: mantis 963 - correct margin formula for tile-wise ms filtering

parent 059add42
No related branches found
No related tags found
No related merge requests found
......@@ -181,7 +181,7 @@ void MeanShiftSmoothingImageFilter<TInputImage, TOutputImage, TKernel, TOutputIt
for(unsigned int comp = 0; comp < ImageDimension; ++comp)
{
margin[comp] = (m_MaxIterationNumber+1) * m_SpatialRadius[comp];
margin[comp] = (m_MaxIterationNumber * m_SpatialRadius[comp]) + 1;
}
inputRequestedRegion.PadByRadius(margin);
......
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