Public Types | Public Member Functions | Protected Attributes | Private Member Functions | Private Attributes

cmtk::GroupwiseRegistrationFunctionalXformTemplateBase< TXform > Class Template Reference
[cmtkRegistration Library]

Base class template for groupwise registration functionals. More...

#include <cmtkGroupwiseRegistrationFunctionalXformTemplateBase.h>

Inheritance diagram for cmtk::GroupwiseRegistrationFunctionalXformTemplateBase< TXform >:
Inheritance graph
[legend]
Collaboration diagram for cmtk::GroupwiseRegistrationFunctionalXformTemplateBase< TXform >:
Collaboration graph
[legend]

List of all members.

Public Types

typedef
GroupwiseRegistrationFunctionalBase 
Superclass
 Type of this class.
typedef
GroupwiseRegistrationFunctionalXformTemplateBase
< TXform > 
Self
 Type of this class.
typedef SmartPointer< SelfSmartPtr
 Smart pointer.
typedef TXform XformType
 Transformation type.
typedef XformType::SmartPtr XformPointer
 Smart pointer to transformation type.

Public Member Functions

 GroupwiseRegistrationFunctionalXformTemplateBase ()
 Constructor.
virtual ~GroupwiseRegistrationFunctionalXformTemplateBase ()
 Destructor.
virtual void SetNumberOfHistogramBins (const size_t numberOfHistogramBins)
 Set number of histogram bins.
virtual void SetCropImageHistograms (const bool crop=true)
 Set number of histogram bins.
virtual const XformTypeGetXformByIndex (const size_t idx) const
 Get coordinate transformation for one image in the group.
virtual XformType::SmartPtr GetXformByIndex (const size_t idx)
 Get coordinate transformation for one image in the group.
virtual const XformTypeGetActiveXformByIndex (const size_t idx) const
 Get coordinate transformation for one active image in the group.
virtual XformType::SmartPtr GetActiveXformByIndex (const size_t idx)
 Get coordinate transformation for one active image in the group.

Protected Attributes

size_t m_HistogramBins
 Number of (usable) histogram bins.
size_t m_HistogramKernelRadiusMax
 Maximal radius of histogram kernels.
float m_MaxRelativeNumberOutsidePixels
 Threshold for maximum fraction of reformatted pixels from any given image that may be outside FOV.
byte m_PrivateUserBackgroundValue
 User-defined background value from parent class, transformed to histogram bin index.

Private Member Functions

virtual UniformVolume::SmartPtr PrepareSingleImage (UniformVolume::SmartPtr &image)
 Prepare data for one image.
virtual void PrepareTargetImages ()
 Smooth and pre-scale target images.

Private Attributes

bool m_CropImageHistograms
 Crop image histograms to get rid of high-intensity low-probability samples.

Detailed Description

template<class TXform>
class cmtk::GroupwiseRegistrationFunctionalXformTemplateBase< TXform >

Base class template for groupwise registration functionals.

This class template adds to its base class all basic functionality that depends on the coordinate transformation model (affine vs. nonrigid) but does not require implementation by explicit specialization. In other words, this class provides the interface that is common to all transformation models.

The next level of derived classes exist in several specialized variants that implement the transformation-dependent interfaces, i.e., member functions that exist only for certain transformation models.

Definition at line 71 of file cmtkGroupwiseRegistrationFunctionalXformTemplateBase.h.


Member Typedef Documentation

template<class TXform>
typedef XformType::SmartPtr cmtk::GroupwiseRegistrationFunctionalXformTemplateBase< TXform >::XformPointer
template<class TXform>
typedef TXform cmtk::GroupwiseRegistrationFunctionalXformTemplateBase< TXform >::XformType

Member Function Documentation

template<class TXform>
virtual const XformType* cmtk::GroupwiseRegistrationFunctionalXformTemplateBase< TXform >::GetActiveXformByIndex ( const size_t  idx ) const [inline, virtual]

Get coordinate transformation for one active image in the group.

Parameters:
idxIndex of the volume/transformation.
Returns:
Transformation for the selected volume.

Definition at line 128 of file cmtkGroupwiseRegistrationFunctionalXformTemplateBase.h.

template<class TXform>
virtual XformType::SmartPtr cmtk::GroupwiseRegistrationFunctionalXformTemplateBase< TXform >::GetActiveXformByIndex ( const size_t  idx ) [inline, virtual]

Get coordinate transformation for one active image in the group.

Parameters:
idxIndex of the volume/transformation.
Returns:
Transformation for the selected volume.

Definition at line 137 of file cmtkGroupwiseRegistrationFunctionalXformTemplateBase.h.

template<class TXform>
virtual const XformType* cmtk::GroupwiseRegistrationFunctionalXformTemplateBase< TXform >::GetXformByIndex ( const size_t  idx ) const [inline, virtual]

Get coordinate transformation for one image in the group.

Parameters:
idxIndex of the volume/transformation.
Returns:
Transformation for the selected volume.

Definition at line 110 of file cmtkGroupwiseRegistrationFunctionalXformTemplateBase.h.

template<class TXform>
virtual XformType::SmartPtr cmtk::GroupwiseRegistrationFunctionalXformTemplateBase< TXform >::GetXformByIndex ( const size_t  idx ) [inline, virtual]

Get coordinate transformation for one image in the group.

Parameters:
idxIndex of the volume/transformation.
Returns:
Transformation for the selected volume.

Definition at line 119 of file cmtkGroupwiseRegistrationFunctionalXformTemplateBase.h.

template<class TXform>
virtual void cmtk::GroupwiseRegistrationFunctionalXformTemplateBase< TXform >::SetCropImageHistograms ( const bool  crop = true ) [inline, virtual]

Set number of histogram bins.

Definition at line 101 of file cmtkGroupwiseRegistrationFunctionalXformTemplateBase.h.


Member Data Documentation

template<class TXform>
bool cmtk::GroupwiseRegistrationFunctionalXformTemplateBase< TXform >::m_CropImageHistograms [private]

Crop image histograms to get rid of high-intensity low-probability samples.

Definition at line 162 of file cmtkGroupwiseRegistrationFunctionalXformTemplateBase.h.

template<class TXform>
size_t cmtk::GroupwiseRegistrationFunctionalXformTemplateBase< TXform >::m_HistogramBins [protected]

Number of (usable) histogram bins.

Definition at line 145 of file cmtkGroupwiseRegistrationFunctionalXformTemplateBase.h.

Referenced by cmtk::CongealingFunctional< TXform >::CongealingFunctional().

template<class TXform>
size_t cmtk::GroupwiseRegistrationFunctionalXformTemplateBase< TXform >::m_HistogramKernelRadiusMax [protected]

Maximal radius of histogram kernels.

Definition at line 149 of file cmtkGroupwiseRegistrationFunctionalXformTemplateBase.h.

Threshold for maximum fraction of reformatted pixels from any given image that may be outside FOV.

If the number of outside pixels for any one image exceeds this threshold (as a fraction of total number of reformatted pixels) then an exception is thrown.

Definition at line 155 of file cmtkGroupwiseRegistrationFunctionalXformTemplateBase.h.

User-defined background value from parent class, transformed to histogram bin index.

Definition at line 158 of file cmtkGroupwiseRegistrationFunctionalXformTemplateBase.h.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines