Base class for functionals to find a symmetry plane in 3-D volumes. More...
#include <cmtkImageSymmetryPlaneFunctionalBase.h>
Public Types | |
typedef ImageSymmetryPlaneFunctionalBase | Self |
This class. | |
typedef SmartPointer< Self > | SmartPtr |
Smart pointer to this class. | |
typedef Functional | Superclass |
Superclass. | |
Public Member Functions | |
ImageSymmetryPlaneFunctionalBase (UniformVolume::SmartConstPtr &volume) | |
Constructor. | |
ImageSymmetryPlaneFunctionalBase (UniformVolume::SmartConstPtr &volume, const Types::DataItemRange &valueRange) | |
Constructor with value range limits. | |
virtual | ~ImageSymmetryPlaneFunctionalBase () |
Destructor. | |
virtual void | GetParamVector (CoordinateVector &v) |
Get parameter vector. | |
virtual Self::ReturnType | Evaluate ()=0 |
Compute functional value. | |
virtual Self::ReturnType | EvaluateAt (CoordinateVector &v) |
Compute functional value. | |
virtual size_t | ParamVectorDim () const |
Return the symmetry plane's parameter vector dimension. | |
virtual size_t | VariableParamVectorDim () const |
Return the number of variable parameters of the transformation. | |
virtual Types::Coordinate | GetParamStep (const size_t idx, const Types::Coordinate mmStep=1) const |
Return the parameter stepping for 1 mm optimization steps. | |
void | SetFixOffset (const bool fixOffset) |
Set fix offset flag. | |
Static Protected Member Functions | |
static UniformVolume::SmartPtr | ApplyThresholds (const UniformVolume &volume, const Types::DataItemRange &valueRange) |
Apply thresholding to volume data. | |
Protected Attributes | |
UniformVolume::SmartConstPtr | m_Volume |
Volume image. | |
ParametricPlane | m_ParametricPlane |
The symmetry plane. | |
bool | m_FixOffset |
Flag for fixing offset parameter: resulting plane will go through volume center of mass. |
Base class for functionals to find a symmetry plane in 3-D volumes.
This class provides the interface and code that is independent of how the symmetry plane is computed.
Definition at line 53 of file cmtkImageSymmetryPlaneFunctionalBase.h.
This class.
Reimplemented from cmtk::Functional.
Reimplemented in cmtk::ImageSymmetryPlaneFunctionalDevice, and cmtk::ImageSymmetryPlaneFunctional.
Definition at line 59 of file cmtkImageSymmetryPlaneFunctionalBase.h.
Smart pointer to this class.
Reimplemented from cmtk::Functional.
Reimplemented in cmtk::ImageSymmetryPlaneFunctionalDevice, and cmtk::ImageSymmetryPlaneFunctional.
Definition at line 62 of file cmtkImageSymmetryPlaneFunctionalBase.h.
Superclass.
Reimplemented in cmtk::ImageSymmetryPlaneFunctionalDevice, and cmtk::ImageSymmetryPlaneFunctional.
Definition at line 65 of file cmtkImageSymmetryPlaneFunctionalBase.h.
virtual cmtk::ImageSymmetryPlaneFunctionalBase::~ImageSymmetryPlaneFunctionalBase | ( | ) | [inline, virtual] |
Destructor.
Definition at line 74 of file cmtkImageSymmetryPlaneFunctionalBase.h.
virtual Self::ReturnType cmtk::ImageSymmetryPlaneFunctionalBase::Evaluate | ( | ) | [pure virtual] |
Compute functional value.
Reimplemented from cmtk::Functional.
Implemented in cmtk::ImageSymmetryPlaneFunctionalDevice, and cmtk::ImageSymmetryPlaneFunctional.
virtual Self::ReturnType cmtk::ImageSymmetryPlaneFunctionalBase::EvaluateAt | ( | CoordinateVector & | v ) | [inline, virtual] |
Compute functional value.
Definition at line 86 of file cmtkImageSymmetryPlaneFunctionalBase.h.
virtual void cmtk::ImageSymmetryPlaneFunctionalBase::GetParamVector | ( | CoordinateVector & | v ) | [inline, virtual] |
Get parameter vector.
Definition at line 77 of file cmtkImageSymmetryPlaneFunctionalBase.h.
virtual size_t cmtk::ImageSymmetryPlaneFunctionalBase::ParamVectorDim | ( | ) | const [inline, virtual] |
Return the symmetry plane's parameter vector dimension.
Implements cmtk::Functional.
Definition at line 93 of file cmtkImageSymmetryPlaneFunctionalBase.h.
void cmtk::ImageSymmetryPlaneFunctionalBase::SetFixOffset | ( | const bool | fixOffset ) | [inline] |
Set fix offset flag.
Definition at line 102 of file cmtkImageSymmetryPlaneFunctionalBase.h.
virtual size_t cmtk::ImageSymmetryPlaneFunctionalBase::VariableParamVectorDim | ( | ) | const [inline, virtual] |
Return the number of variable parameters of the transformation.
Reimplemented from cmtk::Functional.
Definition at line 96 of file cmtkImageSymmetryPlaneFunctionalBase.h.
bool cmtk::ImageSymmetryPlaneFunctionalBase::m_FixOffset [protected] |
Flag for fixing offset parameter: resulting plane will go through volume center of mass.
Definition at line 115 of file cmtkImageSymmetryPlaneFunctionalBase.h.
The symmetry plane.
Definition at line 112 of file cmtkImageSymmetryPlaneFunctionalBase.h.
Volume image.
Definition at line 109 of file cmtkImageSymmetryPlaneFunctionalBase.h.