ITK  4.6.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"
28 
29 namespace itk
30 {
43 template<
44  typename TFixedImageType,
45  typename TMovingImageType,
46  typename TVirtualImageType,
47  unsigned int NumberOfComponents,
48  typename TCoordRep = typename ObjectToObjectMetricBase::CoordinateRepresentationType
49  >
51 {
52 public:
55 
56  typedef TFixedImageType FixedImageType;
57  typedef TMovingImageType MovingImageType;
58  typedef TVirtualImageType VirtualImageType;
59 
60  typedef typename FixedImageType::PixelType FixedImagePixelType;
61  typedef typename MovingImageType::PixelType MovingImagePixelType;
62 
63  typedef TCoordRep CoordinateRepresentationType;
64 
65  /* Image dimension accessors */
66  typedef unsigned int ImageDimensionType;
67  itkStaticConstMacro(FixedImageDimension, ImageDimensionType,
68  FixedImageType::ImageDimension);
69  itkStaticConstMacro(MovingImageDimension, ImageDimensionType,
70  MovingImageType::ImageDimension);
71  itkStaticConstMacro(VirtualImageDimension, ImageDimensionType,
72  VirtualImageType::ImageDimension);
73 
77 
80 
84 
87 
89  itkGetStaticConstMacro(FixedImageDimension) >
91 
94 
96  itkGetStaticConstMacro(MovingImageDimension) >
98 
101 
105 
113 
124 
133 };
134 } // end namespace itk
135 
136 #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