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

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

Functional for groupwise registration. More...

#include <cmtkGroupwiseRegistrationRMIFunctional.h>

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

List of all members.

Classes

class  EvaluateThreadParameters
 Thread parameter for entropy evaluation. More...

Public Types

typedef
GroupwiseRegistrationFunctionalXformTemplate
< TXform > 
Superclass
 Type of this class.
typedef
GroupwiseRegistrationRMIFunctional
< 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

 GroupwiseRegistrationRMIFunctional ()
 Constructor.
virtual ~GroupwiseRegistrationRMIFunctional ()
 Destructor.
virtual void SetTemplateGrid (UniformVolume::SmartPtr &templateGrid, const int downsample=1, const bool useTemplateData=false)
 Set template grid.
virtual Self::ReturnType EvaluateWithGradient (CoordinateVector &v, CoordinateVector &g, const Types::Coordinate step=1)
 Compute functional value and gradient.
virtual Self::ReturnType Evaluate ()
 Evaluate functional with currently set parameters.

Protected Types

typedef Matrix2D< typename
Self::ReturnType
CovarianceMatrixType
 Covariance matrix type.
typedef std::vector< long int > SumsAndProductsVectorType
 Type for vectors of sums and products.

Protected Member Functions

Self::ReturnType GetMetric (const SumsAndProductsVectorType &sumOfProductsMatrix, const SumsAndProductsVectorType &sumsVector, const unsigned int totalNumberOfSamples, typename Self::CovarianceMatrixType &covarianceMatrix) const
 Compute metric from partial matrices using temporary matrix storage.
virtual bool Wiggle ()
 Update probabilistic sample table..

Protected Attributes

Self::CovarianceMatrixType m_CovarianceMatrix
 Actual covariance matrix.
SumsAndProductsVectorType m_SumOfProductsMatrix
 Sum of products matrix.
SumsAndProductsVectorType m_SumsVector
 Sums vector.
std::vector
< SumsAndProductsVectorType
m_ThreadSumOfProductsMatrix
 Sum of products matrix.
std::vector
< SumsAndProductsVectorType
m_ThreadSumsVector
 Sums vector.
unsigned int m_TotalNumberOfSamples
 Total number of samples that went into CC computation.
MutexLock m_MutexLock
 Mutex for schared data structures.

Private Types

typedef ThreadParameters< SelfThreadParametersType
 Thread parameters with no further data.

Static Private Member Functions

static void EvaluateThread (void *const threadParameters, const size_t taskIdx, const size_t taskCnt, const size_t threadIdx, const size_t)
 Evaluate functional with currently set parameters.
static void EvaluateProbabilisticThread (void *const threadParameters, const size_t taskIdx, const size_t taskCnt, const size_t threadIdx, const size_t)
 Evaluate functional with currently set parameters with probabilistic sampling.

Detailed Description

template<class TXform>
class cmtk::GroupwiseRegistrationRMIFunctional< TXform >

Functional for groupwise registration.

Definition at line 61 of file cmtkGroupwiseRegistrationRMIFunctional.h.


Member Typedef Documentation

template<class TXform>
typedef Matrix2D<typename Self::ReturnType> cmtk::GroupwiseRegistrationRMIFunctional< TXform >::CovarianceMatrixType [protected]

Covariance matrix type.

Definition at line 105 of file cmtkGroupwiseRegistrationRMIFunctional.h.

template<class TXform>
typedef GroupwiseRegistrationRMIFunctional<TXform> cmtk::GroupwiseRegistrationRMIFunctional< TXform >::Self
template<class TXform>
typedef SmartPointer<Self> cmtk::GroupwiseRegistrationRMIFunctional< TXform >::SmartPtr
template<class TXform>
typedef std::vector<long int> cmtk::GroupwiseRegistrationRMIFunctional< TXform >::SumsAndProductsVectorType [protected]

Type for vectors of sums and products.

Definition at line 111 of file cmtkGroupwiseRegistrationRMIFunctional.h.

template<class TXform>
typedef ThreadParameters<Self> cmtk::GroupwiseRegistrationRMIFunctional< TXform >::ThreadParametersType [private]

Thread parameters with no further data.

Reimplemented from cmtk::GroupwiseRegistrationFunctionalXformTemplate< TXform >.

Definition at line 145 of file cmtkGroupwiseRegistrationRMIFunctional.h.

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

Smart pointer to transformation type.

Reimplemented from cmtk::GroupwiseRegistrationFunctionalXformTemplateBase< TXform >.

Definition at line 78 of file cmtkGroupwiseRegistrationRMIFunctional.h.

template<class TXform>
typedef TXform cmtk::GroupwiseRegistrationRMIFunctional< TXform >::XformType

Transformation type.

Reimplemented from cmtk::GroupwiseRegistrationFunctionalXformTemplateBase< TXform >.

Definition at line 75 of file cmtkGroupwiseRegistrationRMIFunctional.h.


Member Function Documentation

template<class TXform>
Self::ReturnType cmtk::GroupwiseRegistrationRMIFunctional< TXform >::GetMetric ( const SumsAndProductsVectorType sumOfProductsMatrix,
const SumsAndProductsVectorType sumsVector,
const unsigned int  totalNumberOfSamples,
typename Self::CovarianceMatrixType covarianceMatrix 
) const [protected]

Compute metric from partial matrices using temporary matrix storage.


Member Data Documentation

Actual covariance matrix.

Definition at line 108 of file cmtkGroupwiseRegistrationRMIFunctional.h.

template<class TXform>
MutexLock cmtk::GroupwiseRegistrationRMIFunctional< TXform >::m_MutexLock [protected]

Mutex for schared data structures.

Definition at line 138 of file cmtkGroupwiseRegistrationRMIFunctional.h.

Sum of products matrix.

Definition at line 114 of file cmtkGroupwiseRegistrationRMIFunctional.h.

Sums vector.

Definition at line 117 of file cmtkGroupwiseRegistrationRMIFunctional.h.

template<class TXform>
std::vector<SumsAndProductsVectorType> cmtk::GroupwiseRegistrationRMIFunctional< TXform >::m_ThreadSumOfProductsMatrix [protected]

Sum of products matrix.

Definition at line 127 of file cmtkGroupwiseRegistrationRMIFunctional.h.

template<class TXform>
std::vector<SumsAndProductsVectorType> cmtk::GroupwiseRegistrationRMIFunctional< TXform >::m_ThreadSumsVector [protected]

Sums vector.

Definition at line 130 of file cmtkGroupwiseRegistrationRMIFunctional.h.

template<class TXform>
unsigned int cmtk::GroupwiseRegistrationRMIFunctional< TXform >::m_TotalNumberOfSamples [protected]

Total number of samples that went into CC computation.

This must be unsigned int to match MPI's data type for Allgather().

Definition at line 135 of file cmtkGroupwiseRegistrationRMIFunctional.h.


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