Functional that evaluates a voxel-based similarity measure. More...
#include <cmtkVoxelMatchingElasticFunctional.h>
Public Types | |
typedef VoxelMatchingElasticFunctional_Template < VM > | Self |
This class. | |
Public Member Functions | |
VoxelMatchingElasticFunctional_Template (UniformVolume::SmartPtr &reference, UniformVolume::SmartPtr &floating) | |
Constructor. | |
virtual | ~VoxelMatchingElasticFunctional_Template () |
Virtual destructor. | |
virtual void | SetForceOutside (const bool flag=true, const Types::DataItem value=0) |
Set flag and value for forcing values outside the floating image. | |
Self::ReturnType | EvaluateIncremental (const SplineWarpXform *warp, SmartPointer< VM > &localMetric, const DataGrid::RegionType &voi) |
Evaluate functional after change of a single parameter. | |
void | UpdateWarpFixedParameters () |
Update set of active and passive parameters. | |
virtual Self::ReturnType | EvaluateWithGradient (CoordinateVector &v, CoordinateVector &g, const Types::Coordinate step=1) |
Compute functional value and gradient. | |
virtual Self::ReturnType | EvaluateAt (CoordinateVector &v) |
Evaluate functional. | |
virtual Self::ReturnType | Evaluate () |
Evaluate functional. | |
Protected Attributes | |
VM::Exchange * | WarpedVolume |
Ground transformed volume. | |
bool | m_ForceOutsideFlag |
Flag for forcing pixel values outside the floating image. | |
VM::Exchange | m_ForceOutsideValueRescaled |
Rescaled byte value for forcing pixel values outside the floating image. | |
SmartPointer< VM > | IncrementalMetric |
Metric object for incremental computation. | |
DataGrid::IndexType::ValueType | DimsX |
Shortcut variables for x, y, z dimension of the reference image. | |
DataGrid::IndexType::ValueType | DimsY |
DataGrid::IndexType::ValueType | DimsZ |
DataGrid::IndexType::ValueType | FltDimsX |
Shorcut variables for x and y dimensions of the floating image. | |
DataGrid::IndexType::ValueType | FltDimsY |
Functional that evaluates a voxel-based similarity measure.
This class defines the type of functional that is optimized during voxel-based registration. It holds references to reference and floating data and computes similarity as well as its gradient w.r.t. a given transformation.
The metric to be optimized is given by a template parameter, therefore allowing inlined code to be generated for efficient evaluation.
Definition at line 343 of file cmtkVoxelMatchingElasticFunctional.h.
typedef VoxelMatchingElasticFunctional_Template<VM> cmtk::VoxelMatchingElasticFunctional_Template< VM >::Self |
This class.
Reimplemented from cmtk::VoxelMatchingElasticFunctional_WarpTemplate< SplineWarpXform >.
Reimplemented in cmtk::ParallelElasticFunctional< VM >.
Definition at line 349 of file cmtkVoxelMatchingElasticFunctional.h.