[ITK] [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/community/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/community/attachments/20150410/11086e36/attachment.jpg>
-------------- next part --------------
_____________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html

Kitware offers ITK Training Courses, for more information visit:
http://www.kitware.com/products/protraining.php

Please keep messages on-topic and check the ITK FAQ at:
http://www.itk.org/Wiki/ITK_FAQ

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/insight-users


More information about the Community mailing list