Classes | Public Types | Public Member Functions | Protected Member Functions | Static Protected Member Functions | Protected Attributes | Friends

cmtk::GroupwiseRegistrationFunctionalXformTemplate< AffineXform > Class Template Reference

Template specialization for groupwise affine registration functionals. More...

#include <cmtkGroupwiseRegistrationFunctionalXformTemplate_Affine.h>

Inheritance diagram for cmtk::GroupwiseRegistrationFunctionalXformTemplate< AffineXform >:
Inheritance graph
[legend]
Collaboration diagram for cmtk::GroupwiseRegistrationFunctionalXformTemplate< AffineXform >:
Collaboration graph
[legend]

List of all members.

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< SelfSmartPtr
 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

ClassStreamoperator<< (ClassStream &stream, const GroupwiseRegistrationFunctionalXformTemplate< AffineXform > &func)
ClassStreamoperator>> (ClassStream &stream, GroupwiseRegistrationFunctionalXformTemplate< AffineXform > &func)

Detailed Description

template<>
class cmtk::GroupwiseRegistrationFunctionalXformTemplate< AffineXform >

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.


Member Typedef Documentation


Constructor & Destructor Documentation

Constructor.

Definition at line 63 of file cmtkGroupwiseRegistrationFunctionalXformTemplate_Affine.h.

Destructor.

Definition at line 70 of file cmtkGroupwiseRegistrationFunctionalXformTemplate_Affine.h.


Member Function Documentation

virtual void cmtk::GroupwiseRegistrationFunctionalXformTemplate< AffineXform >::InterpolateImage ( const size_t  idx,
byte *const   destination 
) [inline, protected, virtual]

Interpolate given moving image to template.

Parameters:
idxIndex of of to reformat to template. This also determines which transformation is used.
destinationThe 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]
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.


Friends And Related Function Documentation

ClassStream& operator<< ( ClassStream stream,
const GroupwiseRegistrationFunctionalXformTemplate< AffineXform > &  func 
) [friend]
ClassStream& operator>> ( ClassStream stream,
GroupwiseRegistrationFunctionalXformTemplate< AffineXform > &  func 
) [friend]

Member Data Documentation

Number of DOFs per transformation.

Definition at line 104 of file cmtkGroupwiseRegistrationFunctionalXformTemplate_Affine.h.


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