[Insight-users] Computing bounding box around labeled objects

Dan Mueller dan.muel at gmail.com
Wed Apr 6 07:10:43 EDT 2011


Hi Conrad,

Have you looked at the label map filter family in Code/Review?
    http://www.insight-journal.org/browse/publication/176

Specifically itk::BinaryImageToShapeLabelMapFilter takes a binary
image, computes the connected components (labels), and reports various
shape details per label (such as size, centroid, region/bounding box,
perimeter length, etc). See Code/Review/itkShapeLabelObject.h for all
attributes.

HTH

Cheers, Dan

On 6 April 2011 12:44, robert tamburo <robert.tamburo at gmail.com> wrote:
> Sounds like itkAutoCropLabelMapFilter might be what you're looking for.
>
> On Wed, Apr 6, 2011 at 6:03 AM, Conrad Bielski <conrad_bielski at yahoo.com>
> wrote:
>>
>> Hello ITK'ers,
>> I wanted to compute bounding boxes around labeled objects but couldn't
>> find a suitable filter. Am I missing it? Any suggestions?
>> Thanks in advance,
>> Conrad :)


More information about the Insight-users mailing list