ITK  4.8.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  typedef TFixedImageType FixedImageType;
54  typedef TMovingImageType MovingImageType;
55  typedef TVirtualImageType VirtualImageType;
56 
57  typedef typename FixedImageType::PixelType FixedImagePixelType;
58  typedef typename MovingImageType::PixelType MovingImagePixelType;
59 
60  typedef TCoordRep CoordinateRepresentationType;
61 
62  /* Image dimension accessors */
63  typedef unsigned int ImageDimensionType;
64  itkStaticConstMacro(FixedImageDimension, ImageDimensionType,
65  FixedImageType::ImageDimension);
66  itkStaticConstMacro(MovingImageDimension, ImageDimensionType,
67  MovingImageType::ImageDimension);
68  itkStaticConstMacro(VirtualImageDimension, ImageDimensionType,
69  VirtualImageType::ImageDimension);
70 
72  itkGetStaticConstMacro(FixedImageDimension) >
75  itkGetStaticConstMacro(MovingImageDimension) >
77 
79  itkGetStaticConstMacro(VirtualImageDimension) >
81 
85 
88 
93  itkGetStaticConstMacro(FixedImageDimension) >
96  itkGetStaticConstMacro(FixedImageDimension) >
99 
102 
106  itkGetStaticConstMacro(MovingImageDimension) >
109  itkGetStaticConstMacro(MovingImageDimension) >
111 
114 
122 
126  CovariantVector<double,
127  itkGetStaticConstMacro( FixedImageDimension )>,
131  CovariantVector<double,
132  itkGetStaticConstMacro( MovingImageDimension )>,
136 
143 
147  #ifdef ITK_USE_CONCEPT_CHECKING
148  itkConceptMacro( OnlyDefinedForFloatingPointTypes0, ( itk::Concept::IsFloatingPoint<FixedRealType> ) );
149  itkConceptMacro( OnlyDefinedForFloatingPointTypes1, ( itk::Concept::IsFloatingPoint<MovingRealType> ) );
150  #endif // ITK_USE_CONCEPT_CHECKING
151 };
152 } // end namespace itk
154 
155 //#ifndef ITK_MANUAL_INSTANTIATION
156 //#include "itkDefaultImageToImageMetricTraitsv4.hxx"
157 //#endif
158 
159 #endif
ImageFunction< FixedImageType, CovariantVector< double, itkGetStaticConstMacro(FixedImageDimension)>, CoordinateRepresentationType > FixedImageGradientCalculatorType
Image< MovingGradientPixelType, itkGetStaticConstMacro(MovingImageDimension) > MovingImageGradientImageType
DefaultConvertPixelTraits< FixedImageGradientType > FixedImageGradientConvertType
CovariantVector< FixedRealType, itkGetStaticConstMacro(FixedImageDimension) > FixedGradientPixelType
CovariantVector< CoordinateRepresentationType, itkGetStaticConstMacro(VirtualImageDimension) > VirtualImageGradientType
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.
CovariantVector< CoordinateRepresentationType, itkGetStaticConstMacro(MovingImageDimension) > MovingImageGradientType
CovariantVector< CoordinateRepresentationType, itkGetStaticConstMacro(FixedImageDimension) > FixedImageGradientType
DefaultConvertPixelTraits< MovingImageGradientType > MovingImageGradientConvertType
ImageToImageFilter< FixedImageType, FixedImageGradientImageType > FixedImageGradientFilterType
CentralDifferenceImageFunction< MovingImageType, CoordinateRepresentationType > DefaultMovingImageGradientCalculator
ImageToImageFilter< MovingImageType, MovingImageGradientImageType > MovingImageGradientFilterType
GradientRecursiveGaussianImageFilter< MovingImageType, MovingImageGradientImageType > DefaultMovingImageGradientFilter
Image< FixedGradientPixelType, itkGetStaticConstMacro(FixedImageDimension) > FixedImageGradientImageType
NumericTraits< MovingImagePixelType >::RealType MovingRealType
CovariantVector< MovingRealType, itkGetStaticConstMacro(MovingImageDimension) > MovingGradientPixelType
CentralDifferenceImageFunction< FixedImageType, CoordinateRepresentationType > DefaultFixedImageGradientCalculator
Base class for filters that take an image as input and produce an image as output.
ImageFunction< MovingImageType, CovariantVector< double, itkGetStaticConstMacro(MovingImageDimension)>, CoordinateRepresentationType > MovingImageGradientCalculatorType
NumericTraits< FixedImagePixelType >::RealType FixedRealType
#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.
GradientRecursiveGaussianImageFilter< FixedImageType, FixedImageGradientImageType > DefaultFixedImageGradientFilter