[ITK-users] Too many label objects detected when only 3
Francisco Lopez de la Franca
franciscolopezdelafranca at gmail.com
Fri Apr 10 08:32:39 EDT 2015
Hi all.
I've just tested itk::BinaryImageToShapeLabelMapFilter with an B/W image
(see attachment) containing only 3 object.
I call the following methods:
> binaryImageToShapeLabelMapFilter->ComputePerimeterOn();
> binaryImageToShapeLabelMapFilter->SetInputForegroundValue(255);
> binaryImageToShapeLabelMapFilter->SetOutputBackgroundValue(0);
> binaryImageToShapeLabelMapFilter->Update();
> LabelMapType::Pointer labelMap =
binaryImageToShapeLabelMapFilter->GetOutput();
> int nrOfLabelObjects = labelMap->GetNumberOfLabelObjects();
When I display the number of of label objects, the result is 246.
Does anybody know why this behaviour?
Thanks a lot.
My best regards.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/insight-users/attachments/20150410/11086e36/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: poligonos.jpg
Type: image/jpeg
Size: 9122 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/insight-users/attachments/20150410/11086e36/attachment.jpg>
More information about the Insight-users
mailing list