ITK
5.0.0
Insight Segmentation and Registration Toolkit
|
#include <itkPointSetToImageMetric.h>
Computes similarity between a point set and an image.
This Class is templated over the type of the input point-set and image. It expects a Transform and an Interpolator to be plugged in. This particular class is the base class for a hierarchy of similarity metrics.
This class computes a value that measures the similarity between the values associated with points in the point set and the transformed Moving image. The Interpolator is used to compute intensity values on non-grid positions resulting from mapping points through the Transform.
Definition at line 48 of file itkPointSetToImageMetric.h.
Public Member Functions | |
virtual const GradientImageType * | GetGradientImage () const |
virtual const InterpolatorType * | GetInterpolator () const |
virtual GradientImageType * | GetModifiableGradientImage () |
virtual InterpolatorType * | GetModifiableInterpolator () |
virtual TransformType * | GetModifiableTransform () |
virtual const char * | GetNameOfClass () const |
unsigned int | GetNumberOfParameters () const override |
virtual const SizeValueType & | GetNumberOfPixelsCounted () const |
virtual const TransformType * | GetTransform () const |
virtual void | Initialize () |
virtual void | SetInterpolator (InterpolatorType *_arg) |
virtual void | SetTransform (TransformType *_arg) |
void | SetTransformParameters (const ParametersType ¶meters) const |
virtual void | SetFixedPointSet (const FixedPointSetType *_arg) |
virtual const FixedPointSetType * | GetFixedPointSet () const |
virtual void | SetMovingImage (const MovingImageType *_arg) |
virtual const MovingImageType * | GetMovingImage () const |
virtual void | SetComputeGradient (bool _arg) |
virtual const bool & | GetComputeGradient () const |
Public Member Functions inherited from itk::SingleValuedCostFunction | |
virtual void | GetDerivative (const ParametersType ¶meters, DerivativeType &derivative) const =0 |
virtual MeasureType | GetValue (const ParametersType ¶meters) const =0 |
virtual void | GetValueAndDerivative (const ParametersType ¶meters, MeasureType &value, DerivativeType &derivative) const |
Public Member Functions inherited from itk::Object | |
unsigned long | AddObserver (const EventObject &event, Command *) |
unsigned long | AddObserver (const EventObject &event, Command *) const |
LightObject::Pointer | CreateAnother () const override |
virtual void | DebugOff () const |
virtual void | DebugOn () const |
Command * | GetCommand (unsigned long tag) |
bool | GetDebug () const |
MetaDataDictionary & | GetMetaDataDictionary () |
const MetaDataDictionary & | GetMetaDataDictionary () const |
virtual ModifiedTimeType | GetMTime () const |
virtual const TimeStamp & | GetTimeStamp () const |
bool | HasObserver (const EventObject &event) const |
void | InvokeEvent (const EventObject &) |
void | InvokeEvent (const EventObject &) const |
virtual void | Modified () const |
void | Register () const override |
void | RemoveAllObservers () |
void | RemoveObserver (unsigned long tag) |
void | SetDebug (bool debugFlag) const |
void | SetReferenceCount (int) override |
void | UnRegister () const noexceptoverride |
void | SetMetaDataDictionary (const MetaDataDictionary &rhs) |
void | SetMetaDataDictionary (MetaDataDictionary &&rrhs) |
virtual void | SetObjectName (std::string _arg) |
virtual const std::string & | GetObjectName () const |
Public Member Functions inherited from itk::LightObject | |
virtual void | Delete () |
virtual int | GetReferenceCount () const |
itkCloneMacro (Self) | |
void | Print (std::ostream &os, Indent indent=0) const |
Static Public Attributes | |
static constexpr unsigned int | FixedPointSetDimension = TFixedPointSet::PointDimension |
static constexpr unsigned int | MovingImageDimension = TMovingImage::ImageDimension |
Protected Member Functions | |
PointSetToImageMetric () | |
void | PrintSelf (std::ostream &os, Indent indent) const override |
~PointSetToImageMetric () override=default | |
Protected Member Functions inherited from itk::SingleValuedCostFunction | |
SingleValuedCostFunction ()=default | |
~SingleValuedCostFunction () override | |
Protected Member Functions inherited from itk::CostFunctionTemplate< TInternalComputationValueType > | |
CostFunctionTemplate ()=default | |
~CostFunctionTemplate () override=default | |
Protected Member Functions inherited from itk::Object | |
Object () | |
bool | PrintObservers (std::ostream &os, Indent indent) const |
virtual void | SetTimeStamp (const TimeStamp &time) |
~Object () override | |
Protected Member Functions inherited from itk::LightObject | |
virtual LightObject::Pointer | InternalClone () const |
LightObject () | |
virtual void | PrintHeader (std::ostream &os, Indent indent) const |
virtual void | PrintTrailer (std::ostream &os, Indent indent) const |
virtual | ~LightObject () |
Protected Attributes | |
bool | m_ComputeGradient |
FixedPointSetConstPointer | m_FixedPointSet |
GradientImagePointer | m_GradientImage |
InterpolatorPointer | m_Interpolator |
MovingImageConstPointer | m_MovingImage |
SizeValueType | m_NumberOfPixelsCounted |
TransformPointer | m_Transform |
Protected Attributes inherited from itk::LightObject | |
std::atomic< int > | m_ReferenceCount |
Additional Inherited Members | |
Static Public Member Functions inherited from itk::Object | |
static bool | GetGlobalWarningDisplay () |
static void | GlobalWarningDisplayOff () |
static void | GlobalWarningDisplayOn () |
static Pointer | New () |
static void | SetGlobalWarningDisplay (bool flag) |
Static Public Member Functions inherited from itk::LightObject | |
static void | BreakOnError () |
static Pointer | New () |
using itk::PointSetToImageMetric< TFixedPointSet, TMovingImage >::ConstPointer = SmartPointer< const Self > |
Definition at line 57 of file itkPointSetToImageMetric.h.
using itk::PointSetToImageMetric< TFixedPointSet, TMovingImage >::CoordinateRepresentationType = Superclass::ParametersValueType |
Type used for representing point components
Definition at line 60 of file itkPointSetToImageMetric.h.
using itk::PointSetToImageMetric< TFixedPointSet, TMovingImage >::DerivativeType = Superclass::DerivativeType |
Type of the derivative.
Definition at line 115 of file itkPointSetToImageMetric.h.
using itk::PointSetToImageMetric< TFixedPointSet, TMovingImage >::FixedPointSetConstPointer = typename FixedPointSetType::ConstPointer |
Definition at line 72 of file itkPointSetToImageMetric.h.
using itk::PointSetToImageMetric< TFixedPointSet, TMovingImage >::FixedPointSetType = TFixedPointSet |
Type of the fixed Image.
Definition at line 71 of file itkPointSetToImageMetric.h.
using itk::PointSetToImageMetric< TFixedPointSet, TMovingImage >::GradientImageFilterPointer = typename GradientImageFilterType::Pointer |
Definition at line 107 of file itkPointSetToImageMetric.h.
using itk::PointSetToImageMetric< TFixedPointSet, TMovingImage >::GradientImageFilterType = GradientRecursiveGaussianImageFilter< MovingImageType, GradientImageType > |
Definition at line 105 of file itkPointSetToImageMetric.h.
using itk::PointSetToImageMetric< TFixedPointSet, TMovingImage >::GradientImagePointer = SmartPointer< GradientImageType > |
Definition at line 103 of file itkPointSetToImageMetric.h.
using itk::PointSetToImageMetric< TFixedPointSet, TMovingImage >::GradientImageType = Image< GradientPixelType, Self::MovingImageDimension > |
Definition at line 102 of file itkPointSetToImageMetric.h.
using itk::PointSetToImageMetric< TFixedPointSet, TMovingImage >::GradientPixelType = CovariantVector< RealType, Self::MovingImageDimension > |
Definition at line 100 of file itkPointSetToImageMetric.h.
using itk::PointSetToImageMetric< TFixedPointSet, TMovingImage >::InputPointType = typename TransformType::InputPointType |
Definition at line 87 of file itkPointSetToImageMetric.h.
using itk::PointSetToImageMetric< TFixedPointSet, TMovingImage >::InterpolatorPointer = typename InterpolatorType::Pointer |
Definition at line 109 of file itkPointSetToImageMetric.h.
using itk::PointSetToImageMetric< TFixedPointSet, TMovingImage >::InterpolatorType = InterpolateImageFunction< MovingImageType, CoordinateRepresentationType > |
Type of the Interpolator Base class
Definition at line 95 of file itkPointSetToImageMetric.h.
using itk::PointSetToImageMetric< TFixedPointSet, TMovingImage >::MeasureType = Superclass::MeasureType |
Type of the measure.
Definition at line 112 of file itkPointSetToImageMetric.h.
using itk::PointSetToImageMetric< TFixedPointSet, TMovingImage >::MovingImageConstPointer = typename MovingImageType::ConstPointer |
Definition at line 68 of file itkPointSetToImageMetric.h.
using itk::PointSetToImageMetric< TFixedPointSet, TMovingImage >::MovingImagePixelType = typename TMovingImage::PixelType |
Definition at line 67 of file itkPointSetToImageMetric.h.
using itk::PointSetToImageMetric< TFixedPointSet, TMovingImage >::MovingImageType = TMovingImage |
Type of the moving Image.
Definition at line 66 of file itkPointSetToImageMetric.h.
using itk::PointSetToImageMetric< TFixedPointSet, TMovingImage >::OutputPointType = typename TransformType::OutputPointType |
Definition at line 88 of file itkPointSetToImageMetric.h.
using itk::PointSetToImageMetric< TFixedPointSet, TMovingImage >::ParametersType = Superclass::ParametersType |
Type of the parameters.
Definition at line 118 of file itkPointSetToImageMetric.h.
using itk::PointSetToImageMetric< TFixedPointSet, TMovingImage >::PointDataIterator = typename FixedPointSetType::PointDataContainer::ConstIterator |
Definition at line 79 of file itkPointSetToImageMetric.h.
using itk::PointSetToImageMetric< TFixedPointSet, TMovingImage >::Pointer = SmartPointer< Self > |
Definition at line 56 of file itkPointSetToImageMetric.h.
using itk::PointSetToImageMetric< TFixedPointSet, TMovingImage >::PointIterator = typename FixedPointSetType::PointsContainer::ConstIterator |
Definition at line 78 of file itkPointSetToImageMetric.h.
using itk::PointSetToImageMetric< TFixedPointSet, TMovingImage >::RealType = typename NumericTraits< MovingImagePixelType >::RealType |
Gaussian filter to compute the gradient of the Moving Image
Definition at line 98 of file itkPointSetToImageMetric.h.
using itk::PointSetToImageMetric< TFixedPointSet, TMovingImage >::Self = PointSetToImageMetric |
Standard class type aliases.
Definition at line 54 of file itkPointSetToImageMetric.h.
using itk::PointSetToImageMetric< TFixedPointSet, TMovingImage >::Superclass = SingleValuedCostFunction |
Definition at line 55 of file itkPointSetToImageMetric.h.
using itk::PointSetToImageMetric< TFixedPointSet, TMovingImage >::TransformJacobianType = typename TransformType::JacobianType |
Definition at line 90 of file itkPointSetToImageMetric.h.
using itk::PointSetToImageMetric< TFixedPointSet, TMovingImage >::TransformParametersType = typename TransformType::ParametersType |
Definition at line 89 of file itkPointSetToImageMetric.h.
using itk::PointSetToImageMetric< TFixedPointSet, TMovingImage >::TransformPointer = typename TransformType::Pointer |
Definition at line 86 of file itkPointSetToImageMetric.h.
using itk::PointSetToImageMetric< TFixedPointSet, TMovingImage >::TransformType = Transform< CoordinateRepresentationType, Self::MovingImageDimension, Self::FixedPointSetDimension > |
Type of the Transform Base class
Definition at line 84 of file itkPointSetToImageMetric.h.
|
protected |
|
overrideprotecteddefault |
|
virtual |
Set/Get the flag for computing the image gradient. When ON the metric derivative is computed using the Jacobian of the transformation and the image gradient. When OFF the metric derivative is computed by finite differences. Mode ON results in higher speed at the price of large memory footprint. Mode OFF results in small memory footprint at the price of large computation time
|
virtual |
Get/Set the Fixed Image.
|
virtual |
|
virtual |
|
virtual |
Get Gradient Image.
|
virtual |
Get a pointer to the Interpolator.
|
virtual |
Get a pointer to the Transform.
|
virtual |
Get/Set the Moving Image.
|
virtual |
Run-time type information (and related methods).
Reimplemented from itk::SingleValuedCostFunction.
Reimplemented in itk::MeanReciprocalSquareDifferencePointSetToImageMetric< TFixedPointSet, TMovingImage >, itk::NormalizedCorrelationPointSetToImageMetric< TFixedPointSet, TMovingImage >, and itk::MeanSquaresPointSetToImageMetric< TFixedPointSet, TMovingImage >.
|
inlineoverridevirtual |
Return the number of parameters required by the Transform
Implements itk::CostFunctionTemplate< TInternalComputationValueType >.
Definition at line 163 of file itkPointSetToImageMetric.h.
|
virtual |
Get the number of pixels considered in the computation.
|
virtual |
|
virtual |
Initialize the Metric by making sure that all the components are present and plugged together correctly
|
overrideprotectedvirtual |
Methods invoked by Print() to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.
Reimplemented from itk::CostFunctionTemplate< TInternalComputationValueType >.
|
virtual |
Set/Get the flag for computing the image gradient. When ON the metric derivative is computed using the Jacobian of the transformation and the image gradient. When OFF the metric derivative is computed by finite differences. Mode ON results in higher speed at the price of large memory footprint. Mode OFF results in small memory footprint at the price of large computation time
|
virtual |
Get/Set the Fixed Image.
|
virtual |
Connect the Interpolator.
|
virtual |
Get/Set the Moving Image.
|
virtual |
Connect the Transform.
void itk::PointSetToImageMetric< TFixedPointSet, TMovingImage >::SetTransformParameters | ( | const ParametersType & | parameters | ) | const |
Set the parameters defining the Transform.
|
static |
Definition at line 76 of file itkPointSetToImageMetric.h.
|
protected |
Definition at line 185 of file itkPointSetToImageMetric.h.
|
protected |
Definition at line 177 of file itkPointSetToImageMetric.h.
|
protected |
Definition at line 187 of file itkPointSetToImageMetric.h.
|
protected |
Definition at line 183 of file itkPointSetToImageMetric.h.
|
protected |
Definition at line 179 of file itkPointSetToImageMetric.h.
|
mutableprotected |
Definition at line 175 of file itkPointSetToImageMetric.h.
|
mutableprotected |
Definition at line 181 of file itkPointSetToImageMetric.h.
|
static |
Constants for the image dimensions
Definition at line 75 of file itkPointSetToImageMetric.h.