<div dir="ltr"><div><div>Hi community,<br><br></div>I need your help! I developed my module using ITKv3, and I'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< OutputImageType > ImageToShapeLabelType;<br>ImageToShapeLabelType::Pointer ImageToShapeFilter = ImageToShapeLabelType::New();<br>for( unsigned int i = 0; i < ImageToShapeFilter->GetOutput()->GetNumberOfLabelObjects(); i++ ){
<br> if( ImageToShapeFilter->GetOutput()->GetNthLabelObject( i )->GetRegion().GetSize(1) > ySize ) {<br> ...<br>}<br><br></div>Now, translating the code into ITKv4 I've seen that the member GetRegion() doesn'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>