SimpleITK  1.0.1
sitkPixelIDTypes.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 sitkPixelIDTypes_h
19 #define sitkPixelIDTypes_h
20 
21 
22 namespace itk
23 {
24 
25 template <typename TPixelType, unsigned int VImageDimension> class Image;
26 template <typename TPixelType, unsigned int VImageDimension > class VectorImage;
27 template < typename TLabelObject > class LabelMap;
28 template < typename TLabelObject, unsigned int VImageDimension > class LabelObject;
29 
30 namespace simple
31 {
32 
46 template <typename TPixelType>
48 {};
49 
50 
64 template <typename TPixelType>
66 {};
67 
68 
82 template <typename TPixelType>
84 {};
85 
99 template <typename TPixelIDType, unsigned int VImageDimension> struct PixelIDToImageType;
100 
101 template <typename TPixelType, unsigned int VImageDimension>
102 struct PixelIDToImageType< BasicPixelID<TPixelType> , VImageDimension >
103 {
105 };
106 
107 template <typename TVectorPixelType, unsigned int VImageDimension>
108 struct PixelIDToImageType< VectorPixelID< TVectorPixelType >, VImageDimension >
109 {
111 };
112 
113 template <typename TLabelType, unsigned int VImageDimension>
114 struct PixelIDToImageType< LabelPixelID< TLabelType >, VImageDimension >
115 {
117 };
134 template <typename TImageType> struct ImageTypeToPixelID;
135 
136 template <typename TPixelType, unsigned int VImageDimension>
137 struct ImageTypeToPixelID< itk::Image< TPixelType, VImageDimension> >
138 {
140 };
141 
142 template <typename TPixelType, unsigned int VImageDimension>
143 struct ImageTypeToPixelID< itk::VectorImage< TPixelType, VImageDimension> >
144 {
146 };
147 
148 template <typename TLabelType, unsigned int VImageDimension>
149 struct ImageTypeToPixelID< itk::LabelMap< itk::LabelObject< TLabelType, VImageDimension > > >
150 {
152 };
155 }
156 }
157 #endif // _sitkPixelIDTypes_h
itk::LabelMap< itk::LabelObject< TLabelType, VImageDimension > > ImageType
The main Image class for SimpleITK.
Definition: sitkImage.h:54