[Insight-users] Computing bounding box around labeled objects

Conrad Bielski conrad_bielski at yahoo.com
Fri Apr 8 08:36:44 EDT 2011


ITK rocks!
Thanks Dan and Robert for the pointers. I was actually using BinaryImageToShapeLabelMapFilter but didn't realise what the GetRegion method actually did.
Have a great weekend,
Conrad :)

--- On Wed, 4/6/11, Dan Mueller <dan.muel at gmail.com> wrote:

> From: Dan Mueller <dan.muel at gmail.com>
> Subject: Re: [Insight-users] Computing bounding box around labeled objects
> To: "Conrad Bielski" <conrad_bielski at yahoo.com>
> Cc: insight-users at itk.org
> Date: Wednesday, April 6, 2011, 4:10 AM
> 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