<div dir="ltr"><div><div><div>Hi Cagatay,<br><br></div>thanks for your answer! I was just wondering if the method GetRegion and GetBoundingBox give the same attribute and you confirmed that!!<br><br></div>Thank you so much,<br>
<br></div>Pietro<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/4/26 Cagatay Bilgin <span dir="ltr">&lt;<a href="mailto:bilgincc@gmail.com" target="_blank">bilgincc@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">Hi Pietro, <table style="font-family:arial,sans-serif;font-size:13px" cellpadding="0"><tbody><tr><td style="width:244px"></td></tr></tbody></table><div>I think what you are looking for is GetBoundingBox()</div>

<div><a href="http://www.itk.org/Wiki/ITK/Examples/ImageProcessing/BinaryImageToShapeLabelMapFilter" target="_blank">http://www.itk.org/Wiki/ITK/Examples/ImageProcessing/BinaryImageToShapeLabelMapFilter</a><br></div><div>
<br></div><div>Cheers, </div>
<div>Cagatay</div><div><br></div><div class="gmail_extra">-- <br><span style="font-size:13px;color:rgb(136,136,136);font-family:arial,sans-serif">Cemal Cagatay Bilgin</span>, <span style="font-size:13px;color:rgb(136,136,136);font-family:arial,sans-serif">PhD</span><br style="font-size:13px;color:rgb(136,136,136);font-family:arial,sans-serif">

<span style="font-size:13px;color:rgb(136,136,136);font-family:arial,sans-serif">Life Sciences Division</span><br style="font-size:13px;color:rgb(136,136,136);font-family:arial,sans-serif"><span style="font-size:13px;color:rgb(136,136,136);font-family:arial,sans-serif">Lawrence Berkeley National Lab</span><br style="font-size:13px;color:rgb(136,136,136);font-family:arial,sans-serif">

<span style="font-size:13px;color:rgb(136,136,136);font-family:arial,sans-serif">MS977, One Cyclotron Road</span><br style="font-size:13px;color:rgb(136,136,136);font-family:arial,sans-serif"><span style="font-size:13px;color:rgb(136,136,136);font-family:arial,sans-serif">Berkeley, CA 94720, USA</span><br style="font-size:13px;color:rgb(136,136,136);font-family:arial,sans-serif">

<span style="font-size:13px;color:rgb(136,136,136);font-family:arial,sans-serif">Email: <a href="mailto:ccbilgin@lbl.gov" target="_blank">ccbilgin@lbl.gov</a></span><br><br><div class="gmail_quote"><div><div class="h5">On Fri, Apr 26, 2013 at 7:43 AM, Pietro Nardelli <span dir="ltr">&lt;<a href="mailto:pie.nardelli@gmail.com" target="_blank">pie.nardelli@gmail.com</a>&gt;</span> wrote:<br>

</div></div><blockquote class="gmail_quote" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div>
<div class="h5"><div dir="ltr">
<div><div>Hi community,<br><br></div>I need your help! I developed my module using ITKv3, and I&#39;m using the class BinaryImageToShapeLabelMapFilter to get some statistics of a label. In particular I was using the following code:<br>


<br>typedef itk::BinaryImageToShapeLabelMapFilter&lt; OutputImageType &gt; ImageToShapeLabelType;<br>ImageToShapeLabelType::Pointer ImageToShapeFilter = ImageToShapeLabelType::New();<br>for( unsigned int i = 0; i &lt; ImageToShapeFilter-&gt;GetOutput()-&gt;GetNumberOfLabelObjects(); i++ ){
<br>       if( ImageToShapeFilter-&gt;GetOutput()-&gt;GetNthLabelObject( i )-&gt;GetRegion().GetSize(1) &gt; ySize ) {<br>                  ...<br>}<br><br></div>Now, translating the code into ITKv4 I&#39;ve seen that the member GetRegion() doesn&#39;t exist any more. How can I obtain the same statistic using ITKv4? Is there something similar to get sizes of the region?<br>


<div><br></div><div>Any tip will be really appreciated!! <br><br></div><div>Thanks in advance,<br><br></div><div>Pietro<br></div></div>
<br></div></div>_____________________________________<br>
Powered by <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>
<br></blockquote></div><br><br clear="all"><div><br></div><br></div></div>
</blockquote></div><br></div>