ITK  6.0.0
Insight Toolkit
itkDefaultImageToImageMetricTraitsv4.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 itkDefaultImageToImageMetricTraitsv4_h
19 #define itkDefaultImageToImageMetricTraitsv4_h
20 
21 #include "itkImage.h"
22 #include "itkCovariantVector.h"
26 
27 namespace itk
28 {
41 template <typename TFixedImageType,
42  typename TMovingImageType,
43  typename TVirtualImageType,
44  typename TCoordinate = double>
46 {
47 public:
50 
51  using FixedImageType = TFixedImageType;
52  using MovingImageType = TMovingImageType;
53  using VirtualImageType = TVirtualImageType;
54 
55  using FixedImagePixelType = typename FixedImageType::PixelType;
56  using MovingImagePixelType = typename MovingImageType::PixelType;
57 
58  using CoordinateRepresentationType = TCoordinate;
59 
60  /* Image dimension accessors */
61  using ImageDimensionType = unsigned int;
62  static constexpr ImageDimensionType FixedImageDimension = FixedImageType::ImageDimension;
63  static constexpr ImageDimensionType MovingImageDimension = MovingImageType::ImageDimension;
64  static constexpr ImageDimensionType VirtualImageDimension = VirtualImageType::ImageDimension;
65 
68 
70 
74 
77 
82 
84 
88 
90 
96 
103 
108 
112 #ifdef ITK_USE_CONCEPT_CHECKING
113  itkConceptMacro(OnlyDefinedForFloatingPointTypes0, (itk::Concept::IsFloatingPoint<FixedRealType>));
114  itkConceptMacro(OnlyDefinedForFloatingPointTypes1, (itk::Concept::IsFloatingPoint<MovingRealType>));
115 #endif // ITK_USE_CONCEPT_CHECKING
116 };
117 } // end namespace itk
120 // #ifndef ITK_MANUAL_INSTANTIATION
121 // #include "itkDefaultImageToImageMetricTraitsv4.hxx"
122 // #endif
123 
124 #endif
itk::DefaultImageToImageMetricTraitsv4::FixedImageType
TFixedImageType FixedImageType
Definition: itkDefaultImageToImageMetricTraitsv4.h:51
itk::DefaultImageToImageMetricTraitsv4::MovingRealType
typename NumericTraits< MovingImagePixelType >::RealType MovingRealType
Definition: itkDefaultImageToImageMetricTraitsv4.h:85
itkCovariantVector.h
itk::DefaultImageToImageMetricTraitsv4::ImageDimensionType
unsigned int ImageDimensionType
Definition: itkDefaultImageToImageMetricTraitsv4.h:61
itk::DefaultImageToImageMetricTraitsv4::MovingImageType
TMovingImageType MovingImageType
Definition: itkDefaultImageToImageMetricTraitsv4.h:52
itk::CentralDifferenceImageFunction
Calculate the derivative by central differencing.
Definition: itkCentralDifferenceImageFunction.h:76
itkImage.h
itk::DefaultImageToImageMetricTraitsv4::VirtualImageGradientType
CovariantVector< CoordinateRepresentationType, Self::VirtualImageDimension > VirtualImageGradientType
Definition: itkDefaultImageToImageMetricTraitsv4.h:69
itk::DefaultImageToImageMetricTraitsv4::FixedImagePixelType
typename FixedImageType::PixelType FixedImagePixelType
Definition: itkDefaultImageToImageMetricTraitsv4.h:55
itk::ImageToImageFilter
Base class for filters that take an image as input and produce an image as output.
Definition: itkImageToImageFilter.h:108
itkGradientRecursiveGaussianImageFilter.h
itk::ImageFunction
Evaluates a function of an image at specified position.
Definition: itkImageFunction.h:55
itkCentralDifferenceImageFunction.h
itk::DefaultConvertPixelTraits
Traits class used to by ConvertPixels to convert blocks of pixels.
Definition: itkDefaultConvertPixelTraits.h:41
itk::GradientRecursiveGaussianImageFilter
Computes the gradient of an image by convolution with the first derivative of a Gaussian.
Definition: itkGradientRecursiveGaussianImageFilter.h:59
itk::DefaultImageToImageMetricTraitsv4::MovingImageGradientType
CovariantVector< CoordinateRepresentationType, Self::MovingImageDimension > MovingImageGradientType
Definition: itkDefaultImageToImageMetricTraitsv4.h:67
itk::DefaultImageToImageMetricTraitsv4::VirtualImageType
TVirtualImageType VirtualImageType
Definition: itkDefaultImageToImageMetricTraitsv4.h:53
itk::DefaultImageToImageMetricTraitsv4
A simple structure holding type information for ImageToImageMetricv4 classes.
Definition: itkDefaultImageToImageMetricTraitsv4.h:45
itk::Concept::IsFloatingPoint
Definition: itkConceptChecking.h:953
itk::CovariantVector
A templated class holding a n-Dimensional covariant vector.
Definition: itkCovariantVector.h:70
itkObjectToObjectMetricBase.h
itk::DefaultImageToImageMetricTraitsv4::FixedImageGradientType
CovariantVector< CoordinateRepresentationType, Self::FixedImageDimension > FixedImageGradientType
Definition: itkDefaultImageToImageMetricTraitsv4.h:66
itkConceptMacro
#define itkConceptMacro(name, concept)
Definition: itkConceptChecking.h:65
itk::DefaultImageToImageMetricTraitsv4::MovingImageDimension
static constexpr ImageDimensionType MovingImageDimension
Definition: itkDefaultImageToImageMetricTraitsv4.h:63
itk
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
Definition: itkAnatomicalOrientation.h:29
itk::DefaultImageToImageMetricTraitsv4::CoordinateRepresentationType
TCoordinate CoordinateRepresentationType
Definition: itkDefaultImageToImageMetricTraitsv4.h:58
itk::Image
Templated n-dimensional image class.
Definition: itkImage.h:88
itk::DefaultImageToImageMetricTraitsv4::FixedRealType
typename NumericTraits< FixedImagePixelType >::RealType FixedRealType
Definition: itkDefaultImageToImageMetricTraitsv4.h:79
itk::NumericTraits::RealType
double RealType
Definition: itkNumericTraits.h:86
itk::DefaultImageToImageMetricTraitsv4::MovingImagePixelType
typename MovingImageType::PixelType MovingImagePixelType
Definition: itkDefaultImageToImageMetricTraitsv4.h:56
itk::DefaultImageToImageMetricTraitsv4::FixedImageDimension
static constexpr ImageDimensionType FixedImageDimension
Definition: itkDefaultImageToImageMetricTraitsv4.h:62
itk::DefaultImageToImageMetricTraitsv4::VirtualImageDimension
static constexpr ImageDimensionType VirtualImageDimension
Definition: itkDefaultImageToImageMetricTraitsv4.h:64