[Insight-users] How can i use itkImageMomentsCalculator

Marcelo Marcelo" <marcelo at cci . fmrp . usp . br
Fri, 19 Sep 2003 12:29:32 -0300


Hi user's


How can i use itkImageMomentsCalculator
I'm try:

typedef itk::Image<  float, 2 > InternalImageType;

typedef itk :: ImageMomentsCalculator< InternalImageType  >
MomentsCalculator;


MomentsCalculator :: Pointer  PcalculaArea = MomentsCalculator :: New();

PalculaArea->ComputeMoments( isolatedConnected->GetOutput() );

double area = PcalculaArea->GetTotalMass();




/home/marcelo/programas/Segmentacao/Cone3.cxx:230: `Pointer' is not a member
of type `itk::ImageMomentsCalculator<itk::Image<float,2> >'
/home/marcelo/programas/Segmentacao/Cone3.cxx:230: parse error before `='


Sorry my question, but i'm starting with ITK.

Tanks a lot for your help me
________________________________________________
Message sent using UebiMiau
2.7.2