Base class for voxel matching functionals. More...
#include <cmtkImagePairRegistrationFunctional.h>
Public Types | |
typedef ImagePairRegistrationFunctional | Self |
This class. | |
typedef Functional | Superclass |
Superclass. | |
Public Member Functions | |
ImagePairRegistrationFunctional (UniformVolume::SmartConstPtr &reference, UniformVolume::SmartConstPtr &floating) | |
Constructor. | |
virtual | ~ImagePairRegistrationFunctional () |
Destructor. | |
virtual void | SetForceOutside (const bool flag=true, const Types::DataItem value=0) |
Protected Member Functions | |
cmtkGetSetMacro (MatchedLandmarkList::SmartPtr, MatchedLandmarkList) | |
Optional list of matched landmarks. | |
cmtkGetSetMacro (Self::ReturnType, LandmarkErrorWeight) | |
Weight for the landmark registration error relative to image similarity. | |
const DataGrid::RegionType | GetReferenceGridRange (const Vector3D &fromVOI, const Vector3D &toVOI) |
Find rectilinear area in original reference grid. | |
Protected Attributes | |
UniformVolume::SmartConstPtr | m_ReferenceGrid |
Pointer to the reference grid. | |
UniformVolume::SmartConstPtr | m_FloatingGrid |
Pointer to the floating grid. | |
DataClass | m_ReferenceDataClass |
Data class of reference image. | |
DataClass | m_FloatingDataClass |
Data class of floating image. | |
DataGrid::RegionType | m_ReferenceCropRegion |
Rectangular crop region in the reference volume. | |
ImagePairSimilarityMeasure::SmartPtr | m_Metric |
The metric (similarity measure) object. | |
DataGrid::IndexType | m_FloatingDims |
Grid dimensions of the floating volume. | |
UniformVolume::CoordinateVectorType | m_FloatingSize |
Extents of the floating volume in real-world coordinates. | |
UniformVolume::CoordinateVectorType | m_FloatingInverseDelta |
Inverse pixel sizes of the floating volume. | |
UniformVolume::CoordinateRegionType | m_FloatingCropRegionCoordinates |
Coordinates of the floating image's cropping region. | |
UniformVolume::CoordinateRegionType | m_FloatingCropRegionFractIndex |
Fractional index starting coordinate of the floating's cropping region. | |
DataGrid::IndexType | m_ReferenceDims |
Grid dimensions of the reference volume. | |
UniformVolume::CoordinateVectorType | m_ReferenceSize |
Extents of the reference volume in real-world coordinates. | |
UniformVolume::CoordinateVectorType | m_ReferenceInverseDelta |
Inverse pixel deltas of the reference volume. | |
bool | m_ForceOutsideFlag |
Flag for forcing pixel values outside the floating image. | |
Types::DataItem | m_ForceOutsideValueRescaled |
Rescaled byte value for forcing pixel values outside the floating image. | |
Private Member Functions | |
ImagePairRegistrationFunctional (const ImagePairRegistrationFunctional &) | |
Private copy constructor: prevent copying. | |
void | InitFloating (UniformVolume::SmartConstPtr &floating) |
Initialize internal data structures for floating image. | |
void | InitReference (UniformVolume::SmartConstPtr &reference) |
Initialize internal data structures for reference image. |
Base class for voxel matching functionals.
This class is used as the common base class for more specific functional classes. It contains all data structure and functions that do not depend on any template parameters introduced later in the inheritance hierarchy. It should therefore help avoiding unnecessary code duplication.
Definition at line 66 of file cmtkImagePairRegistrationFunctional.h.
This class.
Reimplemented from cmtk::Functional.
Reimplemented in cmtk::ImagePairAffineRegistrationFunctionalDevice, cmtk::ImagePairAffineRegistrationFunctional, cmtk::ImagePairAffineRegistrationFunctionalTemplate< VM >, cmtk::ImagePairNonrigidRegistrationFunctional, and cmtk::ImagePairNonrigidRegistrationFunctionalTemplate< VM >.
Definition at line 72 of file cmtkImagePairRegistrationFunctional.h.
Superclass.
Reimplemented in cmtk::ImagePairAffineRegistrationFunctionalDevice, cmtk::ImagePairAffineRegistrationFunctional, cmtk::ImagePairAffineRegistrationFunctionalTemplate< VM >, cmtk::ImagePairNonrigidRegistrationFunctional, and cmtk::ImagePairNonrigidRegistrationFunctionalTemplate< VM >.
Definition at line 75 of file cmtkImagePairRegistrationFunctional.h.
cmtk::ImagePairRegistrationFunctional::ImagePairRegistrationFunctional | ( | UniformVolume::SmartConstPtr & | reference, |
UniformVolume::SmartConstPtr & | floating | ||
) | [inline] |
Constructor.
Init pointers to volume and transformation objects and initialize internal data structures.
reference | The reference (i.e. static) volume. |
floating | The floating (i.e. transformed) volume. |
Definition at line 106 of file cmtkImagePairRegistrationFunctional.h.
virtual cmtk::ImagePairRegistrationFunctional::~ImagePairRegistrationFunctional | ( | ) | [inline, virtual] |
Destructor.
Definition at line 117 of file cmtkImagePairRegistrationFunctional.h.
cmtk::ImagePairRegistrationFunctional::ImagePairRegistrationFunctional | ( | const ImagePairRegistrationFunctional & | ) | [inline, private] |
Private copy constructor: prevent copying.
Definition at line 171 of file cmtkImagePairRegistrationFunctional.h.
cmtk::ImagePairRegistrationFunctional::cmtkGetSetMacro | ( | MatchedLandmarkList::SmartPtr | , |
MatchedLandmarkList | |||
) | [protected] |
Optional list of matched landmarks.
cmtk::ImagePairRegistrationFunctional::cmtkGetSetMacro | ( | Self::ReturnType | , |
LandmarkErrorWeight | |||
) | [protected] |
Weight for the landmark registration error relative to image similarity.
virtual void cmtk::ImagePairRegistrationFunctional::SetForceOutside | ( | const bool | flag = true , |
const Types::DataItem | value = 0 |
||
) | [inline, virtual] |
Set flag and value for forcing values outside the floating image.
Reimplemented in cmtk::ImagePairNonrigidRegistrationFunctionalTemplate< VM >.
Definition at line 122 of file cmtkImagePairRegistrationFunctional.h.
Referenced by cmtk::ImagePairNonrigidRegistration::MakeFunctional(), and cmtk::ImagePairAffineRegistration::MakeFunctional().
UniformVolume::CoordinateRegionType cmtk::ImagePairRegistrationFunctional::m_FloatingCropRegionCoordinates [protected] |
Coordinates of the floating image's cropping region.
Definition at line 142 of file cmtkImagePairRegistrationFunctional.h.
UniformVolume::CoordinateRegionType cmtk::ImagePairRegistrationFunctional::m_FloatingCropRegionFractIndex [protected] |
Fractional index starting coordinate of the floating's cropping region.
Definition at line 145 of file cmtkImagePairRegistrationFunctional.h.
Data class of floating image.
Definition at line 88 of file cmtkImagePairRegistrationFunctional.h.
Grid dimensions of the floating volume.
Definition at line 133 of file cmtkImagePairRegistrationFunctional.h.
Pointer to the floating grid.
Definition at line 82 of file cmtkImagePairRegistrationFunctional.h.
UniformVolume::CoordinateVectorType cmtk::ImagePairRegistrationFunctional::m_FloatingInverseDelta [protected] |
Inverse pixel sizes of the floating volume.
Definition at line 139 of file cmtkImagePairRegistrationFunctional.h.
UniformVolume::CoordinateVectorType cmtk::ImagePairRegistrationFunctional::m_FloatingSize [protected] |
Extents of the floating volume in real-world coordinates.
Definition at line 136 of file cmtkImagePairRegistrationFunctional.h.
bool cmtk::ImagePairRegistrationFunctional::m_ForceOutsideFlag [protected] |
Flag for forcing pixel values outside the floating image.
Definition at line 157 of file cmtkImagePairRegistrationFunctional.h.
Rescaled byte value for forcing pixel values outside the floating image.
Definition at line 160 of file cmtkImagePairRegistrationFunctional.h.
The metric (similarity measure) object.
Definition at line 130 of file cmtkImagePairRegistrationFunctional.h.
Rectangular crop region in the reference volume.
Definition at line 91 of file cmtkImagePairRegistrationFunctional.h.
Data class of reference image.
Definition at line 85 of file cmtkImagePairRegistrationFunctional.h.
Grid dimensions of the reference volume.
Definition at line 148 of file cmtkImagePairRegistrationFunctional.h.
Pointer to the reference grid.
Definition at line 79 of file cmtkImagePairRegistrationFunctional.h.
UniformVolume::CoordinateVectorType cmtk::ImagePairRegistrationFunctional::m_ReferenceInverseDelta [protected] |
Inverse pixel deltas of the reference volume.
Definition at line 154 of file cmtkImagePairRegistrationFunctional.h.
UniformVolume::CoordinateVectorType cmtk::ImagePairRegistrationFunctional::m_ReferenceSize [protected] |
Extents of the reference volume in real-world coordinates.
Definition at line 151 of file cmtkImagePairRegistrationFunctional.h.