ITK  4.4.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  class TFixedImageType,
43  class TMovingImageType,
44  class TVirtualImageType,
45  typename TCoordRep = typename ObjectToObjectMetricBase::CoordinateRepresentationType
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
160