ITK  4.3.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  class TFixedImageType,
45  class TMovingImageType,
46  class 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
137