Commit 8a1702f9 authored by Ludovic Hussonnois's avatar Ludovic Hussonnois
Browse files

BUG: Mantis-1369: Correct MeanShiftSegmentationFilter.

 Label is needed to perform mean shift segmentation but ModeSearch
 (needed to output label) was default set to false.

(cherry picked from commit bb9f8ee9)
parent ac207a66
......@@ -34,6 +34,8 @@ MeanShiftSegmentationFilter<TInputImage, TOutputLabelImage, TOutputClusteredImag
this->SetNumberOfRequiredOutputs(2);
this->SetNthOutput(0,TOutputLabelImage::New());
this->SetNthOutput(1,TOutputClusteredImage::New());
// default set MeanShiftFilter mode search to true because Merging and Pruning use LabelOutput
m_MeanShiftFilter->SetModeSearch(true);
}
template <class TInputImage, class TOutputLabelImage, class TOutputClusteredImage, class TKernel>
......
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