[Insight-users] region property

Bill Lorensen bill.lorensen at gmail.com
Thu Mar 13 19:00:22 EDT 2008


It does not compute the centroid. However, you could do a GetRegion
for each label and use that region in an iterator to walk the region
and compute your own centroid.

Bill


On Thu, Mar 13, 2008 at 3:41 PM, Margaret Zhao
<margaretzhao at u-systems.com> wrote:
>
>  Thanks, Bill.
>
>  Seems to me, this class calculate
>
>     LabelStatistics(const LabelStatistics& l)
>        {
>        m_Count = l.m_Count;
>        m_Minimum = l.m_Minimum;
>        m_Maximum = l.m_Maximum;
>        m_Mean = l.m_Mean;
>        m_Sum = l.m_Sum;
>        m_SumOfSquares = l.m_SumOfSquares;
>        m_Sigma = l.m_Sigma;
>        m_Variance = l.m_Variance;
>        m_BoundingBox = l.m_BoundingBox;
>        m_Histogram = l.m_Histogram;
>        }
>
>  Does it also give us the centroid?
>
>  Thanks.
>
> Margaret
>
>
> -----Original Message-----
> From: Bill Lorensen [mailto:bill.lorensen at gmail.com]
> Sent: Thursday, March 13, 2008 3:33 PM
> To: Margaret Zhao
> Cc: insight-users at itk.org
> Subject: Re: [Insight-users] region property
>
> Code/BasicFilters/itkLabelStatisticsImageFilter
>
> On Thu, Mar 13, 2008 at 3:22 PM, Margaret Zhao
> <margaretzhao at u-systems.com> wrote:
> >
> >
> >
> > Hi, all -
> >
> >
> >
> >   I am new to ITK, and I have a question -
> >
> >
> >
> >   After segmentation, we have the segmented regions, and which ITK
> class
> > will give us the region property, like centroid, area, bounding box,
> etc.?
> >
> >
> >
> >   Thanks a lot in advance for any information.
> >
> >
> >
> > Margaret
> > _______________________________________________
> > Insight-users mailing list
> > Insight-users at itk.org
> > http://www.itk.org/mailman/listinfo/insight-users
> >
> >
>


More information about the Insight-users mailing list