ITK  4.1.0
Insight Segmentation and Registration Toolkit
Public Types | Public Member Functions | Protected Types | Protected Member Functions
itk::Statistics::StandardDeviationPerComponentSampleFilter< TSample > Class Template Reference

#include <itkStandardDeviationPerComponentSampleFilter.h>

+ Inheritance diagram for itk::Statistics::StandardDeviationPerComponentSampleFilter< TSample >:
+ Collaboration diagram for itk::Statistics::StandardDeviationPerComponentSampleFilter< TSample >:

List of all members.

Public Types

typedef SmartPointer< const SelfConstPointer
typedef
SimpleDataObjectDecorator
< MeasurementVectorRealType
MeasurementVectorRealDecoratedType
typedef NumericTraits
< MeasurementVectorType >
::RealType 
MeasurementVectorRealType
typedef
TSample::MeasurementVectorSizeType 
MeasurementVectorSizeType
typedef
TSample::MeasurementVectorType 
MeasurementVectorType
typedef
MeasurementVectorRealDecoratedType 
OutputType
typedef SmartPointer< SelfPointer
typedef TSample SampleType
typedef
StandardDeviationPerComponentSampleFilter 
Self
typedef ProcessObject Superclass

Public Member Functions

const SampleTypeGetInput () const
const MeasurementVectorRealType GetMeanPerComponent () const
const
MeasurementVectorRealDecoratedType
GetMeanPerComponentOutput () const
const MeasurementVectorRealType GetStandardDeviationPerComponent () const
const
MeasurementVectorRealDecoratedType
GetStandardDeviationPerComponentOutput () const
void SetInput (const SampleType *sample)

Protected Types

typedef DataObject::Pointer DataObjectPointer
typedef
ProcessObject::DataObjectPointerArraySizeType 
DataObjectPointerArraySizeType

Protected Member Functions

void GenerateData ()
MeasurementVectorSizeType GetMeasurementVectorSize () const
virtual DataObjectPointer MakeOutput (DataObjectPointerArraySizeType idx)
void operator= (const Self &)
void PrintSelf (std::ostream &os, Indent indent) const
 StandardDeviationPerComponentSampleFilter (const Self &)
 StandardDeviationPerComponentSampleFilter ()
virtual ~StandardDeviationPerComponentSampleFilter ()
virtual const char * GetNameOfClass () const
virtual ::itk::LightObject::Pointer CreateAnother (void) const
static Pointer New ()

Detailed Description

template<class TSample>
class itk::Statistics::StandardDeviationPerComponentSampleFilter< TSample >

Calculates the covariance matrix of the target sample data.

The filter calculates first the sample mean and use it in the covariance calculation. The covariance is computed as follows Let $\Sigma$ denotes covariance matrix for the sample, then: When $x_{i}$ is $i$th component of a measurement vector $\vec x$, $\mu_{i}$ is the $i$th componet of the $\vec\mu$, and the $\sigma_{ij}$ is the $ij$th componet $\Sigma$, $\sigma_{ij} = (x_{i} - \mu_{i})(x_{j} - \mu_{j})$

Without the plugged in mean vector, this calculator will perform the single pass mean and covariance calculation algorithm.

Definition at line 49 of file itkStandardDeviationPerComponentSampleFilter.h.


Member Typedef Documentation

template<class TSample >
typedef SmartPointer< const Self > itk::Statistics::StandardDeviationPerComponentSampleFilter< TSample >::ConstPointer

Reimplemented from itk::ProcessObject.

Definition at line 57 of file itkStandardDeviationPerComponentSampleFilter.h.

DataObject pointer

Reimplemented from itk::ProcessObject.

Definition at line 105 of file itkStandardDeviationPerComponentSampleFilter.h.

Reimplemented from itk::ProcessObject.

Definition at line 107 of file itkStandardDeviationPerComponentSampleFilter.h.

MeasurementVector is not a DataObject, we need to decorate it to push it down a ProcessObject's pipeline

Definition at line 80 of file itkStandardDeviationPerComponentSampleFilter.h.

