ITK  4.9.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  typedef TFixedImageType FixedImageType;
56  typedef TMovingImageType MovingImageType;
57  typedef TVirtualImageType VirtualImageType;
58 
59  typedef typename FixedImageType::PixelType FixedImagePixelType;
60  typedef typename MovingImageType::PixelType MovingImagePixelType;
61 
62  typedef TCoordRep CoordinateRepresentationType;
63 
64  /* Image dimension accessors */
65  typedef unsigned int ImageDimensionType;
66  itkStaticConstMacro(FixedImageDimension, ImageDimensionType,
67  FixedImageType::ImageDimension);
68  itkStaticConstMacro(MovingImageDimension, ImageDimensionType,
69  MovingImageType::ImageDimension);
70  itkStaticConstMacro(VirtualImageDimension, ImageDimensionType,
71  VirtualImageType::ImageDimension);
72 
76 
79 
83 
86 
88  itkGetStaticConstMacro(FixedImageDimension) >
90 
93 
95  itkGetStaticConstMacro(MovingImageDimension) >
97 
100 
104 
112 
123 
132 };
133 } // end namespace itk
134 
135 #endif
CentralDifferenceImageFunction< FixedImageType, CoordinateRepresentationType, FixedImageGradientType > DefaultFixedImageGradientCalculator
NumericTraits< MovingImagePixelType >::RealType MovingRealType
Vector< CoordinateRepresentationType, MovingImageDimension *NumberOfComponents > MovingImageGradientType
Image< MovingGradientPixelType, itkGetStaticConstMacro(MovingImageDimension) > MovingImageGradientImageType
Traits class used to by ConvertPixels to convert blocks of pixels.
Image< FixedGradientPixelType, itkGetStaticConstMacro(FixedImageDimension) > FixedImageGradientImageType
Vector< CoordinateRepresentationType, VirtualImageDimension *NumberOfComponents > VirtualImageGradientType
Computes the gradient of an image by convolution with the first derivative of a Gaussian.
Calculate the derivative by central differencing.
TInternalComputationValueType CoordinateRepresentationType
DefaultConvertPixelTraits< MovingImageGradientType > MovingImageGradientConvertType
ImageFunction< MovingImageType, MovingImageGradientType, CoordinateRepresentationType > MovingImageGradientCalculatorType
A simple structure holding type information for ImageToImageMetricv4 classes.
Vector< CoordinateRepresentationType, FixedImageDimension *NumberOfComponents > FixedImageGradientType
A templated class holding a n-Dimensional vector.
Definition: itkVector.h:62
CovariantVector< CoordinateRepresentationType, MovingImageDimension > MovingImageComponentGradientType
DefaultConvertPixelTraits< FixedImageGradientType > FixedImageGradientConvertType
ImageToImageFilter< MovingImageType, MovingImageGradientImageType > MovingImageGradientFilterType
ImageFunction< FixedImageType, FixedImageGradientType, CoordinateRepresentationType > FixedImageGradientCalculatorType
CovariantVector< CoordinateRepresentationType, FixedImageDimension > FixedImageComponentGradientType
Base class for filters that take an image as input and produce an image as output.
CentralDifferenceImageFunction< MovingImageType, CoordinateRepresentationType, MovingImageGradientType > DefaultMovingImageGradientCalculator
GradientRecursiveGaussianImageFilter< FixedImageType, FixedImageGradientImageType > DefaultFixedImageGradientFilter
ImageToImageFilter< FixedImageType, FixedImageGradientImageType > FixedImageGradientFilterType
NumericTraits< FixedImagePixelType >::RealType FixedRealType
A templated class holding a n-Dimensional covariant vector.
GradientRecursiveGaussianImageFilter< MovingImageType, MovingImageGradientImageType > DefaultMovingImageGradientFilter
Evaluates a function of an image at specified position.
Templated n-dimensional image class.
Definition: itkImage.h:75
CovariantVector< CoordinateRepresentationType, VirtualImageDimension > VirtualImageComponentGradientType