go home Home | Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals | Related Pages
elxCorrespondingPointsEuclideanDistanceMetric.h
Go to the documentation of this file.
1/*=========================================================================
2 *
3 * Copyright UMC Utrecht and contributors
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 elxCorrespondingPointsEuclideanDistanceMetric_h
19#define elxCorrespondingPointsEuclideanDistanceMetric_h
20
21#include "elxIncludes.h" // include first to avoid MSVS warning
23
24namespace elastix
25{
26
39template <class TElastix>
41 : public itk::CorrespondingPointsEuclideanDistancePointMetric<typename MetricBase<TElastix>::FixedPointSetType,
42 typename MetricBase<TElastix>::MovingPointSetType>
43 , public MetricBase<TElastix>
44{
45public:
47
54 using Pointer = itk::SmartPointer<Self>;
55 using ConstPointer = itk::SmartPointer<const Self>;
56
58 itkNewMacro(Self);
59
62
67 elxClassNameMacro("CorrespondingPointsEuclideanDistanceMetric");
68
71 using typename Superclass1::FixedPointSetType;
75
76 // using typename Superclass1::FixedImageRegionType;
77 using typename Superclass1::TransformType;
78 using typename Superclass1::TransformPointer;
79 using typename Superclass1::InputPointType;
80 using typename Superclass1::OutputPointType;
83 // using typename Superclass1::RealType;
88 using typename Superclass1::MeasureType;
89 using typename Superclass1::DerivativeType;
90 using typename Superclass1::ParametersType;
91
93 using typename Superclass2::ElastixType;
94 using typename Superclass2::RegistrationType;
96 using typename Superclass2::FixedImageType;
97 using typename Superclass2::MovingImageType;
98
100 itkStaticConstMacro(FixedImageDimension, unsigned int, FixedImageType::ImageDimension);
101
103 itkStaticConstMacro(MovingImageDimension, unsigned int, MovingImageType::ImageDimension);
104
110
114 void
115 Initialize() override;
116
122 int
123 BeforeAllBase() override;
124
129 void
131
133 unsigned int
134 ReadLandmarks(const std::string & landmarkFileName,
135 typename PointSetType::Pointer & pointSet,
136 const typename ImageType::ConstPointer image);
137
139 void
141 {}
142
143protected:
148
149private:
151};
152
153} // end namespace elastix
154
155#ifndef ITK_MANUAL_INSTANTIATION
156# include "elxCorrespondingPointsEuclideanDistanceMetric.hxx"
157#endif
158
159#endif // end #ifndef elxCorrespondingPointsEuclideanDistanceMetric_h
An metric based on the itk::CorrespondingPointsEuclideanDistancePointMetric.
unsigned int ReadLandmarks(const std::string &landmarkFileName, typename PointSetType::Pointer &pointSet, const typename ImageType::ConstPointer image)
itkStaticConstMacro(FixedImageDimension, unsigned int, FixedImageType::ImageDimension)
typename ElastixType::FixedImageType FixedImageType
Definition: elxMetricBase.h:89
itkStaticConstMacro(MovingImageDimension, unsigned int, MovingImageType::ImageDimension)
ITK_DISALLOW_COPY_AND_MOVE(CorrespondingPointsEuclideanDistanceMetric)
elxClassNameMacro("CorrespondingPointsEuclideanDistanceMetric")
This class is the elastix base class for all Metrics.
Definition: elxMetricBase.h:73
itk::SingleValuedCostFunction ITKBaseType
Definition: elxMetricBase.h:97
typename ElastixType::FixedImageType FixedImageType
Definition: elxMetricBase.h:89
itk::PointSet< CoordinateRepresentationType, FixedImageDimension, itk::DefaultStaticMeshTraits< CoordinateRepresentationType, FixedImageDimension, FixedImageDimension, CoordinateRepresentationType, CoordinateRepresentationType, CoordinateRepresentationType > > FixedPointSetType
typename ElastixType::MovingImageType MovingImageType
Definition: elxMetricBase.h:92
typename ElastixType::RegistrationBaseType RegistrationType
itk::PointSet< CoordinateRepresentationType, MovingImageDimension, itk::DefaultStaticMeshTraits< CoordinateRepresentationType, MovingImageDimension, MovingImageDimension, CoordinateRepresentationType, CoordinateRepresentationType, CoordinateRepresentationType > > MovingPointSetType
Transform maps points, vectors and covariant vectors from an input space to an output space.
Computes the Euclidean distance between a moving point-set and a fixed point-set. Correspondence is n...
SpatialObject< Self::MovingPointSetDimension > MovingImageMaskType
SpatialObject< Self::FixedPointSetDimension > FixedImageMaskType


Generated on 2023-01-13 for elastix by doxygen 1.9.6 elastix logo