ITK
4.6.0
Insight Segmentation and Registration Toolkit
|
#include <itkImagePCADecompositionCalculator.h>
Decomposes an image into directions along basis components.
This calculator computes the projection of an image into a subspace specified by some basis set of images, and, optionally, a mean image (e.g a translation to a new origin). Typically, this basis/mean image will be the mean and principal components of an image data set, as calculated by an ImagePCAShapeModelEstimator. The output of the calculator is a vnl_vector containing the coefficients along each dimension of the provided basis set. To use this calculator, set the basis images with the SetBasisImage method, and optionally set the mean image with the SetMeanImage method. In the PCA case, the zeroth output of the ImagePCAShapeModelEstimator is the mean image and subsequent outputs are the basis images. SetBasisFromModel is a convenience method to set all of this information from a given ImagePCAShapeModelEstimator instance.
This class is templated over the input image type and the type of images used to describe the basis.
Definition at line 60 of file itkImagePCADecompositionCalculator.h.
Public Member Functions | |
void | Compute (void) |
virtual ::itk::LightObject::Pointer | CreateAnother (void) const |
BasisImagePointerVector | GetBasisImages () |
virtual const char * | GetNameOfClass () const |
virtual BasisVectorType | GetProjection () const |
void | SetBasisFromModel (ModelPointerType model) |
void | SetBasisImages (const BasisImagePointerVector &) |
virtual void | SetImage (const InputImageType *_arg) |
virtual const InputImageType * | GetImage () const |
virtual void | SetMeanImage (const BasisImageType *_arg) |
virtual const BasisImageType * | GetMeanImage () const |
Public Member Functions inherited from itk::Object | |
unsigned long | AddObserver (const EventObject &event, Command *) |
unsigned long | AddObserver (const EventObject &event, Command *) const |
virtual void | DebugOff () const |
virtual void | DebugOn () const |
Command * | GetCommand (unsigned long tag) |
bool | GetDebug () const |
MetaDataDictionary & | GetMetaDataDictionary (void) |
const MetaDataDictionary & | GetMetaDataDictionary (void) const |
virtual ModifiedTimeType | GetMTime () const |
virtual const TimeStamp & | GetTimeStamp () const |
bool | HasObserver (const EventObject &event) const |
void | InvokeEvent (const EventObject &) |
void | InvokeEvent (const EventObject &) const |
virtual void | Modified () const |
virtual void | Register () const ITK_OVERRIDE |
void | RemoveAllObservers () |
void | RemoveObserver (unsigned long tag) |
void | SetDebug (bool debugFlag) const |
void | SetMetaDataDictionary (const MetaDataDictionary &rhs) |
virtual void | SetReferenceCount (int) ITK_OVERRIDE |
virtual void | UnRegister () const ITK_OVERRIDE |
virtual void | SetObjectName (std::string _arg) |
virtual const std::string & | GetObjectName () const |
Public Member Functions inherited from itk::LightObject | |
virtual void | Delete () |
virtual int | GetReferenceCount () const |
itkCloneMacro (Self) | |
void | Print (std::ostream &os, Indent indent=0) const |
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 flag) |
Static Public Member Functions inherited from itk::LightObject | |
static void | BreakOnError () |
static Pointer | New () |
Static Public Attributes | |
static const unsigned int | BasisImageDimension = TBasisImage::ImageDimension |
static const unsigned int | InputImageDimension = TInputImage::ImageDimension |
Protected Member Functions | |
void | CalculateBasisMatrix (void) |
void | CalculateRecenteredImageAsVector (void) |
ImagePCADecompositionCalculator () | |
virtual void | PrintSelf (std::ostream &os, Indent indent) const ITK_OVERRIDE |
virtual | ~ImagePCADecompositionCalculator () |
Protected Member Functions inherited from itk::Object | |
Object () | |
bool | PrintObservers (std::ostream &os, Indent indent) const |
virtual void | SetTimeStamp (const TimeStamp &time) |
virtual | ~Object () |
Protected Member Functions inherited from itk::LightObject | |
virtual LightObject::Pointer | InternalClone () const |
LightObject () | |
virtual void | PrintHeader (std::ostream &os, Indent indent) const |
virtual void | PrintTrailer (std::ostream &os, Indent indent) const |
virtual | ~LightObject () |
Private Types | |
typedef BasisImageType::SizeType | BasisSizeType |
Private Member Functions | |
ImagePCADecompositionCalculator (const Self &) | |
void | operator= (const Self &) |
Additional Inherited Members | |
Protected Types inherited from itk::LightObject | |
typedef int | InternalReferenceCountType |
Protected Attributes inherited from itk::LightObject | |
InternalReferenceCountType | m_ReferenceCount |
SimpleFastMutexLock | m_ReferenceCountLock |
typedef TBasisImage::ConstPointer itk::ImagePCADecompositionCalculator< TInputImage, TBasisImage >::BasisImageConstPointer |
Definition at line 85 of file itkImagePCADecompositionCalculator.h.
typedef TBasisImage::Pointer itk::ImagePCADecompositionCalculator< TInputImage, TBasisImage >::BasisImagePointer |
Definition at line 81 of file itkImagePCADecompositionCalculator.h.
typedef std::vector< BasisImagePointer > itk::ImagePCADecompositionCalculator< TInputImage, TBasisImage >::BasisImagePointerVector |
Vector of basis image pointers.
Definition at line 99 of file itkImagePCADecompositionCalculator.h.
typedef TBasisImage itk::ImagePCADecompositionCalculator< TInputImage, TBasisImage >::BasisImageType |
Definition at line 77 of file itkImagePCADecompositionCalculator.h.
typedef vnl_matrix< BasisPixelType > itk::ImagePCADecompositionCalculator< TInputImage, TBasisImage >::BasisMatrixType |
Type definitions for internal vectors and matrices
Definition at line 102 of file itkImagePCADecompositionCalculator.h.
typedef TBasisImage::PixelType itk::ImagePCADecompositionCalculator< TInputImage, TBasisImage >::BasisPixelType |
Basis image pixel type: this is also the type of the optput vector
Definition at line 88 of file itkImagePCADecompositionCalculator.h.
|
private |
Definition at line 143 of file itkImagePCADecompositionCalculator.h.
typedef vnl_vector< BasisPixelType > itk::ImagePCADecompositionCalculator< TInputImage, TBasisImage >::BasisVectorType |
Definition at line 103 of file itkImagePCADecompositionCalculator.h.
typedef SmartPointer< const Self > itk::ImagePCADecompositionCalculator< TInputImage, TBasisImage >::ConstPointer |
Definition at line 67 of file itkImagePCADecompositionCalculator.h.
typedef TInputImage::ConstPointer itk::ImagePCADecompositionCalculator< TInputImage, TBasisImage >::InputImageConstPointer |
Const Pointer type for the image.
Definition at line 84 of file itkImagePCADecompositionCalculator.h.
typedef TInputImage::Pointer itk::ImagePCADecompositionCalculator< TInputImage, TBasisImage >::InputImagePointer |
Pointer types for the image.
Definition at line 80 of file itkImagePCADecompositionCalculator.h.
typedef TInputImage itk::ImagePCADecompositionCalculator< TInputImage, TBasisImage >::InputImageType |
Type definitions for the input images.
Definition at line 73 of file itkImagePCADecompositionCalculator.h.
typedef ImagePCAShapeModelEstimator< TInputImage, TBasisImage >::Pointer itk::ImagePCADecompositionCalculator< TInputImage, TBasisImage >::ModelPointerType |
Type definition of a compatible ImagePCAShapeModelEstimator
Definition at line 122 of file itkImagePCADecompositionCalculator.h.
typedef SmartPointer< Self > itk::ImagePCADecompositionCalculator< TInputImage, TBasisImage >::Pointer |
Definition at line 66 of file itkImagePCADecompositionCalculator.h.
typedef ImagePCADecompositionCalculator itk::ImagePCADecompositionCalculator< TInputImage, TBasisImage >::Self |
Standard class typedefs.
Definition at line 64 of file itkImagePCADecompositionCalculator.h.
typedef Object itk::ImagePCADecompositionCalculator< TInputImage, TBasisImage >::Superclass |
Definition at line 65 of file itkImagePCADecompositionCalculator.h.
|
protected |
|
inlineprotectedvirtual |
Definition at line 135 of file itkImagePCADecompositionCalculator.h.
|
private |
|
protected |
|
protected |
void itk::ImagePCADecompositionCalculator< TInputImage, TBasisImage >::Compute | ( | void | ) |
Compute the PCA decomposition of the input image.
|
virtual |
Create an object from an instance, potentially deferring to a factory. This method allows you to create an instance of an object that is exactly the same type as the referring object. This is useful in cases where an object has been cast back to a base class.
Reimplemented from itk::Object.
|
inline |
Definition at line 118 of file itkImagePCADecompositionCalculator.h.
References itk::ImagePCADecompositionCalculator< TInputImage, TBasisImage >::m_BasisImages.
|
virtual |
Set and get the input image.
|
virtual |
Set and get the mean image.
|
virtual |
Run-time type information (and related methods).
Reimplemented from itk::Object.
|
virtual |
Return the projection of the image.
|
static |
Method for creation through the object factory.
|
private |
|
protectedvirtual |
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.
void itk::ImagePCADecompositionCalculator< TInputImage, TBasisImage >::SetBasisFromModel | ( | ModelPointerType | model | ) |
Set the basis images from a ImagePCAShapeModelEstimator
void itk::ImagePCADecompositionCalculator< TInputImage, TBasisImage >::SetBasisImages | ( | const BasisImagePointerVector & | ) |
Set and get the basis images.
|
virtual |
Set and get the input image.
|
virtual |
Set and get the mean image.
|
static |
Basis Image dimension
Definition at line 96 of file itkImagePCADecompositionCalculator.h.
|
static |
Input Image dimension
Definition at line 92 of file itkImagePCADecompositionCalculator.h.
|
private |
Definition at line 150 of file itkImagePCADecompositionCalculator.h.
Referenced by itk::ImagePCADecompositionCalculator< TInputImage, TBasisImage >::GetBasisImages().
|
private |
Definition at line 154 of file itkImagePCADecompositionCalculator.h.
|
private |
Definition at line 155 of file itkImagePCADecompositionCalculator.h.
|
private |
Definition at line 153 of file itkImagePCADecompositionCalculator.h.
|
private |
Definition at line 149 of file itkImagePCADecompositionCalculator.h.
|
private |
Definition at line 151 of file itkImagePCADecompositionCalculator.h.
|
private |
Definition at line 156 of file itkImagePCADecompositionCalculator.h.
|
private |
Definition at line 148 of file itkImagePCADecompositionCalculator.h.
|
private |
Definition at line 152 of file itkImagePCADecompositionCalculator.h.