Functional for groupwise registration. More...
#include <cmtkGroupwiseRegistrationRMIFunctional.h>
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< Self > | SmartPtr |
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< Self > | ThreadParametersType |
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. |
Functional for groupwise registration.
Definition at line 61 of file cmtkGroupwiseRegistrationRMIFunctional.h.
typedef Matrix2D<typename Self::ReturnType> cmtk::GroupwiseRegistrationRMIFunctional< TXform >::CovarianceMatrixType [protected] |
Covariance matrix type.
Definition at line 105 of file cmtkGroupwiseRegistrationRMIFunctional.h.
typedef GroupwiseRegistrationRMIFunctional<TXform> cmtk::GroupwiseRegistrationRMIFunctional< TXform >::Self |
Type of this class.
Reimplemented from cmtk::GroupwiseRegistrationFunctionalXformTemplate< TXform >.
Reimplemented in cmtk::SplineWarpGroupwiseRegistrationRMIFunctional.
Definition at line 69 of file cmtkGroupwiseRegistrationRMIFunctional.h.
typedef SmartPointer<Self> cmtk::GroupwiseRegistrationRMIFunctional< TXform >::SmartPtr |
Smart pointer.
Reimplemented from cmtk::GroupwiseRegistrationFunctionalXformTemplate< TXform >.
Reimplemented in cmtk::SplineWarpGroupwiseRegistrationRMIFunctional.
Definition at line 72 of file cmtkGroupwiseRegistrationRMIFunctional.h.
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.
typedef GroupwiseRegistrationFunctionalXformTemplate<TXform> cmtk::GroupwiseRegistrationRMIFunctional< TXform >::Superclass |
Type of this class.
Reimplemented from cmtk::GroupwiseRegistrationFunctionalXformTemplate< TXform >.
Reimplemented in cmtk::SplineWarpGroupwiseRegistrationRMIFunctional.
Definition at line 66 of file cmtkGroupwiseRegistrationRMIFunctional.h.
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.
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.
typedef TXform cmtk::GroupwiseRegistrationRMIFunctional< TXform >::XformType |
Transformation type.
Reimplemented from cmtk::GroupwiseRegistrationFunctionalXformTemplateBase< TXform >.
Definition at line 75 of file cmtkGroupwiseRegistrationRMIFunctional.h.
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.
Self::CovarianceMatrixType cmtk::GroupwiseRegistrationRMIFunctional< TXform >::m_CovarianceMatrix [protected] |
Actual covariance matrix.
Definition at line 108 of file cmtkGroupwiseRegistrationRMIFunctional.h.
MutexLock cmtk::GroupwiseRegistrationRMIFunctional< TXform >::m_MutexLock [protected] |
Mutex for schared data structures.
Definition at line 138 of file cmtkGroupwiseRegistrationRMIFunctional.h.
SumsAndProductsVectorType cmtk::GroupwiseRegistrationRMIFunctional< TXform >::m_SumOfProductsMatrix [protected] |
Sum of products matrix.
Definition at line 114 of file cmtkGroupwiseRegistrationRMIFunctional.h.
SumsAndProductsVectorType cmtk::GroupwiseRegistrationRMIFunctional< TXform >::m_SumsVector [protected] |
Sums vector.
Definition at line 117 of file cmtkGroupwiseRegistrationRMIFunctional.h.
std::vector<SumsAndProductsVectorType> cmtk::GroupwiseRegistrationRMIFunctional< TXform >::m_ThreadSumOfProductsMatrix [protected] |
Sum of products matrix.
Definition at line 127 of file cmtkGroupwiseRegistrationRMIFunctional.h.
std::vector<SumsAndProductsVectorType> cmtk::GroupwiseRegistrationRMIFunctional< TXform >::m_ThreadSumsVector [protected] |
Sums vector.
Definition at line 130 of file cmtkGroupwiseRegistrationRMIFunctional.h.
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.