<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>