ITK  5.0.0
Insight Segmentation and Registration Toolkit
itkVectorImageToImageMetricTraitsv4.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 itkVectorImageToImageMetricTraitsv4_h
19 #define itkVectorImageToImageMetricTraitsv4_h
20 
21 #include "itkImage.h"
22 #include "itkCovariantVector.h"
27 
28 namespace itk
29 {
42 template<
43  typename TFixedImageType,
44  typename TMovingImageType,
45  typename TVirtualImageType,
46  unsigned int NumberOfComponents,
47  typename TCoordRep = typename ObjectToObjectMetricBase::CoordinateRepresentationType
48  >
50 {
51 public:
54 
55  using FixedImageType = TFixedImageType;
56  using MovingImageType = TMovingImageType;
57  using VirtualImageType = TVirtualImageType;
58 
59  using FixedImagePixelType = typename FixedImageType::PixelType;
60  using MovingImagePixelType = typename MovingImageType::PixelType;
61 
62  using CoordinateRepresentationType = TCoordRep;
63 
64  /* Image dimension accessors */
65  using ImageDimensionType = unsigned int;
66  static constexpr ImageDimensionType FixedImageDimension = FixedImageType::ImageDimension;
67  static constexpr ImageDimensionType MovingImageDimension = MovingImageType::ImageDimension;
68  static constexpr ImageDimensionType VirtualImageDimension = VirtualImageType::ImageDimension;
69 
73 
76 
80 
83 
86 
89 
92 
95 
99 
105 
114 
121 };
122 } // end namespace itk
123 
124 #endif
Vector< CoordinateRepresentationType, FixedImageDimension *NumberOfComponents > FixedImageGradientType
Define numeric traits for std::vector.
static constexpr ImageDimensionType VirtualImageDimension
typename NumericTraits< MovingImagePixelType >::RealType MovingRealType
Traits class used to by ConvertPixels to convert blocks of pixels.
Computes the gradient of an image by convolution with the first derivative of a Gaussian.
Calculate the derivative by central differencing.
typename FixedImageType::PixelType FixedImagePixelType
TInternalComputationValueType CoordinateRepresentationType
A simple structure holding type information for ImageToImageMetricv4 classes.
typename MovingImageType::PixelType MovingImagePixelType
A templated class holding a n-Dimensional vector.
Definition: itkVector.h:62
Vector< CoordinateRepresentationType, MovingImageDimension *NumberOfComponents > MovingImageGradientType
typename NumericTraits< FixedImagePixelType >::RealType FixedRealType
static constexpr ImageDimensionType MovingImageDimension
static constexpr ImageDimensionType FixedImageDimension
Base class for filters that take an image as input and produce an image as output.
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