SimpleITK  
sitkPixelIDTypes.h
Go to the documentation of this file.
1 /*=========================================================================
2  *
3  * Copyright NumFOCUS
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 <unsigned int VImageDimension>
26 class ImageBase;
27 template <typename TPixelType, unsigned int VImageDimension>
28 class Image;
29 template <typename TPixelType, unsigned int VImageDimension>
30 class VectorImage;
31 template <typename TLabelObject>
32 class LabelMap;
33 template <typename TLabelObject, unsigned int VImageDimension>
34 class LabelObject;
35 
36 namespace simple
37 {
38 
52 template <typename TPixelType>
54 {};
55 
56 
70 template <typename TPixelType>
72 {};
73 
74 
88 template <typename TPixelType>
90 {};
91 
105 template <typename TPixelIDType, unsigned int VImageDimension>
107 
108 template <typename TPixelType, unsigned int VImageDimension>
109 struct PixelIDToImageType<BasicPixelID<TPixelType>, VImageDimension>
110 {
112 };
113 
114 template <typename TVectorPixelType, unsigned int VImageDimension>
115 struct PixelIDToImageType<VectorPixelID<TVectorPixelType>, VImageDimension>
116 {
118 };
119 
120 template <typename TLabelType, unsigned int VImageDimension>
121 struct PixelIDToImageType<LabelPixelID<TLabelType>, VImageDimension>
122 {
124 };
141 template <typename TImageType>
143 
144 template <typename TPixelType, unsigned int VImageDimension>
145 struct ImageTypeToPixelID<itk::Image<TPixelType, VImageDimension>>
146 {
148 };
149 
150 template <typename TPixelType, unsigned int VImageDimension>
151 struct ImageTypeToPixelID<itk::VectorImage<TPixelType, VImageDimension>>
152 {
154 };
155 
156 template <typename TLabelType, unsigned int VImageDimension>
157 struct ImageTypeToPixelID<itk::LabelMap<itk::LabelObject<TLabelType, VImageDimension>>>
158 {
160 };
163 } // namespace simple
164 } // namespace itk
165 #endif // _sitkPixelIDTypes_h
itk::simple::Image
The Image class for SimpleITK.
Definition: sitkImage.h:76
itk::VectorImage
Definition: sitkPixelIDTypes.h:30
itk::ImageBase
class ITK_TEMPLATE_EXPORT ImageBase
itk::LabelMap
Definition: sitkPixelIDTypes.h:32
itk::simple::LabelPixelID
Definition: sitkPixelIDTypes.h:89
itk::simple::BasicPixelID
Definition: sitkPixelIDTypes.h:53
itk::simple::PixelIDToImageType
Definition: sitkPixelIDTypes.h:106
itk::simple::ImageTypeToPixelID
Definition: sitkPixelIDTypes.h:142
itk
itk::Image
Definition: sitkPixelIDTypes.h:28
itk::simple::VectorPixelID
Definition: sitkPixelIDTypes.h:71