Skip to content
Snippets Groups Projects
Commit 3ec70e6d authored by Cyrille Valladeau's avatar Cyrille Valladeau
Browse files

ENH : correct error in mean shift boundaries

parent 3d0e953d
No related branches found
No related tags found
No related merge requests found
......@@ -395,7 +395,7 @@ MeanShiftImageFilter<TInputImage,TOutputImage,TLabeledOutput,TBufferConverter>
regionIndeces = regionList->GetRegionIndeces(static_cast<int>(label));
for (int i = 0; i<regionList->GetRegionCount(static_cast<int>(label)); ++i)
{
boundIndex[0]= regionIndeces[i] % clusterBoudariesOutputPtr->GetRequestedRegion().GetSize()[0];
boundIndex[0]= (regionIndeces[i] % clusterBoudariesOutputPtr->GetRequestedRegion().GetSize()[0])+clusterBoudariesOutputPtr->GetRequestedRegion().GetIndex()[0];
boundIndex[1]= (regionIndeces[i] / clusterBoudariesOutputPtr->GetRequestedRegion().GetSize()[0])+clusterBoudariesOutputPtr->GetRequestedRegion().GetIndex()[1];
if (clusterBoudariesOutputPtr->GetBufferedRegion().IsInside(boundIndex))
{
......
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