[Insight-users] Labeled region center of mass?

Mengchen Zhu acidwind at gmail.com
Fri Nov 30 22:33:07 EST 2007


Hi Gaëtan,

Thanks, but the link doesn't seem to work. Could you check it again?

Mengchen

On Nov 29, 2007 11:05 PM, Gaëtan Lehmann <gaetan.lehmann at jouy.inra.fr>
wrote:

>
> Hi,
>
> I might be biased, because I made that contribution, but I would use
> the the class BinaryImageToStatisticsLabelMapFilter from http://
> hdl.handle.net/1926/584 , to get (I think) all the informations that
> you need (and much more) in a single filter.
>
> Gaëtan
>
>
> Le 29 nov. 07 à 23:42, Bill Lorensen a écrit :
>
> > MC,
> >
> > Instead of the bounding box, it might be better to use the GetRegion
> > () method of LabelStatisticsImageFilter. This will save you from
> > having to create a region from the bounding box.
> >
> > Bill
> >
> > On Nov 29, 2007 5:11 PM, Mengchen Zhu <acidwind at gmail.com> wrote:
> > Hi everyone,
> >
> > I am now trying to extract the regional centers of mass of a
> > labeled image (output of ConnectedComponentImageFilter and
> > RelabelComponentImageFilter). Are there any "direct" ways of doing
> > this?
> >
> > My current plan is to first calculate the bounding boxes of each
> > region using LabelStatisticsImageFilter; and then either manually
> > compute the CoM, or "convert" the region inside the bounding box to
> > image, and use ImageMomentsCalculator to calculate the CoM. I don't
> > know how to do the conversion exactly for the 2nd method. The 2nd
> > method is favored somehow because I might need other attributes
> > from ImageMomentsCalculator such as principal axes.
> >
> > The context: I am currently working on registration using ICP; the
> > extracted centers of mass will serve as inputs to the registration
> > process.
> >
> > Your comments are welcomed. Thanks.
> >
> > Regards,
> > MC
> >
> > _______________________________________________
> > Insight-users mailing list
> > Insight-users at itk.org
> > http://www.itk.org/mailman/listinfo/insight-users
> >
> >
> > _______________________________________________
> > Insight-users mailing list
> > Insight-users at itk.org
> > http://www.itk.org/mailman/listinfo/insight-users
>
> --
> Gaëtan Lehmann
> Biologie du Développement et de la Reproduction
> INRA de Jouy-en-Josas (France)
> tel: +33 1 34 65 29 66    fax: 01 34 65 29 09
> http://voxel.jouy.inra.fr
>
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://public.kitware.com/pipermail/insight-users/attachments/20071130/e9700694/attachment.htm


More information about the Insight-users mailing list