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, typename TMovingImageType, typename TVirtualImageType, typename TCoordRep = double>
43 {
44 public:
47 
48  using FixedImageType = TFixedImageType;
49  using MovingImageType = TMovingImageType;
50  using VirtualImageType = TVirtualImageType;
51 
52  using FixedImagePixelType = typename FixedImageType::PixelType;
53  using MovingImagePixelType = typename MovingImageType::PixelType;
54 
55  using CoordinateRepresentationType = TCoordRep;
56 
57  /* Image dimension accessors */
58  using ImageDimensionType = unsigned int;
59  static constexpr ImageDimensionType FixedImageDimension = FixedImageType::ImageDimension;
60  static constexpr ImageDimensionType MovingImageDimension = MovingImageType::ImageDimension;
61  static constexpr ImageDimensionType VirtualImageDimension = VirtualImageType::ImageDimension;
62 
65 
67 
71 
74 
79 
81 
85 
87 
93 
100 
105 
109 #ifdef ITK_USE_CONCEPT_CHECKING
110  itkConceptMacro(OnlyDefinedForFloatingPointTypes0, (itk::Concept::IsFloatingPoint<FixedRealType>));
111  itkConceptMacro(OnlyDefinedForFloatingPointTypes1, (itk::Concept::IsFloatingPoint<MovingRealType>));
112 #endif // ITK_USE_CONCEPT_CHECKING
113 };
114 } // end namespace itk
117 //#ifndef ITK_MANUAL_INSTANTIATION
118 //#include "itkDefaultImageToImageMetricTraitsv4.hxx"
119 //#endif
120 
121 #endif
itk::DefaultImageToImageMetricTraitsv4::MovingImageDimension
static constexpr ImageDimensionType MovingImageDimension
Definition: itkDefaultImageToImageMetricTraitsv4.h:60
itk::DefaultImageToImageMetricTraitsv4::VirtualImageType
TVirtualImageType VirtualImageType
Definition: itkDefaultImageToImageMetricTraitsv4.h:50
itkCovariantVector.h
itk::DefaultImageToImageMetricTraitsv4::MovingImageGradientType
CovariantVector< CoordinateRepresentationType, Self::MovingImageDimension > MovingImageGradientType
Definition: itkDefaultImageToImageMetricTraitsv4.h:64
itk::DefaultImageToImageMetricTraitsv4::MovingRealType
typename NumericTraits< MovingImagePixelType >::RealType MovingRealType
Definition: itkDefaultImageToImageMetricTraitsv4.h:82
itk::DefaultImageToImageMetricTraitsv4::VirtualImageDimension
static constexpr ImageDimensionType VirtualImageDimension
Definition: itkDefaultImageToImageMetricTraitsv4.h:61
itk::CentralDifferenceImageFunction
Calculate the derivative by central differencing.
Definition: itkCentralDifferenceImageFunction.h:76
itkImage.h
itk::DefaultImageToImageMetricTraitsv4::ImageDimensionType
unsigned int ImageDimensionType
Definition: itkDefaultImageToImageMetricTraitsv4.h:58
itk::DefaultImageToImageMetricTraitsv4::FixedRealType
typename NumericTraits< FixedImagePixelType >::RealType FixedRealType
Definition: itkDefaultImageToImageMetricTraitsv4.h:76
itk::DefaultImageToImageMetricTraitsv4::VirtualImageGradientType
CovariantVector< CoordinateRepresentationType, Self::VirtualImageDimension > VirtualImageGradientType
Definition: itkDefaultImageToImageMetricTraitsv4.h:66
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::DefaultImageToImageMetricTraitsv4::FixedImagePixelType
typename FixedImageType::PixelType FixedImagePixelType
Definition: itkDefaultImageToImageMetricTraitsv4.h:52
itk::DefaultConvertPixelTraits
Traits class used to by ConvertPixels to convert blocks of pixels.
Definition: itkDefaultConvertPixelTraits.h:41
itk::DefaultImageToImageMetricTraitsv4::FixedImageGradientType
CovariantVector< CoordinateRepresentationType, Self::FixedImageDimension > FixedImageGradientType
Definition: itkDefaultImageToImageMetricTraitsv4.h:63
itk::GradientRecursiveGaussianImageFilter
Computes the gradient of an image by convolution with the first derivative of a Gaussian.
Definition: itkGradientRecursiveGaussianImageFilter.h:59
itk::DefaultImageToImageMetricTraitsv4
A simple structure holding type information for ImageToImageMetricv4 classes.
Definition: itkDefaultImageToImageMetricTraitsv4.h:42
itk::Concept::IsFloatingPoint
Definition: itkConceptChecking.h:948
itk::DefaultImageToImageMetricTraitsv4::FixedImageDimension
static constexpr ImageDimensionType FixedImageDimension
Definition: itkDefaultImageToImageMetricTraitsv4.h:59
itk::CovariantVector
A templated class holding a n-Dimensional covariant vector.
Definition: itkCovariantVector.h:70
itkObjectToObjectMetricBase.h
itk::DefaultImageToImageMetricTraitsv4::MovingImageType
TMovingImageType MovingImageType
Definition: itkDefaultImageToImageMetricTraitsv4.h:49
itkConceptMacro
#define itkConceptMacro(name, concept)
Definition: itkConceptChecking.h:65
itk
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
Definition: itkAnatomicalOrientation.h:29
itk::DefaultImageToImageMetricTraitsv4::MovingImagePixelType
typename MovingImageType::PixelType MovingImagePixelType
Definition: itkDefaultImageToImageMetricTraitsv4.h:53
itk::Image
Templated n-dimensional image class.
Definition: itkImage.h:88
itk::NumericTraits::RealType
double RealType
Definition: itkNumericTraits.h:86
itk::DefaultImageToImageMetricTraitsv4::FixedImageType
TFixedImageType FixedImageType
Definition: itkDefaultImageToImageMetricTraitsv4.h:48
itk::DefaultImageToImageMetricTraitsv4::CoordinateRepresentationType
TCoordRep CoordinateRepresentationType
Definition: itkDefaultImageToImageMetricTraitsv4.h:55