ITK
6.0.0
Insight Toolkit
|
#include <itkSpatialObjectToImageStatisticsCalculator.h>
This calculator computes the mean and the covariance matrices of a certain region of an image specified by a spatial object.
Definition at line 37 of file itkSpatialObjectToImageStatisticsCalculator.h.
Public Types | |
using | AccumulateType = typename NumericTraits< PixelType >::AccumulateType |
using | ConstPointer = SmartPointer< const Self > |
using | ImageConstPointer = typename TInputImage::ConstPointer |
using | ImagePointer = typename TInputImage::Pointer |
using | ImageType = TInputImage |
using | IndexType = typename TInputImage::IndexType |
using | MatrixType = Matrix< double, TSampleDimension, TSampleDimension > |
using | PixelType = typename TInputImage::PixelType |
using | Pointer = SmartPointer< Self > |
using | PointType = typename TInputImage::PointType |
using | RegionType = typename TInputImage::RegionType |
using | SampleType = itk::Statistics::ListSample< VectorType > |
using | Self = SpatialObjectToImageStatisticsCalculator |
using | SizeType = typename RegionType::SizeType |
using | SpatialObjectConstPointer = typename SpatialObjectType::ConstPointer |
using | SpatialObjectPointer = typename SpatialObjectType::Pointer |
using | SpatialObjectType = TInputSpatialObject |
using | Superclass = Object |
using | VectorType = Vector< double, TSampleDimension > |
Public Types inherited from itk::Object | |
using | ConstPointer = SmartPointer< const Self > |
using | Pointer = SmartPointer< Self > |
using | Self = Object |
using | Superclass = LightObject |
Public Types inherited from itk::LightObject | |
using | ConstPointer = SmartPointer< const Self > |
using | Pointer = SmartPointer< Self > |
using | Self = LightObject |
Public Member Functions | |
const MatrixType & | GetCovarianceMatrix () const |
const VectorType & | GetMean () const |
const char * | GetNameOfClass () const override |
virtual SizeValueType | GetNumberOfPixels () const |
AccumulateType | GetSum () const |
virtual void | SetImage (const ImageType *_arg) |
virtual void | SetSpatialObject (SpatialObjectType *_arg) |
void | Update () |
virtual void | SetSampleDirection (unsigned int _arg) |
virtual unsigned int | GetSampleDirection () const |
Public Member Functions inherited from itk::Object | |
unsigned long | AddObserver (const EventObject &event, Command *cmd) const |
unsigned long | AddObserver (const EventObject &event, std::function< void(const EventObject &)> function) const |
LightObject::Pointer | CreateAnother () const override |
virtual void | DebugOff () const |
virtual void | DebugOn () const |
Command * | GetCommand (unsigned long tag) |
bool | GetDebug () const |
MetaDataDictionary & | GetMetaDataDictionary () |
const MetaDataDictionary & | GetMetaDataDictionary () const |
virtual ModifiedTimeType | GetMTime () const |
const char * | GetNameOfClass () const override |
virtual const TimeStamp & | GetTimeStamp () const |
bool | HasObserver (const EventObject &event) const |
void | InvokeEvent (const EventObject &) |
void | InvokeEvent (const EventObject &) const |
virtual void | Modified () const |
void | Register () const override |
void | RemoveAllObservers () |
void | RemoveObserver (unsigned long tag) const |
void | SetDebug (bool debugFlag) const |
void | SetReferenceCount (int) override |
void | UnRegister () const noexcept override |
void | SetMetaDataDictionary (const MetaDataDictionary &rhs) |
void | SetMetaDataDictionary (MetaDataDictionary &&rrhs) |
virtual void | SetObjectName (std::string _arg) |
virtual const std::string & | GetObjectName () const |
Public Member Functions inherited from itk::LightObject | |
Pointer | Clone () const |
virtual Pointer | CreateAnother () const |
virtual void | Delete () |
virtual const char * | GetNameOfClass () const |
virtual int | GetReferenceCount () const |
void | Print (std::ostream &os, Indent indent=0) const |
virtual void | Register () const |
virtual void | SetReferenceCount (int) |
virtual void | UnRegister () const noexcept |
Static Public Member Functions | |
static Pointer | New () |
Static Public Member Functions inherited from itk::Object | |
static bool | GetGlobalWarningDisplay () |
static void | GlobalWarningDisplayOff () |
static void | GlobalWarningDisplayOn () |
static Pointer | New () |
static void | SetGlobalWarningDisplay (bool val) |
Static Public Member Functions inherited from itk::LightObject | |
static void | BreakOnError () |
static Pointer | New () |
Static Public Attributes | |
static constexpr unsigned int | ImageDimension = ImageType::ImageDimension |
static constexpr unsigned int | ObjectDimension = TInputSpatialObject::ObjectDimension |
static constexpr unsigned int | SampleDimension = TSampleDimension |
Protected Member Functions | |
bool | ComputeStatistics () |
void | PrintSelf (std::ostream &os, Indent indent) const override |
SpatialObjectToImageStatisticsCalculator () | |
~SpatialObjectToImageStatisticsCalculator () override=default | |
Protected Member Functions inherited from itk::Object | |
Object () | |
bool | PrintObservers (std::ostream &os, Indent indent) const |
void | PrintSelf (std::ostream &os, Indent indent) const override |
virtual void | SetTimeStamp (const TimeStamp &timeStamp) |
~Object () override | |
Protected Member Functions inherited from itk::LightObject | |
virtual LightObject::Pointer | InternalClone () const |
LightObject () | |
virtual void | PrintHeader (std::ostream &os, Indent indent) const |
virtual void | PrintSelf (std::ostream &os, Indent indent) const |
virtual void | PrintTrailer (std::ostream &os, Indent indent) const |
virtual | ~LightObject () |
Private Attributes | |
MatrixType | m_CovarianceMatrix {} |
ImageConstPointer | m_Image {} |
ModifiedTimeType | m_InternalImageTime {} |
ModifiedTimeType | m_InternalSpatialObjectTime {} |
VectorType | m_Mean {} |
TimeStamp | m_ModifiedTime {} |
SizeValueType | m_NumberOfPixels {} |
SampleType::Pointer | m_Sample {} |
unsigned int | m_SampleDirection {} |
SpatialObjectPointer | m_SpatialObject {} |
AccumulateType | m_Sum {} |
Additional Inherited Members | |
Protected Attributes inherited from itk::LightObject | |
std::atomic< int > | m_ReferenceCount {} |
using itk::SpatialObjectToImageStatisticsCalculator< TInputImage, TInputSpatialObject, TSampleDimension >::AccumulateType = typename NumericTraits<PixelType>::AccumulateType |
Definition at line 64 of file itkSpatialObjectToImageStatisticsCalculator.h.
using itk::SpatialObjectToImageStatisticsCalculator< TInputImage, TInputSpatialObject, TSampleDimension >::ConstPointer = SmartPointer<const Self> |
Definition at line 46 of file itkSpatialObjectToImageStatisticsCalculator.h.
using itk::SpatialObjectToImageStatisticsCalculator< TInputImage, TInputSpatialObject, TSampleDimension >::ImageConstPointer = typename TInputImage::ConstPointer |
Definition at line 57 of file itkSpatialObjectToImageStatisticsCalculator.h.
using itk::SpatialObjectToImageStatisticsCalculator< TInputImage, TInputSpatialObject, TSampleDimension >::ImagePointer = typename TInputImage::Pointer |
Definition at line 56 of file itkSpatialObjectToImageStatisticsCalculator.h.
using itk::SpatialObjectToImageStatisticsCalculator< TInputImage, TInputSpatialObject, TSampleDimension >::ImageType = TInputImage |
Type definitions for the input image.
Definition at line 55 of file itkSpatialObjectToImageStatisticsCalculator.h.
using itk::SpatialObjectToImageStatisticsCalculator< TInputImage, TInputSpatialObject, TSampleDimension >::IndexType = typename TInputImage::IndexType |
Definition at line 59 of file itkSpatialObjectToImageStatisticsCalculator.h.
using itk::SpatialObjectToImageStatisticsCalculator< TInputImage, TInputSpatialObject, TSampleDimension >::MatrixType = Matrix<double, TSampleDimension, TSampleDimension> |
Definition at line 79 of file itkSpatialObjectToImageStatisticsCalculator.h.
using itk::SpatialObjectToImageStatisticsCalculator< TInputImage, TInputSpatialObject, TSampleDimension >::PixelType = typename TInputImage::PixelType |
Definition at line 58 of file itkSpatialObjectToImageStatisticsCalculator.h.
using itk::SpatialObjectToImageStatisticsCalculator< TInputImage, TInputSpatialObject, TSampleDimension >::Pointer = SmartPointer<Self> |
Definition at line 45 of file itkSpatialObjectToImageStatisticsCalculator.h.
using itk::SpatialObjectToImageStatisticsCalculator< TInputImage, TInputSpatialObject, TSampleDimension >::PointType = typename TInputImage::PointType |
Definition at line 60 of file itkSpatialObjectToImageStatisticsCalculator.h.
using itk::SpatialObjectToImageStatisticsCalculator< TInputImage, TInputSpatialObject, TSampleDimension >::RegionType = typename TInputImage::RegionType |
Definition at line 61 of file itkSpatialObjectToImageStatisticsCalculator.h.
using itk::SpatialObjectToImageStatisticsCalculator< TInputImage, TInputSpatialObject, TSampleDimension >::SampleType = itk::Statistics::ListSample<VectorType> |
Type definitions for the samples
Definition at line 82 of file itkSpatialObjectToImageStatisticsCalculator.h.
using itk::SpatialObjectToImageStatisticsCalculator< TInputImage, TInputSpatialObject, TSampleDimension >::Self = SpatialObjectToImageStatisticsCalculator |
Standard class type aliases.
Definition at line 43 of file itkSpatialObjectToImageStatisticsCalculator.h.
using itk::SpatialObjectToImageStatisticsCalculator< TInputImage, TInputSpatialObject, TSampleDimension >::SizeType = typename RegionType::SizeType |
Definition at line 62 of file itkSpatialObjectToImageStatisticsCalculator.h.
using itk::SpatialObjectToImageStatisticsCalculator< TInputImage, TInputSpatialObject, TSampleDimension >::SpatialObjectConstPointer = typename SpatialObjectType::ConstPointer |
Definition at line 75 of file itkSpatialObjectToImageStatisticsCalculator.h.
using itk::SpatialObjectToImageStatisticsCalculator< TInputImage, TInputSpatialObject, TSampleDimension >::SpatialObjectPointer = typename SpatialObjectType::Pointer |
Definition at line 74 of file itkSpatialObjectToImageStatisticsCalculator.h.
using itk::SpatialObjectToImageStatisticsCalculator< TInputImage, TInputSpatialObject, TSampleDimension >::SpatialObjectType = TInputSpatialObject |
Type definitions for the input spatial object.
Definition at line 73 of file itkSpatialObjectToImageStatisticsCalculator.h.
using itk::SpatialObjectToImageStatisticsCalculator< TInputImage, TInputSpatialObject, TSampleDimension >::Superclass = Object |
Definition at line 44 of file itkSpatialObjectToImageStatisticsCalculator.h.
using itk::SpatialObjectToImageStatisticsCalculator< TInputImage, TInputSpatialObject, TSampleDimension >::VectorType = Vector<double, TSampleDimension> |
Definition at line 78 of file itkSpatialObjectToImageStatisticsCalculator.h.
|
protected |
|
overrideprotecteddefault |
|
protected |
Compute statistics from the sample vector.
|
inline |
Get the covariance matrix
Definition at line 104 of file itkSpatialObjectToImageStatisticsCalculator.h.
|
inline |
Get the mean
Definition at line 97 of file itkSpatialObjectToImageStatisticsCalculator.h.
|
overridevirtual |
Reimplemented from itk::Object.
|
virtual |
Get the number of pixels inside the object
|
virtual |
Set/Get the direction of the sample
|
inline |
Get the sum of pixels
Definition at line 111 of file itkSpatialObjectToImageStatisticsCalculator.h.
|
static |
Method for creation through the object factory.
|
overrideprotectedvirtual |
Methods invoked by Print() to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.
Reimplemented from itk::Object.
|
virtual |
Set the input image.
|
virtual |
Set/Get the direction of the sample
|
virtual |
Set the input spatial object.
void itk::SpatialObjectToImageStatisticsCalculator< TInputImage, TInputSpatialObject, TSampleDimension >::Update | ( | ) |
Compute of the input image.
|
staticconstexpr |
Definition at line 66 of file itkSpatialObjectToImageStatisticsCalculator.h.
|
private |
Definition at line 139 of file itkSpatialObjectToImageStatisticsCalculator.h.
|
private |
Definition at line 134 of file itkSpatialObjectToImageStatisticsCalculator.h.
|
private |
Definition at line 141 of file itkSpatialObjectToImageStatisticsCalculator.h.
|
private |
Definition at line 142 of file itkSpatialObjectToImageStatisticsCalculator.h.
|
private |
Definition at line 136 of file itkSpatialObjectToImageStatisticsCalculator.h.
|
private |
Definition at line 143 of file itkSpatialObjectToImageStatisticsCalculator.h.
|
private |
Definition at line 138 of file itkSpatialObjectToImageStatisticsCalculator.h.
|
private |
Definition at line 145 of file itkSpatialObjectToImageStatisticsCalculator.h.
|
private |
Definition at line 140 of file itkSpatialObjectToImageStatisticsCalculator.h.
|
private |
Definition at line 135 of file itkSpatialObjectToImageStatisticsCalculator.h.
|
private |
Definition at line 137 of file itkSpatialObjectToImageStatisticsCalculator.h.
|
staticconstexpr |
Definition at line 70 of file itkSpatialObjectToImageStatisticsCalculator.h.
|
staticconstexpr |
Definition at line 68 of file itkSpatialObjectToImageStatisticsCalculator.h.