ITK  5.0.0
Insight Segmentation and Registration Toolkit
itkDefaultImageToImageMetricTraitsv4.h
Go to the documentation of this file.
1 /*=========================================================================
2  *
3  * Copyright Insight Software Consortium
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 itkDefaultImageToImageMetricTraitsv4_h
19 #define itkDefaultImageToImageMetricTraitsv4_h
20 
21 #include "itkImage.h"
22 #include "itkCovariantVector.h"
26 
27 namespace itk
28 {
41 template<
42  typename TFixedImageType,
43  typename TMovingImageType,
44  typename TVirtualImageType,
45  typename TCoordRep = double
46  >
48 {
49 public:
52 
53  using FixedImageType = TFixedImageType;
54  using MovingImageType = TMovingImageType;
55  using VirtualImageType = TVirtualImageType;
56 
57  using FixedImagePixelType = typename FixedImageType::PixelType;
58  using MovingImagePixelType = typename MovingImageType::PixelType;
59 
60  using CoordinateRepresentationType = TCoordRep;
61 
62  /* Image dimension accessors */
63  using ImageDimensionType = unsigned int;
64  static constexpr ImageDimensionType FixedImageDimension = FixedImageType::ImageDimension;
65  static constexpr ImageDimensionType MovingImageDimension = MovingImageType::ImageDimension;
66  static constexpr ImageDimensionType VirtualImageDimension = VirtualImageType::ImageDimension;
67 
72 
75 
79 
82 
89 
92 
98 
101 
107 
111  CovariantVector<double,
115  CovariantVector<double,
118 
123 
127  #ifdef ITK_USE_CONCEPT_CHECKING
128  itkConceptMacro( OnlyDefinedForFloatingPointTypes0, ( itk::Concept::IsFloatingPoint<FixedRealType> ) );
129  itkConceptMacro( OnlyDefinedForFloatingPointTypes1, ( itk::Concept::IsFloatingPoint<MovingRealType> ) );
130  #endif // ITK_USE_CONCEPT_CHECKING
131 };
132 } // end namespace itk
134 
135 //#ifndef ITK_MANUAL_INSTANTIATION
136 //#include "itkDefaultImageToImageMetricTraitsv4.hxx"
137 //#endif
138 
139 #endif
CovariantVector< CoordinateRepresentationType, Self::FixedImageDimension > FixedImageGradientType
Define numeric traits for std::vector.
typename MovingImageType::PixelType MovingImagePixelType
Traits class used to by ConvertPixels to convert blocks of pixels.
static constexpr ImageDimensionType FixedImageDimension
Computes the gradient of an image by convolution with the first derivative of a Gaussian.
Calculate the derivative by central differencing.
static constexpr ImageDimensionType MovingImageDimension
CovariantVector< CoordinateRepresentationType, Self::MovingImageDimension > MovingImageGradientType
CovariantVector< FixedRealType, Self::FixedImageDimension > FixedGradientPixelType
CovariantVector< CoordinateRepresentationType, Self::VirtualImageDimension > VirtualImageGradientType
typename NumericTraits< MovingImagePixelType >::RealType MovingRealType
CovariantVector< MovingRealType, Self::MovingImageDimension > MovingGradientPixelType
typename NumericTraits< FixedImagePixelType >::RealType FixedRealType
Base class for filters that take an image as input and produce an image as output.
static constexpr ImageDimensionType VirtualImageDimension
#define itkConceptMacro(name, concept)
A templated class holding a n-Dimensional covariant vector.
Evaluates a function of an image at specified position.
Templated n-dimensional image class.
Definition: itkImage.h:75
A simple structure holding type information for ImageToImageMetricv4 classes.