ITK
4.2.0
Insight Segmentation and Registration Toolkit
|
#include <itkPointSetToImageMetric.h>
Public Member Functions | |
virtual const FixedPointSetType * | GetFixedPointSet () |
virtual const GradientImageType * | GetGradientImage () |
virtual InterpolatorType * | GetInterpolator () |
virtual const MovingImageType * | GetMovingImage () |
virtual const char * | GetNameOfClass () const |
unsigned int | GetNumberOfParameters (void) const |
virtual const SizeValueType & | GetNumberOfPixelsCounted () |
virtual TransformType * | GetTransform () |
virtual void | Initialize (void) throw ( ExceptionObject ) |
virtual void | SetFixedPointSet (const FixedPointSetType *_arg) |
virtual void | SetInterpolator (InterpolatorType *_arg) |
virtual void | SetMovingImage (const MovingImageType *_arg) |
virtual void | SetTransform (TransformType *_arg) |
void | SetTransformParameters (const ParametersType ¶meters) const |
virtual void | SetComputeGradient (bool _arg) |
virtual const bool & | GetComputeGradient () |
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 |
Static Public Attributes | |
static const unsigned int | MovingImageDimension = TMovingImage::ImageDimension |
static const unsigned int | FixedPointSetDimension = TFixedPointSet::PointDimension |
Protected Member Functions | |
PointSetToImageMetric () | |
void | PrintSelf (std::ostream &os, Indent indent) const |
virtual | ~PointSetToImageMetric () |
Protected Member Functions inherited from itk::SingleValuedCostFunction | |
SingleValuedCostFunction () | |
virtual | ~SingleValuedCostFunction () |
Protected Member Functions inherited from itk::CostFunction | |
CostFunction () | |
virtual | ~CostFunction () |
Protected Member Functions inherited from itk::Object | |
Object () | |
bool | PrintObservers (std::ostream &os, Indent indent) const |
virtual void | SetTimeStamp (const TimeStamp &time) |
virtual | ~Object () |
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 () |
Private Member Functions | |
void | operator= (const Self &) |
PointSetToImageMetric (const Self &) |
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.
typedef SmartPointer< const Self > itk::PointSetToImageMetric< TFixedPointSet, TMovingImage >::ConstPointer |
Reimplemented from itk::SingleValuedCostFunction.
Reimplemented in itk::MeanReciprocalSquareDifferencePointSetToImageMetric< TFixedPointSet, TMovingImage >, itk::NormalizedCorrelationPointSetToImageMetric< TFixedPointSet, TMovingImage >, and itk::MeanSquaresPointSetToImageMetric< TFixedPointSet, TMovingImage >.
Definition at line 55 of file itkPointSetToImageMetric.h.
typedef Superclass::ParametersValueType itk::PointSetToImageMetric< TFixedPointSet, TMovingImage >::CoordinateRepresentationType |
Type used for representing point components
Definition at line 58 of file itkPointSetToImageMetric.h.
typedef Superclass::DerivativeType itk::PointSetToImageMetric< TFixedPointSet, TMovingImage >::DerivativeType |
Type of the derivative.
Reimplemented from itk::SingleValuedCostFunction.
Reimplemented in itk::MeanReciprocalSquareDifferencePointSetToImageMetric< TFixedPointSet, TMovingImage >, itk::NormalizedCorrelationPointSetToImageMetric< TFixedPointSet, TMovingImage >, and itk::MeanSquaresPointSetToImageMetric< TFixedPointSet, TMovingImage >.
Definition at line 118 of file itkPointSetToImageMetric.h.
typedef FixedPointSetType::ConstPointer itk::PointSetToImageMetric< TFixedPointSet, TMovingImage >::FixedPointSetConstPointer |
Reimplemented in itk::MeanReciprocalSquareDifferencePointSetToImageMetric< TFixedPointSet, TMovingImage >, itk::NormalizedCorrelationPointSetToImageMetric< TFixedPointSet, TMovingImage >, and itk::MeanSquaresPointSetToImageMetric< TFixedPointSet, TMovingImage >.
Definition at line 70 of file itkPointSetToImageMetric.h.
typedef TFixedPointSet itk::PointSetToImageMetric< TFixedPointSet, TMovingImage >::FixedPointSetType |
Type of the fixed Image.
Reimplemented in itk::MeanReciprocalSquareDifferencePointSetToImageMetric< TFixedPointSet, TMovingImage >, itk::NormalizedCorrelationPointSetToImageMetric< TFixedPointSet, TMovingImage >, and itk::MeanSquaresPointSetToImageMetric< TFixedPointSet, TMovingImage >.
Definition at line 69 of file itkPointSetToImageMetric.h.
typedef GradientImageFilterType::Pointer itk::PointSetToImageMetric< TFixedPointSet, TMovingImage >::GradientImageFilterPointer |
Definition at line 110 of file itkPointSetToImageMetric.h.
typedef GradientRecursiveGaussianImageFilter< MovingImageType, GradientImageType > itk::PointSetToImageMetric< TFixedPointSet, TMovingImage >::GradientImageFilterType |
Gaussian filter to compute the gradient of the Moving Image
Definition at line 107 of file itkPointSetToImageMetric.h.
typedef SmartPointer< GradientImageType > itk::PointSetToImageMetric< TFixedPointSet, TMovingImage >::GradientImagePointer |
Gaussian filter to compute the gradient of the Moving Image
Definition at line 104 of file itkPointSetToImageMetric.h.
typedef Image< GradientPixelType, itkGetStaticConstMacro(MovingImageDimension) > itk::PointSetToImageMetric< TFixedPointSet, TMovingImage >::GradientImageType |
Gaussian filter to compute the gradient of the Moving Image
Definition at line 103 of file itkPointSetToImageMetric.h.
typedef CovariantVector< RealType, itkGetStaticConstMacro(MovingImageDimension) > itk::PointSetToImageMetric< TFixedPointSet, TMovingImage >::GradientPixelType |
Gaussian filter to compute the gradient of the Moving Image
Reimplemented in itk::MeanReciprocalSquareDifferencePointSetToImageMetric< TFixedPointSet, TMovingImage >, itk::NormalizedCorrelationPointSetToImageMetric< TFixedPointSet, TMovingImage >, and itk::MeanSquaresPointSetToImageMetric< TFixedPointSet, TMovingImage >.
Definition at line 101 of file itkPointSetToImageMetric.h.
typedef TransformType::InputPointType itk::PointSetToImageMetric< TFixedPointSet, TMovingImage >::InputPointType |
Reimplemented in itk::NormalizedCorrelationPointSetToImageMetric< TFixedPointSet, TMovingImage >, itk::MeanReciprocalSquareDifferencePointSetToImageMetric< TFixedPointSet, TMovingImage >, and itk::MeanSquaresPointSetToImageMetric< TFixedPointSet, TMovingImage >.
Definition at line 88 of file itkPointSetToImageMetric.h.
typedef InterpolatorType::Pointer itk::PointSetToImageMetric< TFixedPointSet, TMovingImage >::InterpolatorPointer |
Definition at line 112 of file itkPointSetToImageMetric.h.
typedef InterpolateImageFunction< MovingImageType, CoordinateRepresentationType > itk::PointSetToImageMetric< TFixedPointSet, TMovingImage >::InterpolatorType |
Type of the Interpolator Base class
Definition at line 96 of file itkPointSetToImageMetric.h.
typedef Superclass::MeasureType itk::PointSetToImageMetric< TFixedPointSet, TMovingImage >::MeasureType |
Type of the measure.
Reimplemented from itk::SingleValuedCostFunction.
Reimplemented in itk::MeanReciprocalSquareDifferencePointSetToImageMetric< TFixedPointSet, TMovingImage >, itk::NormalizedCorrelationPointSetToImageMetric< TFixedPointSet, TMovingImage >, and itk::MeanSquaresPointSetToImageMetric< TFixedPointSet, TMovingImage >.
Definition at line 115 of file itkPointSetToImageMetric.h.
typedef MovingImageType::ConstPointer itk::PointSetToImageMetric< TFixedPointSet, TMovingImage >::MovingImageConstPointer |
Reimplemented in itk::MeanReciprocalSquareDifferencePointSetToImageMetric< TFixedPointSet, TMovingImage >, itk::NormalizedCorrelationPointSetToImageMetric< TFixedPointSet, TMovingImage >, and itk::MeanSquaresPointSetToImageMetric< TFixedPointSet, TMovingImage >.
Definition at line 66 of file itkPointSetToImageMetric.h.
typedef TMovingImage::PixelType itk::PointSetToImageMetric< TFixedPointSet, TMovingImage >::MovingImagePixelType |
Definition at line 65 of file itkPointSetToImageMetric.h.
typedef TMovingImage itk::PointSetToImageMetric< TFixedPointSet, TMovingImage >::MovingImageType |
Type of the moving Image.
Reimplemented in itk::MeanReciprocalSquareDifferencePointSetToImageMetric< TFixedPointSet, TMovingImage >, itk::NormalizedCorrelationPointSetToImageMetric< TFixedPointSet, TMovingImage >, and itk::MeanSquaresPointSetToImageMetric< TFixedPointSet, TMovingImage >.
Definition at line 61 of file itkPointSetToImageMetric.h.
typedef TransformType::OutputPointType itk::PointSetToImageMetric< TFixedPointSet, TMovingImage >::OutputPointType |
Reimplemented in itk::NormalizedCorrelationPointSetToImageMetric< TFixedPointSet, TMovingImage >, itk::MeanReciprocalSquareDifferencePointSetToImageMetric< TFixedPointSet, TMovingImage >, and itk::MeanSquaresPointSetToImageMetric< TFixedPointSet, TMovingImage >.
Definition at line 89 of file itkPointSetToImageMetric.h.
typedef Superclass::ParametersType itk::PointSetToImageMetric< TFixedPointSet, TMovingImage >::ParametersType |
Type of the parameters.
Reimplemented from itk::SingleValuedCostFunction.
Definition at line 121 of file itkPointSetToImageMetric.h.
typedef FixedPointSetType::PointDataContainer::ConstIterator itk::PointSetToImageMetric< TFixedPointSet, TMovingImage >::PointDataIterator |
Reimplemented in itk::MeanReciprocalSquareDifferencePointSetToImageMetric< TFixedPointSet, TMovingImage >, itk::NormalizedCorrelationPointSetToImageMetric< TFixedPointSet, TMovingImage >, and itk::MeanSquaresPointSetToImageMetric< TFixedPointSet, TMovingImage >.
Definition at line 80 of file itkPointSetToImageMetric.h.
typedef SmartPointer< Self > itk::PointSetToImageMetric< TFixedPointSet, TMovingImage >::Pointer |
Reimplemented from itk::SingleValuedCostFunction.
Reimplemented in itk::MeanReciprocalSquareDifferencePointSetToImageMetric< TFixedPointSet, TMovingImage >, itk::NormalizedCorrelationPointSetToImageMetric< TFixedPointSet, TMovingImage >, and itk::MeanSquaresPointSetToImageMetric< TFixedPointSet, TMovingImage >.
Definition at line 54 of file itkPointSetToImageMetric.h.
typedef FixedPointSetType::PointsContainer::ConstIterator itk::PointSetToImageMetric< TFixedPointSet, TMovingImage >::PointIterator |
Reimplemented in itk::MeanReciprocalSquareDifferencePointSetToImageMetric< TFixedPointSet, TMovingImage >, itk::NormalizedCorrelationPointSetToImageMetric< TFixedPointSet, TMovingImage >, and itk::MeanSquaresPointSetToImageMetric< TFixedPointSet, TMovingImage >.
Definition at line 79 of file itkPointSetToImageMetric.h.
typedef NumericTraits< MovingImagePixelType >::RealType itk::PointSetToImageMetric< TFixedPointSet, TMovingImage >::RealType |
Gaussian filter to compute the gradient of the Moving Image
Reimplemented in itk::MeanReciprocalSquareDifferencePointSetToImageMetric< TFixedPointSet, TMovingImage >, itk::NormalizedCorrelationPointSetToImageMetric< TFixedPointSet, TMovingImage >, and itk::MeanSquaresPointSetToImageMetric< TFixedPointSet, TMovingImage >.
Definition at line 99 of file itkPointSetToImageMetric.h.
typedef PointSetToImageMetric itk::PointSetToImageMetric< TFixedPointSet, TMovingImage >::Self |
Standard class typedefs.
Reimplemented from itk::SingleValuedCostFunction.
Reimplemented in itk::MeanReciprocalSquareDifferencePointSetToImageMetric< TFixedPointSet, TMovingImage >, itk::NormalizedCorrelationPointSetToImageMetric< TFixedPointSet, TMovingImage >, and itk::MeanSquaresPointSetToImageMetric< TFixedPointSet, TMovingImage >.
Definition at line 52 of file itkPointSetToImageMetric.h.
typedef SingleValuedCostFunction itk::PointSetToImageMetric< TFixedPointSet, TMovingImage >::Superclass |
Reimplemented from itk::SingleValuedCostFunction.
Reimplemented in itk::MeanReciprocalSquareDifferencePointSetToImageMetric< TFixedPointSet, TMovingImage >, itk::NormalizedCorrelationPointSetToImageMetric< TFixedPointSet, TMovingImage >, and itk::MeanSquaresPointSetToImageMetric< TFixedPointSet, TMovingImage >.
Definition at line 53 of file itkPointSetToImageMetric.h.
typedef TransformType::JacobianType itk::PointSetToImageMetric< TFixedPointSet, TMovingImage >::TransformJacobianType |
Reimplemented in itk::MeanReciprocalSquareDifferencePointSetToImageMetric< TFixedPointSet, TMovingImage >, itk::NormalizedCorrelationPointSetToImageMetric< TFixedPointSet, TMovingImage >, and itk::MeanSquaresPointSetToImageMetric< TFixedPointSet, TMovingImage >.
Definition at line 91 of file itkPointSetToImageMetric.h.
typedef TransformType::ParametersType itk::PointSetToImageMetric< TFixedPointSet, TMovingImage >::TransformParametersType |
Reimplemented in itk::MeanReciprocalSquareDifferencePointSetToImageMetric< TFixedPointSet, TMovingImage >, itk::NormalizedCorrelationPointSetToImageMetric< TFixedPointSet, TMovingImage >, and itk::MeanSquaresPointSetToImageMetric< TFixedPointSet, TMovingImage >.
Definition at line 90 of file itkPointSetToImageMetric.h.
typedef TransformType::Pointer itk::PointSetToImageMetric< TFixedPointSet, TMovingImage >::TransformPointer |
Reimplemented in itk::MeanReciprocalSquareDifferencePointSetToImageMetric< TFixedPointSet, TMovingImage >, itk::NormalizedCorrelationPointSetToImageMetric< TFixedPointSet, TMovingImage >, and itk::MeanSquaresPointSetToImageMetric< TFixedPointSet, TMovingImage >.
Definition at line 87 of file itkPointSetToImageMetric.h.
typedef Transform< CoordinateRepresentationType, itkGetStaticConstMacro(MovingImageDimension), itkGetStaticConstMacro(FixedPointSetDimension) > itk::PointSetToImageMetric< TFixedPointSet, TMovingImage >::TransformType |
Type of the Transform Base class
Reimplemented in itk::MeanReciprocalSquareDifferencePointSetToImageMetric< TFixedPointSet, TMovingImage >, itk::NormalizedCorrelationPointSetToImageMetric< TFixedPointSet, TMovingImage >, and itk::MeanSquaresPointSetToImageMetric< TFixedPointSet, TMovingImage >.
Definition at line 85 of file itkPointSetToImageMetric.h.
|
protected |
|
inlineprotectedvirtual |
Definition at line 178 of file itkPointSetToImageMetric.h.
|
private |
|
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 the Fixed Image.
|
virtual |
Get Gradient Image.
|
virtual |
Get a pointer to the Interpolator.
|
virtual |
Get 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 >.
|
inlinevirtual |
Return the number of parameters required by the Transform
Implements itk::CostFunction.
Definition at line 168 of file itkPointSetToImageMetric.h.
|
virtual |
Get the number of pixels considered in the computation.
|
virtual |
Get a pointer to the Transform.
|
virtual |
Initialize the Metric by making sure that all the components are present and plugged together correctly
|
private |
Mutex lock to protect modification to the reference count
Reimplemented from itk::SingleValuedCostFunction.
Reimplemented in itk::NormalizedCorrelationPointSetToImageMetric< TFixedPointSet, TMovingImage >, itk::MeanReciprocalSquareDifferencePointSetToImageMetric< TFixedPointSet, TMovingImage >, and itk::MeanSquaresPointSetToImageMetric< TFixedPointSet, TMovingImage >.
|
protectedvirtual |
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::CostFunction.
Reimplemented in itk::NormalizedCorrelationPointSetToImageMetric< TFixedPointSet, TMovingImage >, and itk::MeanReciprocalSquareDifferencePointSetToImageMetric< TFixedPointSet, TMovingImage >.
|
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 |
Connect the Fixed Image.
|
virtual |
Connect the Interpolator.
|
virtual |
Connect the Moving Image.
|
virtual |
Connect the Transform.
void itk::PointSetToImageMetric< TFixedPointSet, TMovingImage >::SetTransformParameters | ( | const ParametersType & | parameters | ) | const |
Set the parameters defining the Transform.
|
static |
Constants for the image dimensions
Definition at line 76 of file itkPointSetToImageMetric.h.
|
protected |
Definition at line 191 of file itkPointSetToImageMetric.h.
|
protected |
Definition at line 183 of file itkPointSetToImageMetric.h.
|
protected |
Definition at line 193 of file itkPointSetToImageMetric.h.
|
protected |
Definition at line 189 of file itkPointSetToImageMetric.h.
|
protected |
Definition at line 185 of file itkPointSetToImageMetric.h.
|
mutableprotected |
Definition at line 181 of file itkPointSetToImageMetric.h.
|
mutableprotected |
Definition at line 187 of file itkPointSetToImageMetric.h.
|
static |
Constants for the image dimensions
Definition at line 74 of file itkPointSetToImageMetric.h.