ITK
5.0.0
Insight Segmentation and Registration Toolkit
|
#include <itkEuclideanDistancePointMetric.h>
Computes the minimum distance between a moving point-set and a fixed point-set. A vector of minimum closest point distance is created for each point in the moving point-set. No correspondance is needed. For speed consideration, the point-set with the minimum number of points should be used as the moving point-set. If the number of points is high, the possibility of setting a distance map should improve the speed of the closest point computation.
Reference: "A Method for Registration of 3-D Shapes", IEEE PAMI, Vol 14, No. 2, February 1992
Definition at line 47 of file itkEuclideanDistancePointMetric.h.
Public Types | |
using | ConstPointer = SmartPointer< const Self > |
using | DerivativeType = typename Superclass::DerivativeType |
using | DistanceMapPointer = typename DistanceMapType::ConstPointer |
using | DistanceMapType = TDistanceMap |
using | FixedPointDataIterator = typename Superclass::FixedPointDataIterator |
using | FixedPointIterator = typename Superclass::FixedPointIterator |
using | FixedPointSetConstPointer = typename Superclass::FixedPointSetConstPointer |
using | FixedPointSetType = typename Superclass::FixedPointSetType |
using | MeasureType = typename Superclass::MeasureType |
using | MovingPointDataIterator = typename Superclass::MovingPointDataIterator |
using | MovingPointIterator = typename Superclass::MovingPointIterator |
using | MovingPointSetConstPointer = typename Superclass::MovingPointSetConstPointer |
using | MovingPointSetType = typename Superclass::MovingPointSetType |
using | Pointer = SmartPointer< Self > |
using | Self = EuclideanDistancePointMetric |
using | Superclass = PointSetToPointSetMetric< TFixedPointSet, TMovingPointSet > |
using | TransformJacobianType = typename Superclass::TransformJacobianType |
using | TransformParametersType = typename Superclass::TransformParametersType |
using | TransformPointer = typename Superclass::TransformPointer |
using | TransformType = typename Superclass::TransformType |
Public Types inherited from itk::PointSetToPointSetMetric< TFixedPointSet, TMovingPointSet > | |
using | ConstPointer = SmartPointer< const Self > |
using | CoordinateRepresentationType = Superclass::ParametersValueType |
using | DerivativeType = Superclass::DerivativeType |
using | FixedPointDataIterator = typename FixedPointSetType::PointDataContainer::ConstIterator |
using | FixedPointIterator = typename FixedPointSetType::PointsContainer::ConstIterator |
using | FixedPointSetConstPointer = typename FixedPointSetType::ConstPointer |
using | FixedPointSetType = TFixedPointSet |
using | InputPointType = typename TransformType::InputPointType |
using | MeasureType = Superclass::MeasureType |
using | MovingPointDataIterator = typename MovingPointSetType::PointDataContainer::ConstIterator |
using | MovingPointIterator = typename MovingPointSetType::PointsContainer::ConstIterator |
using | MovingPointSetConstPointer = typename MovingPointSetType::ConstPointer |
using | MovingPointSetPixelType = typename TMovingPointSet::PixelType |
using | MovingPointSetType = TMovingPointSet |
using | OutputPointType = typename TransformType::OutputPointType |
using | ParametersType = Superclass::ParametersType |
using | Pointer = SmartPointer< Self > |
using | Self = PointSetToPointSetMetric |
using | Superclass = MultipleValuedCostFunction |
using | TransformJacobianType = typename TransformType::JacobianType |
using | TransformParametersType = typename TransformType::ParametersType |
using | TransformPointer = typename TransformType::Pointer |
using | TransformType = Transform< CoordinateRepresentationType, Self::MovingPointSetDimension, Self::FixedPointSetDimension > |
Public Types inherited from itk::MultipleValuedCostFunction | |
using | ConstPointer = SmartPointer< const Self > |
using | DerivativeType = Array2D< double > |
using | MeasureType = Array< double > |
using | ParametersType = Superclass::ParametersType |
using | Pointer = SmartPointer< Self > |
using | Self = MultipleValuedCostFunction |
using | Superclass = CostFunction |
Public Types inherited from itk::CostFunctionTemplate< TInternalComputationValueType > | |
using | ConstPointer = SmartPointer< const Self > |
using | ParametersType = OptimizerParameters< TInternalComputationValueType > |
using | ParametersValueType = TInternalComputationValueType |
using | Pointer = SmartPointer< Self > |
using | Self = CostFunctionTemplate |
using | Superclass = Object |
Public Types inherited from itk::Object | |
using | ConstPointer = SmartPointer< const Self > |
using | Pointer = SmartPointer< Self > |
using | Self = Object |
using | Superclass = LightObject |
Public Types inherited from itk::LightObject | |
using | ConstPointer = SmartPointer< const Self > |
using | Pointer = SmartPointer< Self > |
using | Self = LightObject |
Public Member Functions | |
virtual ::itk::LightObject::Pointer | CreateAnother () const |
void | GetDerivative (const TransformParametersType ¶meters, DerivativeType &Derivative) const override |
virtual const char * | GetNameOfClass () const |
unsigned int | GetNumberOfValues () const override |
MeasureType | GetValue (const TransformParametersType ¶meters) const override |
void | GetValueAndDerivative (const TransformParametersType ¶meters, MeasureType &Value, DerivativeType &Derivative) const |
virtual void | SetDistanceMap (const DistanceMapType *_arg) |
virtual const DistanceMapType * | GetDistanceMap () const |
virtual void | SetComputeSquaredDistance (bool _arg) |
virtual bool | GetComputeSquaredDistance () const |
virtual void | ComputeSquaredDistanceOn () |
virtual void | ComputeSquaredDistanceOff () |
Public Member Functions inherited from itk::PointSetToPointSetMetric< TFixedPointSet, TMovingPointSet > | |
virtual TransformType * | GetModifiableTransform () |
unsigned int | GetNumberOfParameters () const override |
virtual const TransformType * | GetTransform () const |
virtual void | Initialize () |
virtual void | SetTransform (TransformType *_arg) |
void | SetTransformParameters (const ParametersType ¶meters) const |
virtual void | SetFixedPointSet (const FixedPointSetType *_arg) |
virtual const FixedPointSetType * | GetFixedPointSet () const |
virtual void | SetMovingPointSet (const MovingPointSetType *_arg) |
virtual const MovingPointSetType * | GetMovingPointSet () const |
Public Member Functions inherited from itk::MultipleValuedCostFunction | |
virtual void | GetDerivative (const ParametersType ¶meters, DerivativeType &derivative) const =0 |
virtual MeasureType | GetValue (const ParametersType ¶meters) const =0 |
Public Member Functions inherited from itk::Object | |
unsigned long | AddObserver (const EventObject &event, Command *) |
unsigned long | AddObserver (const EventObject &event, Command *) const |
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 Member Functions | |
static Pointer | New () |
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 () |
Protected Member Functions | |
EuclideanDistancePointMetric () | |
void | PrintSelf (std::ostream &os, Indent indent) const override |
~EuclideanDistancePointMetric () override=default | |
Protected Member Functions inherited from itk::PointSetToPointSetMetric< TFixedPointSet, TMovingPointSet > | |
PointSetToPointSetMetric () | |
void | PrintSelf (std::ostream &os, Indent indent) const override |
~PointSetToPointSetMetric () override=default | |
Protected Member Functions inherited from itk::MultipleValuedCostFunction | |
MultipleValuedCostFunction ()=default | |
~MultipleValuedCostFunction () 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 () |
Private Attributes | |
bool | m_ComputeSquaredDistance { false } |
DistanceMapPointer | m_DistanceMap |
Additional Inherited Members | |
Static Public Attributes inherited from itk::PointSetToPointSetMetric< TFixedPointSet, TMovingPointSet > | |
static constexpr unsigned int | FixedPointSetDimension = TFixedPointSet::PointDimension |
static constexpr unsigned int | MovingPointSetDimension = TMovingPointSet::PointDimension |
Protected Attributes inherited from itk::PointSetToPointSetMetric< TFixedPointSet, TMovingPointSet > | |
FixedPointSetConstPointer | m_FixedPointSet |
MovingPointSetConstPointer | m_MovingPointSet |
TransformPointer | m_Transform |
Protected Attributes inherited from itk::LightObject | |
std::atomic< int > | m_ReferenceCount |
using itk::EuclideanDistancePointMetric< TFixedPointSet, TMovingPointSet, TDistanceMap >::ConstPointer = SmartPointer< const Self > |
Definition at line 58 of file itkEuclideanDistancePointMetric.h.
using itk::EuclideanDistancePointMetric< TFixedPointSet, TMovingPointSet, TDistanceMap >::DerivativeType = typename Superclass::DerivativeType |
Definition at line 73 of file itkEuclideanDistancePointMetric.h.
using itk::EuclideanDistancePointMetric< TFixedPointSet, TMovingPointSet, TDistanceMap >::DistanceMapPointer = typename DistanceMapType::ConstPointer |
Definition at line 86 of file itkEuclideanDistancePointMetric.h.
using itk::EuclideanDistancePointMetric< TFixedPointSet, TMovingPointSet, TDistanceMap >::DistanceMapType = TDistanceMap |
Definition at line 85 of file itkEuclideanDistancePointMetric.h.
using itk::EuclideanDistancePointMetric< TFixedPointSet, TMovingPointSet, TDistanceMap >::FixedPointDataIterator = typename Superclass::FixedPointDataIterator |
Definition at line 80 of file itkEuclideanDistancePointMetric.h.
using itk::EuclideanDistancePointMetric< TFixedPointSet, TMovingPointSet, TDistanceMap >::FixedPointIterator = typename Superclass::FixedPointIterator |
Definition at line 79 of file itkEuclideanDistancePointMetric.h.
using itk::EuclideanDistancePointMetric< TFixedPointSet, TMovingPointSet, TDistanceMap >::FixedPointSetConstPointer = typename Superclass::FixedPointSetConstPointer |
Definition at line 76 of file itkEuclideanDistancePointMetric.h.
using itk::EuclideanDistancePointMetric< TFixedPointSet, TMovingPointSet, TDistanceMap >::FixedPointSetType = typename Superclass::FixedPointSetType |
Definition at line 74 of file itkEuclideanDistancePointMetric.h.
using itk::EuclideanDistancePointMetric< TFixedPointSet, TMovingPointSet, TDistanceMap >::MeasureType = typename Superclass::MeasureType |
Definition at line 72 of file itkEuclideanDistancePointMetric.h.
using itk::EuclideanDistancePointMetric< TFixedPointSet, TMovingPointSet, TDistanceMap >::MovingPointDataIterator = typename Superclass::MovingPointDataIterator |
Definition at line 83 of file itkEuclideanDistancePointMetric.h.
using itk::EuclideanDistancePointMetric< TFixedPointSet, TMovingPointSet, TDistanceMap >::MovingPointIterator = typename Superclass::MovingPointIterator |
Definition at line 82 of file itkEuclideanDistancePointMetric.h.
using itk::EuclideanDistancePointMetric< TFixedPointSet, TMovingPointSet, TDistanceMap >::MovingPointSetConstPointer = typename Superclass::MovingPointSetConstPointer |
Definition at line 77 of file itkEuclideanDistancePointMetric.h.
using itk::EuclideanDistancePointMetric< TFixedPointSet, TMovingPointSet, TDistanceMap >::MovingPointSetType = typename Superclass::MovingPointSetType |
Definition at line 75 of file itkEuclideanDistancePointMetric.h.
using itk::EuclideanDistancePointMetric< TFixedPointSet, TMovingPointSet, TDistanceMap >::Pointer = SmartPointer< Self > |
Definition at line 57 of file itkEuclideanDistancePointMetric.h.
using itk::EuclideanDistancePointMetric< TFixedPointSet, TMovingPointSet, TDistanceMap >::Self = EuclideanDistancePointMetric |
Standard class type aliases.
Definition at line 54 of file itkEuclideanDistancePointMetric.h.
using itk::EuclideanDistancePointMetric< TFixedPointSet, TMovingPointSet, TDistanceMap >::Superclass = PointSetToPointSetMetric< TFixedPointSet, TMovingPointSet > |
Definition at line 55 of file itkEuclideanDistancePointMetric.h.
using itk::EuclideanDistancePointMetric< TFixedPointSet, TMovingPointSet, TDistanceMap >::TransformJacobianType = typename Superclass::TransformJacobianType |
Definition at line 70 of file itkEuclideanDistancePointMetric.h.
using itk::EuclideanDistancePointMetric< TFixedPointSet, TMovingPointSet, TDistanceMap >::TransformParametersType = typename Superclass::TransformParametersType |
Definition at line 69 of file itkEuclideanDistancePointMetric.h.
using itk::EuclideanDistancePointMetric< TFixedPointSet, TMovingPointSet, TDistanceMap >::TransformPointer = typename Superclass::TransformPointer |
Definition at line 68 of file itkEuclideanDistancePointMetric.h.
using itk::EuclideanDistancePointMetric< TFixedPointSet, TMovingPointSet, TDistanceMap >::TransformType = typename Superclass::TransformType |
Types transferred from the base class.
Definition at line 67 of file itkEuclideanDistancePointMetric.h.
|
protected |
|
overrideprotecteddefault |
|
virtual |
Set/Get if the distance should be squared. When set to true, the filter's computational speed is substantially improved (by avoiding numerous sqrt() calls), but it will result in minimizing the sum of distances^4 instead of the sum of distances^2. Default is false.
|
virtual |
Set/Get if the distance should be squared. When set to true, the filter's computational speed is substantially improved (by avoiding numerous sqrt() calls), but it will result in minimizing the sum of distances^4 instead of the sum of distances^2. Default is false.
|
virtual |
Create an object from an instance, potentially deferring to a factory. This method allows you to create an instance of an object that is exactly the same type as the referring object. This is useful in cases where an object has been cast back to a base class.
Reimplemented from itk::Object.
|
virtual |
Set/Get if the distance should be squared. When set to true, the filter's computational speed is substantially improved (by avoiding numerous sqrt() calls), but it will result in minimizing the sum of distances^4 instead of the sum of distances^2. Default is false.
|
override |
Get the derivatives of the match measure.
|
virtual |
Set/Get the distance map.
|
virtual |
Run-time type information (and related methods).
Reimplemented from itk::PointSetToPointSetMetric< TFixedPointSet, TMovingPointSet >.
|
overridevirtual |
Get the number of values, i.e. the number of points in the moving set.
Implements itk::MultipleValuedCostFunction.
|
override |
Get the match measure, i.e. the value for single valued optimizers.
void itk::EuclideanDistancePointMetric< TFixedPointSet, TMovingPointSet, TDistanceMap >::GetValueAndDerivative | ( | const TransformParametersType & | parameters, |
MeasureType & | Value, | ||
DerivativeType & | Derivative | ||
) | const |
Get value and derivatives for multiple valued optimizers.
|
static |
Method for creation through the object factory.
|
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 if the distance should be squared. When set to true, the filter's computational speed is substantially improved (by avoiding numerous sqrt() calls), but it will result in minimizing the sum of distances^4 instead of the sum of distances^2. Default is false.
|
virtual |
Set/Get the distance map.
|
private |
Definition at line 124 of file itkEuclideanDistancePointMetric.h.
|
private |
Definition at line 123 of file itkEuclideanDistancePointMetric.h.