SimpleITK  1.2.4
Public Types | Public Member Functions | Private Types | Private Member Functions | Private Attributes | Friends | List of all members
itk::simple::CenteredTransformInitializerFilter Class Reference

CenteredTransformInitializerFilter is a helper class intended to initialize the center of rotation and the translation of Transforms having the center of rotation among their parameters. More...

#include <sitkCenteredTransformInitializerFilter.h>

+ Inheritance diagram for itk::simple::CenteredTransformInitializerFilter:
+ Collaboration diagram for itk::simple::CenteredTransformInitializerFilter:

Public Types

enum  OperationModeType {
  GEOMETRY,
  MOMENTS
}
 
typedef BasicPixelIDTypeList PixelIDTypeList
 
typedef CenteredTransformInitializerFilter Self
 
- Public Types inherited from itk::simple::ProcessObject
typedef ProcessObject Self
 

Public Member Functions

 CenteredTransformInitializerFilter ()
 
Transform Execute (const Image &fixedImage, const Image &movingImage, const Transform &transform)
 
Transform Execute (const Image &fixedImage, const Image &movingImage, const Transform &transform, CenteredTransformInitializerFilter::OperationModeType operationMode)
 
SelfGeometryOn ()
 
std::string GetName () const
 
OperationModeType GetOperationMode () const
 
SelfMomentsOn ()
 
SelfSetOperationMode (OperationModeType OperationMode)
 
std::string ToString () const
 
virtual ~CenteredTransformInitializerFilter ()
 
- Public Member Functions inherited from itk::simple::ProcessObject
virtual void Abort ()
 
virtual int AddCommand (itk::simple::EventEnum event, itk::simple::Command &cmd)
 Add a Command Object to observer the event. More...
 
virtual float GetProgress () const
 An Active Measurement of the progress of execution. More...
 
virtual bool HasCommand (itk::simple::EventEnum event) const
 Query of this object has any registered commands for event. More...
 
 ProcessObject ()
 
virtual void RemoveAllCommands ()
 Remove all registered commands. More...
 
virtual ~ProcessObject ()
 
virtual void DebugOn ()
 
virtual void DebugOff ()
 
virtual bool GetDebug () const
 
virtual void SetDebug (bool debugFlag)
 
virtual void SetNumberOfThreads (unsigned int n)
 
virtual unsigned int GetNumberOfThreads () const
 

Private Types

typedef Transform(Self::* MemberFunctionType) (const Image *fixedImage, const Image *movingImage, const itk::simple::Transform *transform)
 

Private Member Functions

template<class TImageType >
Transform ExecuteInternal (const Image *fixedImage, const Image *movingImage, const itk::simple::Transform *transform)
 

Private Attributes

nsstd::auto_ptr< detail::MemberFunctionFactory< MemberFunctionType > > m_MemberFactory
 
OperationModeType m_OperationMode
 

Friends

struct detail::MemberFunctionAddressor< MemberFunctionType >
 

Additional Inherited Members

- Static Public Member Functions inherited from itk::simple::ProcessObject
static bool GetGlobalDefaultDebug ()
 
static void GlobalDefaultDebugOff ()
 
static void GlobalDefaultDebugOn ()
 
static void SetGlobalDefaultDebug (bool debugFlag)
 
static void GlobalWarningDisplayOn ()
 
static void GlobalWarningDisplayOff ()
 
static void SetGlobalWarningDisplay (bool flag)
 
static bool GetGlobalWarningDisplay ()
 
static void SetGlobalDefaultNumberOfThreads (unsigned int n)
 
static unsigned int GetGlobalDefaultNumberOfThreads ()
 
static double GetGlobalDefaultCoordinateTolerance ()
 Access the global tolerance to determine congruent spaces. More...
 
static void SetGlobalDefaultCoordinateTolerance (double)
 Access the global tolerance to determine congruent spaces. More...
 
static double GetGlobalDefaultDirectionTolerance ()
 Access the global tolerance to determine congruent spaces. More...
 
static void SetGlobalDefaultDirectionTolerance (double)
 Access the global tolerance to determine congruent spaces. More...
 
- Protected Member Functions inherited from itk::simple::ProcessObject
virtual unsigned long AddITKObserver (const itk::EventObject &, itk::Command *)
 
virtual itk::ProcessObjectGetActiveProcess ()
 
virtual void OnActiveProcessDelete ()
 
virtual void onCommandDelete (const itk::simple::Command *cmd) SITK_NOEXCEPT
 
virtual void PreUpdate (itk::ProcessObject *p)
 
virtual void RemoveITKObserver (EventCommand &e)
 
- Protected Member Functions inherited from itk::simple::NonCopyable
 NonCopyable ()
 
- Static Protected Member Functions inherited from itk::simple::ProcessObject
template<class TImageType >
static TImageType::ConstPointer CastImageToITK (const Image &img)
 
template<class TImageType >
static Image CastITKToImage (TImageType *img)
 
