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"
59template <
typename TImage>
78 static constexpr unsigned int ImageDimension = TImage::ImageDimension;
111 if (m_Image != image)
124 if (m_SpatialObjectMask != so)
126 m_SpatialObjectMask = so;
237#ifndef ITK_MANUAL_INSTANTIATION
238# include "itkImageMomentsCalculator.hxx"
Compute moments of an n-dimensional image.
VectorType GetCenterOfGravity() const
MatrixType GetCentralMoments() const
typename AffineTransformType::Pointer AffineTransformPointer
virtual void SetSpatialObjectMask(const SpatialObject< Self::ImageDimension > *so)
MatrixType GetPrincipalAxes() const
void PrintSelf(std::ostream &os, Indent indent) const override
VectorType GetFirstMoments() const
~ImageMomentsCalculator() override=default
typename SpatialObjectType::ConstPointer SpatialObjectConstPointer
typename SpatialObjectType::Pointer SpatialObjectPointer
virtual void SetImage(const ImageType *image)
typename ImageType::Pointer ImagePointer
VectorType GetPrincipalMoments() const
AffineTransformPointer GetPhysicalAxesToPrincipalAxesTransform() const
typename ImageType::ConstPointer ImageConstPointer
AffineTransformPointer GetPrincipalAxesToPhysicalAxesTransform() const
ScalarType GetTotalMass() const
MatrixType GetSecondMoments() const
Control indentation during Print() invocation.
Light weight base class for most itk classes.
Base class for most ITK classes.
Implementation of the composite pattern.
SmartPointer< const Self > ConstPointer
SmartPointer< Self > Pointer
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....