ITK  5.2.0
Insight Toolkit
itkEuclideanDistancePointSetToPointSetMetricv4.h
Go to the documentation of this file.
1 /*=========================================================================
2  *
3  * Copyright NumFOCUS
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 itkEuclideanDistancePointSetToPointSetMetricv4_h
19 #define itkEuclideanDistancePointSetToPointSetMetricv4_h
20 
22 
23 namespace itk
24 {
41 template <typename TFixedPointSet,
42  typename TMovingPointSet = TFixedPointSet,
43  class TInternalComputationValueType = double>
45  : public PointSetToPointSetMetricv4<TFixedPointSet, TMovingPointSet, TInternalComputationValueType>
46 {
47 public:
48  ITK_DISALLOW_COPY_AND_MOVE(EuclideanDistancePointSetToPointSetMetricv4);
49 
55 
57  itkNewMacro(Self);
58 
61 
63  using MeasureType = typename Superclass::MeasureType;
64  using DerivativeType = typename Superclass::DerivativeType;
65  using LocalDerivativeType = typename Superclass::LocalDerivativeType;
66  using PointType = typename Superclass::PointType;
67  using PixelType = typename Superclass::PixelType;
68  using PointIdentifier = typename Superclass::PointIdentifier;
69 
74  GetLocalNeighborhoodValue(const PointType &, const PixelType & pixel = 0) const override;
75 
79  void
80  GetLocalNeighborhoodValueAndDerivative(const PointType &,
81  MeasureType &,
83  const PixelType & pixel = 0) const override;
84 
85 protected:
87  ~EuclideanDistancePointSetToPointSetMetricv4() override = default;
88 
89  bool
90  RequiresFixedPointsLocator() const override
91  {
92  return false;
93  }
94 
96  void
97  PrintSelf(std::ostream & os, Indent indent) const override;
98 };
99 } // end namespace itk
100 
101 #ifndef ITK_MANUAL_INSTANTIATION
102 # include "itkEuclideanDistancePointSetToPointSetMetricv4.hxx"
103 #endif
104 
105 #endif
itk::EuclideanDistancePointSetToPointSetMetricv4::PixelType
typename Superclass::PixelType PixelType
Definition: itkEuclideanDistancePointSetToPointSetMetricv4.h:67
itk::EuclideanDistancePointSetToPointSetMetricv4::RequiresFixedPointsLocator
bool RequiresFixedPointsLocator() const override
Definition: itkEuclideanDistancePointSetToPointSetMetricv4.h:90
itk::GTest::TypedefsAndConstructors::Dimension2::PointType
ImageBaseType::PointType PointType
Definition: itkGTestTypedefsAndConstructors.h:51
itk::SmartPointer< Self >
itk::Indent
Control indentation during Print() invocation.
Definition: itkIndent.h:49
itk::EuclideanDistancePointSetToPointSetMetricv4::PointIdentifier
typename Superclass::PointIdentifier PointIdentifier
Definition: itkEuclideanDistancePointSetToPointSetMetricv4.h:68
itk::LightObject
Light weight base class for most itk classes.
Definition: itkLightObject.h:59
itk::EuclideanDistancePointSetToPointSetMetricv4
Computes the Euclidan distance metric between two point sets.
Definition: itkEuclideanDistancePointSetToPointSetMetricv4.h:44
itk::EuclideanDistancePointSetToPointSetMetricv4::PointType
typename Superclass::PointType PointType
Definition: itkEuclideanDistancePointSetToPointSetMetricv4.h:66
itk::EuclideanDistancePointSetToPointSetMetricv4::LocalDerivativeType
typename Superclass::LocalDerivativeType LocalDerivativeType
Definition: itkEuclideanDistancePointSetToPointSetMetricv4.h:65
itkPointSetToPointSetMetricv4.h
itk::ObjectToObjectMetricBaseTemplate::MeasureType
typename Superclass::MeasureType MeasureType
Definition: itkObjectToObjectMetricBase.h:109
itk
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
Definition: itkAnnulusOperator.h:24
itk::ObjectToObjectMetricBaseTemplate::DerivativeType
typename Superclass::DerivativeType DerivativeType
Definition: itkObjectToObjectMetricBase.h:112
itk::PointSetToPointSetMetricv4
Computes similarity between two point sets.
Definition: itkPointSetToPointSetMetricv4.h:70