template<class TPixelType , unsigned int VImageDimension, unsigned int VLength, template< typename, unsigned int > class TVector>
static Image CastITKToImage (itk::Image< TVector< TPixelType, VLength >, VImageDimension > *img)
 
static const itk::EventObjectGetITKEventObject (EventEnum e)
 
template<typename T >
static std::ostream & ToStringHelper (std::ostream &os, const T &v)
 
static std::ostream & ToStringHelper (std::ostream &os, const char &v)
 
static std::ostream & ToStringHelper (std::ostream &os, const signed char &v)
 
static std::ostream & ToStringHelper (std::ostream &os, const unsigned char &v)
 

Detailed Description

CenteredTransformInitializerFilter is a helper class intended to initialize the center of rotation and the translation of Transforms having the center of rotation among their parameters.

This class is connected to the fixed image, moving image and transform involved in the registration. Two modes of operation are possible:

In the first mode, the geometrical center of the moving image is passed as initial center of rotation to the transform and the vector from the center of the fixed image to the center of the moving image is passed as the initial translation. This mode basically assumes that the anatomical objects to be registered are centered in their respective images. Hence the best initial guess for the registration is the one that superimposes those two centers.

In the second mode, the moments of gray level values are computed for both images. The center of mass of the moving image is then used as center of rotation. The vector between the two centers of mass is passes as the initial translation to the transform. This second approach assumes that the moments of the anatomical objects are similar for both images and hence the best initial guess for registration is to superimpose both mass centers. Note that this assumption will probably not hold in multi-modality registration.

See also
itk::CenteredTransformInitializer

Definition at line 65 of file sitkCenteredTransformInitializerFilter.h.

Member Typedef Documentation

typedef Transform(Self::* itk::simple::CenteredTransformInitializerFilter::MemberFunctionType) (const Image *fixedImage, const Image *movingImage, const itk::simple::Transform *transform)
private

Setup for member function dispatching

Definition at line 115 of file sitkCenteredTransformInitializerFilter.h.

Define the pixels types supported by this filter

Definition at line 77 of file sitkCenteredTransformInitializerFilter.h.

Definition at line 67 of file sitkCenteredTransformInitializerFilter.h.

Member Enumeration Documentation

Enumerator
GEOMETRY 
MOMENTS 

Definition at line 80 of file sitkCenteredTransformInitializerFilter.h.

Constructor & Destructor Documentation

virtual itk::simple::CenteredTransformInitializerFilter::~CenteredTransformInitializerFilter ( )
virtual

Destructor

itk::simple::CenteredTransformInitializerFilter::CenteredTransformInitializerFilter ( )

Default Constructor that takes no arguments and initializes default parameters

Member Function Documentation

Transform itk::simple::CenteredTransformInitializerFilter::Execute ( const Image fixedImage,
const Image movingImage,
const Transform transform 
)

Execute the filter on the input image

Transform itk::simple::CenteredTransformInitializerFilter::Execute ( const Image fixedImage,
const Image movingImage,
const Transform transform,
CenteredTransformInitializerFilter::OperationModeType  operationMode 
)

Execute the filter on the input image with the given parameters

template<class TImageType >
Transform itk::simple::CenteredTransformInitializerFilter::ExecuteInternal ( const Image fixedImage,
const Image movingImage,
const itk::simple::Transform transform 
)
private
Self& itk::simple::CenteredTransformInitializerFilter::GeometryOn ( )
inline

Select between using the geometrical center of the images or using the center of mass given by the image intensities.

Definition at line 108 of file sitkCenteredTransformInitializerFilter.h.

std::string itk::simple::CenteredTransformInitializerFilter::GetName ( ) const
inlinevirtual

Name of this class

Implements itk::simple::ProcessObject.

Definition at line 90 of file sitkCenteredTransformInitializerFilter.h.

OperationModeType itk::simple::CenteredTransformInitializerFilter::GetOperationMode ( ) const
inline

Definition at line 88 of file sitkCenteredTransformInitializerFilter.h.

Self& itk::simple::CenteredTransformInitializerFilter::MomentsOn ( )
inline

Select between using the geometrical center of the images or using the center of mass given by the image intensities.

Definition at line 105 of file sitkCenteredTransformInitializerFilter.h.

Self& itk::simple::CenteredTransformInitializerFilter::SetOperationMode ( OperationModeType  OperationMode)
inline

Definition at line 84 of file sitkCenteredTransformInitializerFilter.h.

std::string itk::simple::CenteredTransformInitializerFilter::ToString ( ) const
virtual

Print ourselves out

Reimplemented from itk::simple::ProcessObject.

Friends And Related Function Documentation

Definition at line 119 of file sitkCenteredTransformInitializerFilter.h.

Member Data Documentation

nsstd::auto_ptr<detail::MemberFunctionFactory<MemberFunctionType> > itk::simple::CenteredTransformInitializerFilter::m_MemberFactory
private

Definition at line 121 of file sitkCenteredTransformInitializerFilter.h.

OperationModeType itk::simple::CenteredTransformInitializerFilter::m_OperationMode
private

Definition at line 124 of file sitkCenteredTransformInitializerFilter.h.


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