template<class TSample >
typedef TSample::MeasurementVectorSizeType itk::Statistics::StandardDeviationPerComponentSampleFilter< TSample >::MeasurementVectorSizeType

Length of a measurement vector

Definition at line 62 of file itkStandardDeviationPerComponentSampleFilter.h.

template<class TSample >
typedef TSample::MeasurementVectorType itk::Statistics::StandardDeviationPerComponentSampleFilter< TSample >::MeasurementVectorType

Measurement vector type

Definition at line 69 of file itkStandardDeviationPerComponentSampleFilter.h.

Reimplemented from itk::ProcessObject.

Definition at line 56 of file itkStandardDeviationPerComponentSampleFilter.h.

template<class TSample >
typedef TSample itk::Statistics::StandardDeviationPerComponentSampleFilter< TSample >::SampleType

Standard class typedefs.

Reimplemented from itk::ProcessObject.

Definition at line 54 of file itkStandardDeviationPerComponentSampleFilter.h.

Reimplemented from itk::ProcessObject.

Definition at line 55 of file itkStandardDeviationPerComponentSampleFilter.h.


Constructor & Destructor Documentation

template<class TSample >
virtual itk::Statistics::StandardDeviationPerComponentSampleFilter< TSample >::~StandardDeviationPerComponentSampleFilter ( ) [protected, virtual]

Member Function Documentation

template<class TSample >
virtual::itk::LightObject::Pointer itk::Statistics::StandardDeviationPerComponentSampleFilter< TSample >::CreateAnother ( void  ) const [virtual]

Standard Macros

Reimplemented from itk::Object.

template<class TSample >
void itk::Statistics::StandardDeviationPerComponentSampleFilter< TSample >::GenerateData ( void  ) [protected, virtual]

This method causes the filter to generate its output.

Reimplemented from itk::ProcessObject.

template<class TSample >
const SampleType* itk::Statistics::StandardDeviationPerComponentSampleFilter< TSample >::GetInput ( ) const

Return the mean vector

template<class TSample >
virtual const char* itk::Statistics::StandardDeviationPerComponentSampleFilter< TSample >::GetNameOfClass ( ) const [virtual]

Standard Macros

Reimplemented from itk::ProcessObject.

Return the standard deviation vector

template<class TSample >
virtual DataObjectPointer itk::Statistics::StandardDeviationPerComponentSampleFilter< TSample >::MakeOutput ( DataObjectPointerArraySizeType  idx) [protected, virtual]

Make a DataObject of the correct type to used as the specified output. Every ProcessObject subclass must be able to create a DataObject that can be used as a specified output. This method is automatically called when DataObject::DisconnectPipeline() is called. DataObject::DisconnectPipeline, disconnects a data object from being an output of its current source. When the data object is disconnected, the ProcessObject needs to construct a replacement output data object so that the ProcessObject is in a valid state. So DataObject::DisconnectPipeline eventually calls ProcessObject::MakeOutput. Note that MakeOutput always returns a itkSmartPointer to a DataObject. ImageSource and MeshSource override this method to create the correct type of image and mesh respectively. If a filter has multiple outputs of different types, then that filter must provide an implementation of MakeOutput().

Reimplemented from itk::ProcessObject.

template<class TSample >
static Pointer itk::Statistics::StandardDeviationPerComponentSampleFilter< TSample >::New ( ) [static]

Standard Macros

Reimplemented from itk::Object.

template<class TSample >
void itk::Statistics::StandardDeviationPerComponentSampleFilter< TSample >::operator= ( const Self ) [protected]

Time when GenerateOutputInformation was last called.

Reimplemented from itk::ProcessObject.

template<class TSample >
void itk::Statistics::StandardDeviationPerComponentSampleFilter< TSample >::PrintSelf ( std::ostream &  os,
Indent  indent 
) const [protected, virtual]

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::ProcessObject.

template<class TSample >
void itk::Statistics::StandardDeviationPerComponentSampleFilter< TSample >::SetInput ( const SampleType sample)

The documentation for this class was generated from the following file: