Template specialization for groupwise affine registration functionals. More...
#include <cmtkGroupwiseRegistrationFunctionalXformTemplate_Affine.h>
Classes | |
class | InterpolateImageThreadParameters |
Thread function parameters for image interpolation. More... | |
Public Types | |
typedef GroupwiseRegistrationFunctionalXformTemplateBase < AffineXform > | Superclass |
Type of this class. | |
typedef GroupwiseRegistrationFunctionalXformTemplate < AffineXform > | Self |
Type of this class. | |
typedef SmartPointer< Self > | SmartPtr |
Smart pointer. | |
Public Member Functions | |
GroupwiseRegistrationFunctionalXformTemplate () | |
Constructor. | |
virtual | ~GroupwiseRegistrationFunctionalXformTemplate () |
Destructor. | |
void | SetXformNumberDOFs (const int numberDOFs) |
Set number of degrees of freedom per transformation. | |
void | SetXforms (const std::vector< AffineXform::SmartPtr > &xformVector) |
Set affine transformations. | |
Protected Member Functions | |
virtual void | InterpolateImage (const size_t idx, byte *const destination) |
Interpolate given moving image to template. | |
Static Protected Member Functions | |
static void | InterpolateImageThread (void *const args, const size_t taskIdx, const size_t taskCnt, const size_t, const size_t) |
Image interpolation thread function. | |
static void | InterpolateImageProbabilisticThread (void *const args, const size_t taskIdx, const size_t taskCnt, const size_t, const size_t) |
Image interpolation with probabilistic sampling thread function. | |
Protected Attributes | |
int | m_XformNumberDOFs |
Number of DOFs per transformation. | |
Friends | |
ClassStream & | operator<< (ClassStream &stream, const GroupwiseRegistrationFunctionalXformTemplate< AffineXform > &func) |
ClassStream & | operator>> (ClassStream &stream, GroupwiseRegistrationFunctionalXformTemplate< AffineXform > &func) |
Template specialization for groupwise affine registration functionals.
This class is the specialization of the generic transformation-dependent functional class template, specialized for affine transformations.
Definition at line 48 of file cmtkGroupwiseRegistrationFunctionalXformTemplate_Affine.h.
typedef GroupwiseRegistrationFunctionalXformTemplate<AffineXform> cmtk::GroupwiseRegistrationFunctionalXformTemplate< AffineXform >::Self |
Type of this class.
Reimplemented from cmtk::GroupwiseRegistrationFunctionalXformTemplateBase< AffineXform >.
Definition at line 57 of file cmtkGroupwiseRegistrationFunctionalXformTemplate_Affine.h.
typedef SmartPointer<Self> cmtk::GroupwiseRegistrationFunctionalXformTemplate< AffineXform >::SmartPtr |
Smart pointer.
Reimplemented from cmtk::GroupwiseRegistrationFunctionalXformTemplateBase< AffineXform >.
Definition at line 60 of file cmtkGroupwiseRegistrationFunctionalXformTemplate_Affine.h.
typedef GroupwiseRegistrationFunctionalXformTemplateBase<AffineXform> cmtk::GroupwiseRegistrationFunctionalXformTemplate< AffineXform >::Superclass |
Type of this class.
Reimplemented from cmtk::GroupwiseRegistrationFunctionalXformTemplateBase< AffineXform >.
Definition at line 54 of file cmtkGroupwiseRegistrationFunctionalXformTemplate_Affine.h.
cmtk::GroupwiseRegistrationFunctionalXformTemplate< AffineXform >::GroupwiseRegistrationFunctionalXformTemplate | ( | ) | [inline] |
Constructor.
Definition at line 63 of file cmtkGroupwiseRegistrationFunctionalXformTemplate_Affine.h.
virtual cmtk::GroupwiseRegistrationFunctionalXformTemplate< AffineXform >::~GroupwiseRegistrationFunctionalXformTemplate | ( | ) | [inline, virtual] |
Destructor.
Definition at line 70 of file cmtkGroupwiseRegistrationFunctionalXformTemplate_Affine.h.
virtual void cmtk::GroupwiseRegistrationFunctionalXformTemplate< AffineXform >::InterpolateImage | ( | const size_t | idx, |
byte *const | destination | ||
) | [inline, protected, virtual] |
Interpolate given moving image to template.
idx | Index of of to reformat to template. This also determines which transformation is used. |
destination | The reformatted pixel data is stored in this array. Sufficient memory (for as many pixels as there are in the template grid) must be allocated there. |
Reimplemented from cmtk::GroupwiseRegistrationFunctionalBase.
Definition at line 113 of file cmtkGroupwiseRegistrationFunctionalXformTemplate_Affine.h.
References cmtk::ThreadPool::GetNumberOfThreads(), and cmtk::ThreadPool::Run().
static void cmtk::GroupwiseRegistrationFunctionalXformTemplate< AffineXform >::InterpolateImageProbabilisticThread | ( | void *const | args, |
const size_t | taskIdx, | ||
const size_t | taskCnt, | ||
const | size_t, | ||
const | size_t | ||
) | [inline, static, protected] |
Image interpolation with probabilistic sampling thread function.
Definition at line 193 of file cmtkGroupwiseRegistrationFunctionalXformTemplate_Affine.h.
References cmtk::AffineXform::ApplyInPlace(), and cmtk::UniformVolume::ProbeData().
static void cmtk::GroupwiseRegistrationFunctionalXformTemplate< AffineXform >::InterpolateImageThread | ( | void *const | args, |
const size_t | taskIdx, | ||
const size_t | taskCnt, | ||
const | size_t, | ||
const | size_t | ||
) | [inline, static, protected] |
Image interpolation thread function.
Definition at line 137 of file cmtkGroupwiseRegistrationFunctionalXformTemplate_Affine.h.
References cmtk::AXIS_X, cmtk::AXIS_Y, cmtk::AXIS_Z, and cmtk::UniformVolume::ProbeData().
void cmtk::GroupwiseRegistrationFunctionalXformTemplate< AffineXform >::SetXformNumberDOFs | ( | const int | numberDOFs ) | [inline] |
Set number of degrees of freedom per transformation.
Definition at line 73 of file cmtkGroupwiseRegistrationFunctionalXformTemplate_Affine.h.
void cmtk::GroupwiseRegistrationFunctionalXformTemplate< AffineXform >::SetXforms | ( | const std::vector< AffineXform::SmartPtr > & | xformVector ) | [inline] |
Set affine transformations.
Definition at line 86 of file cmtkGroupwiseRegistrationFunctionalXformTemplate_Affine.h.
ClassStream& operator<< | ( | ClassStream & | stream, |
const GroupwiseRegistrationFunctionalXformTemplate< AffineXform > & | func | ||
) | [friend] |
ClassStream& operator>> | ( | ClassStream & | stream, |
GroupwiseRegistrationFunctionalXformTemplate< AffineXform > & | func | ||
) | [friend] |
int cmtk::GroupwiseRegistrationFunctionalXformTemplate< AffineXform >::m_XformNumberDOFs [protected] |
Number of DOFs per transformation.
Definition at line 104 of file cmtkGroupwiseRegistrationFunctionalXformTemplate_Affine.h.