<div dir="ltr"><div><div><div><div><div><div>Hi all.<br></div>I've just tested itk::BinaryImageToShapeLabelMapFilter with an B/W image (see attachment) containing only 3 object.<br></div><br>I call the following methods:<br><br>> binaryImageToShapeLabelMapFilter->ComputePerimeterOn();<br>> binaryImageToShapeLabelMapFilter->SetInputForegroundValue(255);<br>> binaryImageToShapeLabelMapFilter->SetOutputBackgroundValue(0);<br>> binaryImageToShapeLabelMapFilter->Update();<br><br>> LabelMapType::Pointer labelMap = binaryImageToShapeLabelMapFilter->GetOutput();<br><br>> int nrOfLabelObjects = labelMap->GetNumberOfLabelObjects();<br><br></div>When I display the number of of label objects, the result is 246.<br><br></div>Does anybody know why this behaviour?<br><br></div>Thanks a lot.<br></div>My best regards.<br></div>