<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>
Hi Kien,<br><br>thank you for your help! I'm trying to use tha class you suggested: am I correct saying that the foreground value is the the colour that can be chosen for the lable objects??<br><br>Thank you very much,<br><br>Miriam <br><br><div><div id="SkyDrivePlaceholder"></div><hr id="stopSpelling">From: kien.kieu@jouy.inra.fr<br>To: insight-users@itk.org<br>Date: Fri, 15 Jun 2012 09:16:14 +0200<br>Subject: Re: [Insight-users] ConnectedComponentImageFilter<br><br><div>Hi,</div><div><br></div><div>you may use BinaryImageToShapeLabelMapFilter. Eventually you will have to adjust the ForegroundValue attribute. Then use either the methods GetNumberOfPixels or GetPhysicalSize of ShapeLabelObject to get the size you wish for each object (connected component).</div><br><div><div>Le 14 juin 12 à 19:57, Miriam Pini a écrit :</div><br class="ecxApple-interchange-newline"><blockquote><span class="ecxApple-style-span" style="border-collapse:separate;color:rgb(0, 0, 0);font-family:Courier;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;orphans:2;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;widows:2;word-spacing:0px;font-size:medium"><div class="ecxhmmessage" style="font-size:10pt;font-family:Tahoma"><div dir="ltr">Hi guys,<br><br>I have an image with separated regions of the same colour and I'd like to get the dimension of each of them. Is the ConnectedComponentImageFilter the best class to do that?<span class="ecxApple-converted-space"> </span><br><br>Any suggestion is greatly appreciated,<br><br>thank you all,<br><br>Miriam<br></div>_____________________________________<br>Powered by<span class="ecxApple-converted-space"> </span><a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br><br>Visit other Kitware open-source projects at<br><a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br><br>Kitware offers ITK Training Courses, for more information visit:<br><a href="http://www.kitware.com/products/protraining.php" target="_blank">http://www.kitware.com/products/protraining.php</a><br><br>Please keep messages on-topic and check the ITK FAQ at:<br><a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br><br>Follow this link to subscribe/unsubscribe:<br><a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br></div></span></blockquote></div><br><div> <span class="ecxApple-style-span" style="border-collapse:separate;color:rgb(0, 0, 0);font-family:Courier;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;orphans:2;text-align:auto;text-indent:0px;text-transform:none;white-space:normal;widows:2;word-spacing:0px;font-size:medium"><div style="word-wrap:break-word"><span class="ecxApple-style-span" style="border-collapse:separate;color:rgb(0, 0, 0);font-family:Courier;font-size:medium;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;orphans:2;text-indent:0px;text-transform:none;white-space:normal;widows:2;word-spacing:0px"><div style="word-wrap:break-word"><span class="ecxApple-style-span" style="border-collapse:separate;color:rgb(0, 0, 0);font-family:Courier;font-size:medium;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;orphans:2;text-indent:0px;text-transform:none;white-space:normal;widows:2;word-spacing:0px"><div style="word-wrap:break-word"><div>---</div><div>Kiên Kiêu tel : + 33 (0)1 34 65 28 16</div><div>Unité MIA, INRA fax : + 33 (0)1 34 65 22 17<br>Domaine de Vilvert email: <a href="mailto:Kien.Kieu@jouy.inra.fr">Kien.Kieu@jouy.inra.fr</a><br>F-78350 Jouy-en-Josas url : <a href="http://www.inra.fr/miaj/" target="_blank">http://www.inra.fr/miaj/</a></div></div></span><br class="ecxApple-interchange-newline"></div></span><br class="ecxApple-interchange-newline"></div></span><br class="ecxApple-interchange-newline"> </div><br><br>_____________________________________
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://www.itk.org/mailman/listinfo/insight-users</div>                                            </div></body>
</html>