18 #ifndef itkSpatialObjectToImageStatisticsCalculator_h
19 #define itkSpatialObjectToImageStatisticsCalculator_h
36 template<
typename TInputImage,
typename TInputSpatialObject,
unsigned int TSampleDimension = 1 >
61 itkStaticConstMacro(ImageDimension,
unsigned int,
62 ImageType::ImageDimension);
64 itkStaticConstMacro(SampleDimension,
unsigned int,
67 itkStaticConstMacro(ObjectDimension,
unsigned int,
68 TInputSpatialObject::ObjectDimension);
87 itkSetMacro(SampleDirection,
unsigned int);
88 itkGetConstMacro(SampleDirection,
unsigned int);
115 virtual void PrintSelf(std::ostream & os,
Indent indent)
const ITK_OVERRIDE;
117 bool ComputeStatistics();
137 #ifndef ITK_MANUAL_INSTANTIATION
138 #include "itkSpatialObjectToImageStatisticsCalculator.hxx"
AccumulateType GetSum() const
itk::Statistics::ListSample< VectorType > SampleType
TInputImage::ConstPointer ImageConstPointer
Light weight base class for most itk classes.
SmartPointer< const Self > ConstPointer
Matrix< double, TSampleDimension, TSampleDimension > MatrixType
unsigned long ModifiedTimeType
TInputImage::PixelType PixelType
TInputImage::Pointer ImagePointer
Vector< double, TSampleDimension > VectorType
unsigned long SizeValueType
SpatialObjectType::Pointer SpatialObjectPointer
Iterates over a flood-filled spatial function with read-only access to pixels.
TInputImage::IndexType IndexType
MatrixType m_CovarianceMatrix
const MatrixType & GetCovarianceMatrix() const
ImageConstPointer m_Image
const VectorType & GetMean() const
Implementation of the composite pattern.
Generate a unique, increasing time value.
unsigned int m_SampleDirection
ModifiedTimeType m_InternalSpatialObjectTime
TInputSpatialObject SpatialObjectType
ModifiedTimeType m_InternalImageTime
itk::FloodFilledSpatialFunctionConditionalConstIterator< ImageType, SpatialObjectType > IteratorType
SmartPointer< Self > Pointer
This class is the native implementation of the a Sample with an STL container.
NumericTraits< PixelType >::AccumulateType AccumulateType
Control indentation during Print() invocation.
Define additional traits for native types such as int or float.
SpatialObjectToImageStatisticsCalculator Self
Base class for most ITK classes.
SpatialObjectPointer m_SpatialObject
SpatialObjectType::ConstPointer SpatialObjectConstPointer
SampleType::Pointer m_Sample
Templated n-dimensional image class.
virtual ~SpatialObjectToImageStatisticsCalculator() override
SizeValueType m_NumberOfPixels
ImageBaseType::IndexType IndexType