ITK  4.6.0
Insight Segmentation and Registration Toolkit
itkEuclideanDistancePointMetric.h
Go to the documentation of this file.
1 /*=========================================================================
2  *
3  * Copyright Insight Software Consortium
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0.txt
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  *
17  *=========================================================================*/
18 #ifndef __itkEuclideanDistancePointMetric_h
19 #define __itkEuclideanDistancePointMetric_h
20 
22 #include "itkCovariantVector.h"
23 #include "itkPointSet.h"
24 #include "itkImage.h"
25 
26 namespace itk
27 {
44 template< typename TFixedPointSet, typename TMovingPointSet,
45  typename TDistanceMap =
48  public PointSetToPointSetMetric< TFixedPointSet, TMovingPointSet >
49 {
50 public:
51 
55 
58 
60  itkNewMacro(Self);
61 
64 
70 
77 
80 
81  typedef TDistanceMap DistanceMapType;
82  typedef typename DistanceMapType::ConstPointer DistanceMapPointer;
83 
85  unsigned int GetNumberOfValues() const;
86 
88  void GetDerivative(const TransformParametersType & parameters,
89  DerivativeType & Derivative) const;
90 
92  MeasureType GetValue(const TransformParametersType & parameters) const;
93 
95  void GetValueAndDerivative(const TransformParametersType & parameters,
96  MeasureType & Value, DerivativeType & Derivative) const;
97 
99  itkSetConstObjectMacro(DistanceMap, DistanceMapType);
100  itkGetConstObjectMacro(DistanceMap, DistanceMapType);
102 
105  itkSetMacro(ComputeSquaredDistance, bool);
106  itkGetConstMacro(ComputeSquaredDistance, bool);
107  itkBooleanMacro(ComputeSquaredDistance);
109 
110 protected:
113 
115  void PrintSelf(std::ostream & os, Indent indent) const;
116 
117 private:
118  EuclideanDistancePointMetric(const Self &); //purposely not implemented
119  void operator=(const Self &); //purposely not implemented
120 
123 };
124 } // end namespace itk
125 
126 #ifndef ITK_MANUAL_INSTANTIATION
127 #include "itkEuclideanDistancePointMetric.hxx"
128 #endif
129 
130 #endif
Light weight base class for most itk classes.
MovingPointSetType::ConstPointer MovingPointSetConstPointer
FixedPointSetType::PointsContainer::ConstIterator PointIterator
void GetValueAndDerivative(const TransformParametersType &parameters, MeasureType &Value, DerivativeType &Derivative) const
FixedPointSetType::ConstPointer FixedPointSetConstPointer
TransformType::ParametersType TransformParametersType
TransformType::JacobianType TransformJacobianType
Transform< CoordinateRepresentationType, itkGetStaticConstMacro(MovingPointSetDimension), itkGetStaticConstMacro(FixedPointSetDimension) > TransformType
Superclass::PointDataIterator PointDataIterator
Computes similarity between two point sets.
Superclass::MovingPointSetType MovingPointSetType
DistanceMapType::ConstPointer DistanceMapPointer
void PrintSelf(std::ostream &os, Indent indent) const
Array2D class representing a 2D array with size defined at construction time.
Definition: itkArray2D.h:44
Computes the minimum distance between a moving point-set and a fixed point-set. A vector of minimum c...
FixedPointSetType::PointDataContainer::ConstIterator PointDataIterator
Superclass::MovingPointSetConstPointer MovingPointSetConstPointer
MeasureType GetValue(const TransformParametersType &parameters) const
PointSetToPointSetMetric< TFixedPointSet, TMovingPointSet > Superclass
unsigned int GetNumberOfValues() const
void GetDerivative(const TransformParametersType &parameters, DerivativeType &Derivative) const
Control indentation during Print() invocation.
Definition: itkIndent.h:49
Superclass::FixedPointSetConstPointer FixedPointSetConstPointer
Superclass::FixedPointSetType FixedPointSetType
Base class for most ITK classes.
Definition: itkObject.h:57
Superclass::TransformJacobianType TransformJacobianType
Templated n-dimensional image class.
Definition: itkImage.h:75
Superclass::DerivativeType DerivativeType
Superclass::TransformParametersType TransformParametersType