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