go home Home | Main Page | Topics | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals | Related Pages
Loading...
Searching...
No Matches
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
38
39template <typename 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
70 using typename Superclass1::FixedPointSetType;
71 using typename Superclass1::MovingPointSetType;
72
74 using typename Superclass2::FixedImageType;
75 using typename Superclass2::MovingImageType;
76
78 itkStaticConstMacro(FixedImageDimension, unsigned int, FixedImageType::ImageDimension);
79
81 itkStaticConstMacro(MovingImageDimension, unsigned int, MovingImageType::ImageDimension);
82
88
92 void
93 Initialize() override;
94
100 int
101 BeforeAllBase() override;
102
107 void
109
111 void
113 {}
114
115protected:
120
121private:
123
125 itk::SmartPointer<PointSetType>
126 ReadLandmarks(const std::string & landmarkFileName, const typename ImageType::ConstPointer image);
127};
128
129} // end namespace elastix
130
131#ifndef ITK_MANUAL_INSTANTIATION
132# include "elxCorrespondingPointsEuclideanDistanceMetric.hxx"
133#endif
134
135#endif // end #ifndef elxCorrespondingPointsEuclideanDistanceMetric_h
itk::CorrespondingPointsEuclideanDistancePointMetric< typename MetricBase< TElastix >::FixedPointSetType, typename MetricBase< TElastix >::MovingPointSetType > Superclass1
itkStaticConstMacro(FixedImageDimension, unsigned int, FixedImageType::ImageDimension)
typename ElastixType::FixedImageType FixedImageType
itk::SmartPointer< PointSetType > ReadLandmarks(const std::string &landmarkFileName, const typename ImageType::ConstPointer image)
itkOverrideGetNameOfClassMacro(CorrespondingPointsEuclideanDistanceMetric)
itkStaticConstMacro(MovingImageDimension, unsigned int, MovingImageType::ImageDimension)
ITK_DISALLOW_COPY_AND_MOVE(CorrespondingPointsEuclideanDistanceMetric)
elxClassNameMacro("CorrespondingPointsEuclideanDistanceMetric")
itk::PointSet< CoordinateRepresentationType, MovingImageDimension, itk::DefaultStaticMeshTraits< CoordinateRepresentationType, MovingImageDimension, MovingImageDimension, CoordinateRepresentationType, CoordinateRepresentationType, CoordinateRepresentationType > > MovingPointSetType
itk::PointSet< CoordinateRepresentationType, FixedImageDimension, itk::DefaultStaticMeshTraits< CoordinateRepresentationType, FixedImageDimension, FixedImageDimension, CoordinateRepresentationType, CoordinateRepresentationType, CoordinateRepresentationType > > FixedPointSetType
typename ElastixType::FixedImageType FixedImageType
typename ElastixType::MovingImageType MovingImageType
Computes the Euclidean distance between a moving point-set and a fixed point-set. Correspondence is n...


Generated on 1774142652 for elastix by doxygen 1.15.0 elastix logo