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<
typename TImage >
77 TImage::ImageDimension);
208 virtual void PrintSelf(std::ostream & os,
Indent indent)
const ITK_OVERRIDE;
228 #ifndef ITK_MANUAL_INSTANTIATION
229 #include "itkImageMomentsCalculator.hxx"
SpatialObjectType::ConstPointer SpatialObjectConstPointer
MatrixType GetPrincipalAxes() const
A templated class holding a M x N size Matrix.
SmartPointer< Self > Pointer
Light weight base class for most itk classes.
MatrixType GetSecondMoments() const
SmartPointer< const Self > ConstPointer
VectorType GetFirstMoments() const
virtual ~ImageMomentsCalculator()
void operator=(const Self &)
static const unsigned int ImageDimension
VectorType GetCenterOfGravity() const
SpatialObjectType::Pointer SpatialObjectPointer
virtual void SetSpatialObjectMask(const SpatialObject< itkGetStaticConstMacro(ImageDimension) > *so)
VectorType GetPrincipalMoments() const
SpatialObjectConstPointer m_SpatialObjectMask
Matrix< ScalarType, itkGetStaticConstMacro(ImageDimension), itkGetStaticConstMacro(ImageDimension) > MatrixType
Compute moments of an n-dimensional image.
Implementation of the composite pattern.
SpatialObject< itkGetStaticConstMacro(ImageDimension) > SpatialObjectType
AffineTransformPointer GetPrincipalAxesToPhysicalAxesTransform(void) const
MatrixType GetCentralMoments() const
AffineTransform< double, itkGetStaticConstMacro(ImageDimension) > AffineTransformType
virtual void Modified() const
virtual void PrintSelf(std::ostream &os, Indent indent) const ITK_OVERRIDE
ImageType::ConstPointer ImageConstPointer
ImageType::Pointer ImagePointer
AffineTransformPointer GetPhysicalAxesToPrincipalAxesTransform(void) const
ScalarType GetTotalMass() const
ImageMomentsCalculator< TImage > Self
Control indentation during Print() invocation.
ImageConstPointer m_Image
AffineTransformType::Pointer AffineTransformPointer
virtual void SetImage(const ImageType *image)
Base class for most ITK classes.
Vector< ScalarType, itkGetStaticConstMacro(ImageDimension) > VectorType