18 #ifndef __itkImageMomentsCalculator_h
19 #define __itkImageMomentsCalculator_h
25 #include "vnl/vnl_vector_fixed.h"
26 #include "vnl/vnl_matrix_fixed.h"
27 #include "vnl/vnl_diag_matrix.h"
59 template<
class TImage >
76 itkStaticConstMacro(ImageDimension,
unsigned int,
77 TImage::ImageDimension);
94 itkGetStaticConstMacro(ImageDimension),
111 if ( m_Image != image )
121 virtual void SetSpatialObjectMask(
const SpatialObject< itkGetStaticConstMacro(ImageDimension) > *so)
123 if ( m_SpatialObjectMask != so )
125 m_SpatialObjectMask = so;
143 ScalarType GetTotalMass()
const;
150 VectorType GetFirstMoments()
const;
157 MatrixType GetSecondMoments()
const;
163 VectorType GetCenterOfGravity()
const;
169 MatrixType GetCentralMoments()
const;
177 VectorType GetPrincipalMoments()
const;
191 MatrixType GetPrincipalAxes()
const;
197 AffineTransformPointer GetPrincipalAxesToPhysicalAxesTransform(
void)
const;
203 AffineTransformPointer GetPhysicalAxesToPrincipalAxesTransform(
void)
const;
208 void PrintSelf(std::ostream & os,
Indent indent)
const;
212 void operator=(
const Self &);
228 #ifndef ITK_MANUAL_INSTANTIATION
229 #include "itkImageMomentsCalculator.hxx"