ITK  6.0.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 * https://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
23namespace itk
24{
41template <typename TFixedPointSet,
42 typename TMovingPointSet = TFixedPointSet,
43 class TInternalComputationValueType = double>
45 : public PointSetToPointSetMetricv4<TFixedPointSet, TMovingPointSet, TInternalComputationValueType>
46{
47public:
48 ITK_DISALLOW_COPY_AND_MOVE(EuclideanDistancePointSetToPointSetMetricv4);
49
55
57 itkNewMacro(Self);
58
60 itkOverrideGetNameOfClassMacro(EuclideanDistancePointSetToPointSetMetricv4);
61
63 using typename Superclass::MeasureType;
64 using typename Superclass::DerivativeType;
65 using typename Superclass::LocalDerivativeType;
66 using typename Superclass::PointType;
67 using typename Superclass::PixelType;
68 using typename Superclass::PointIdentifier;
69
76 itkSetMacro(DistanceThreshold, RealType);
77
82 itkGetConstMacro(DistanceThreshold, RealType);
83
88 GetLocalNeighborhoodValue(const PointType &, const PixelType & pixel = 0) const override;
89
93 void
97 const PixelType & pixel = 0) const override;
98
99protected:
102
103 bool
105 {
106 return false;
107 }
108
110 void
111 PrintSelf(std::ostream & os, Indent indent) const override;
112
113private:
114 RealType m_DistanceThreshold = -1.0;
115};
116} // end namespace itk
117
118#ifndef ITK_MANUAL_INSTANTIATION
119# include "itkEuclideanDistancePointSetToPointSetMetricv4.hxx"
120#endif
121
122#endif
Computes the Euclidan distance metric between two point sets.
void PrintSelf(std::ostream &os, Indent indent) const override
~EuclideanDistancePointSetToPointSetMetricv4() override=default
MeasureType GetLocalNeighborhoodValue(const PointType &, const PixelType &pixel=0) const override
void GetLocalNeighborhoodValueAndDerivative(const PointType &, MeasureType &, LocalDerivativeType &, const PixelType &pixel=0) const override
Simulate a standard C array with copy semantics.
Definition: itkFixedArray.h:54
Control indentation during Print() invocation.
Definition: itkIndent.h:50
Light weight base class for most itk classes.
Computes similarity between two point sets.
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....