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 
24 namespace elastix
25 {
26 
39 template< class TElastix >
41  public
43  typename MetricBase< TElastix >::FixedPointSetType,
44  typename MetricBase< TElastix >::MovingPointSetType >,
45  public MetricBase< TElastix >
46 {
47 public:
48 
55  typedef itk::SmartPointer< Self > Pointer;
56  typedef itk::SmartPointer< const Self > ConstPointer;
57 
59  itkNewMacro( Self );
60 
64 
69  elxClassNameMacro( "CorrespondingPointsEuclideanDistanceMetric" );
70 
77 
78 // typedef typename Superclass1::FixedImageRegionType FixedImageRegionType;
85 // typedef typename Superclass1::RealType RealType;
93 
104 
106  itkStaticConstMacro( FixedImageDimension, unsigned int,
107  FixedImageType::ImageDimension );
108 
110  itkStaticConstMacro( MovingImageDimension, unsigned int,
111  MovingImageType::ImageDimension );
112 
118 
122  void Initialize( void ) override;
123 
129  int BeforeAllBase( void ) override;
130 
135  void BeforeRegistration( void ) override;
136 
138  unsigned int ReadLandmarks(
139  const std::string & landmarkFileName,
140  typename PointSetType::Pointer & pointSet,
141  const typename ImageType::ConstPointer image );
142 
144  void SelectNewSamples( void ) override{}
145 
146 protected:
147 
152 
153 private:
154 
156  CorrespondingPointsEuclideanDistanceMetric( const Self & ); // purposely not implemented
158  void operator=( const Self & ); // purposely not implemented
159 
160 };
161 
162 } // end namespace elastix
163 
164 #ifndef ITK_MANUAL_INSTANTIATION
165 #include "elxCorrespondingPointsEuclideanDistanceMetric.hxx"
166 #endif
167 
168 #endif // end #ifndef __elxCorrespondingPointsEuclideanDistanceMetric_H__
A class that deals with user given parameters and command line arguments.
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)
itk::CorrespondingPointsEuclideanDistancePointMetric< typename MetricBase< TElastix >::FixedPointSetType, typename MetricBase< TElastix >::MovingPointSetType > Superclass1
itkStaticConstMacro(MovingImageDimension, unsigned int, MovingImageType::ImageDimension)
elxClassNameMacro("CorrespondingPointsEuclideanDistanceMetric")
This class is the elastix base class for all Metrics.
Definition: elxMetricBase.h:73
itk::PointSet< CoordinateRepresentationType, MovingImageDimension, itk::DefaultStaticMeshTraits< CoordinateRepresentationType, MovingImageDimension, MovingImageDimension, CoordinateRepresentationType, CoordinateRepresentationType, CoordinateRepresentationType > > MovingPointSetType
itk::SingleValuedCostFunction ITKBaseType
Superclass::RegistrationPointer RegistrationPointer
Definition: elxMetricBase.h:89
Superclass::ElastixType ElastixType
Definition: elxMetricBase.h:81
ElastixType::MovingImageType MovingImageType
Definition: elxMetricBase.h:95
itk::PointSet< CoordinateRepresentationType, FixedImageDimension, itk::DefaultStaticMeshTraits< CoordinateRepresentationType, FixedImageDimension, FixedImageDimension, CoordinateRepresentationType, CoordinateRepresentationType, CoordinateRepresentationType > > FixedPointSetType
ElastixType::FixedImageType FixedImageType
Definition: elxMetricBase.h:92
Superclass::ConfigurationPointer ConfigurationPointer
Definition: elxMetricBase.h:87
Superclass::RegistrationType RegistrationType
Definition: elxMetricBase.h:88
Superclass::ElastixPointer ElastixPointer
Definition: elxMetricBase.h:85
Computes the Euclidean distance between a moving point-set and a fixed point-set. Correspondence is n...
SpatialObject< itkGetStaticConstMacro(MovingPointSetDimension) > MovingImageMaskType
SpatialObject< itkGetStaticConstMacro(FixedPointSetDimension) > FixedImageMaskType


Generated on 1641078589 for elastix by doxygen 1.9.1 elastix logo