ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
itkWasmMapPixelType.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 * https://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 itkWasmMapPixelType_h
19#define itkWasmMapPixelType_h
20
21#include "itkRGBPixel.h"
22#include "itkRGBAPixel.h"
23#include "itkOffset.h"
24#include "itkVector.h"
25#include "itkPoint.h"
26#include "itkCovariantVector.h"
29#include <complex>
30#include "itkFixedArray.h"
32#include "itkArray.h"
33#include "itkMatrix.h"
35
36#include <string_view>
37
38#include "itkPixelTypesJSON.h"
39
40namespace itk
41{
42
43namespace wasm
44{
45
46template <typename TPixel>
48{
49 // scalar
50 static constexpr std::string_view PixelString = "Scalar";
52};
53
54template <typename TPixel>
55struct MapPixelType<RGBPixel<TPixel>>
56{
57 static constexpr std::string_view PixelString = "RGB";
59};
60
61template <typename TPixel>
62struct MapPixelType<RGBAPixel<TPixel>>
63{
64 static constexpr std::string_view PixelString = "RGBA";
66};
67
68template <unsigned VLength>
69struct MapPixelType<Offset<VLength>>
70{
71 static constexpr std::string_view PixelString = "Offset";
73};
74
75template <typename TPixel, unsigned VLength>
76struct MapPixelType<Vector<TPixel, VLength>>
77{
78 static constexpr std::string_view PixelString = "Vector";
80};
81
82template <typename TCoordRep, unsigned NPointDimension>
83struct MapPixelType<Point<TCoordRep, NPointDimension>>
84{
85 static constexpr std::string_view PixelString = "Point";
87};
88
89template <typename TPixel, unsigned VLength>
90struct MapPixelType<CovariantVector<TPixel, VLength>>
91{
92 static constexpr std::string_view PixelString = "CovariantVector";
94};
95
96template <typename TPixel, unsigned VLength>
98{
99 static constexpr std::string_view PixelString = "SymmetricSecondRankTensor";
101};
102
103template <typename TPixel>
105{
106 static constexpr std::string_view PixelString = "DiffusionTensor3D";
108};
109
110template <typename TPixel>
111struct MapPixelType<std::complex<TPixel>>
112{
113 static constexpr std::string_view PixelString = "Complex";
115};
116
117template <typename TPixel, unsigned VLength>
118struct MapPixelType<FixedArray<TPixel, VLength>>
119{
120 static constexpr std::string_view PixelString = "FixedArray";
122};
123
124template <typename TValue>
125struct MapPixelType<Array<TValue>>
126{
127 static constexpr std::string_view PixelString = "Array";
129};
130
131template <typename TValue, unsigned VLength>
132struct MapPixelType<Matrix<TValue, VLength, VLength>>
133{
134 static constexpr std::string_view PixelString = "Matrix";
136};
137
138template <typename TPixel>
140{
141 static constexpr std::string_view PixelString = "VariableLengthVector";
143};
144
145
146template <typename TValue>
148{
149 static constexpr std::string_view PixelString = "VariableSizeMatrix";
151};
152
153
154} // end namespace wasm
155} // end namespace itk
156#endif // itkWasmMapPixelType_h
Array class with size defined at construction time.
Definition itkArray.h:48
A templated class holding a n-Dimensional covariant vector.
Represent a diffusion tensor as used in DTI images.
Simulate a standard C array with copy semantics.
A templated class holding a M x N size Matrix.
Definition itkMatrix.h:71
A templated class holding a geometric point in n-Dimensional space.
Definition itkPoint.h:54
Represent Red, Green, Blue and Alpha components for color images.
Represent Red, Green and Blue components for color images.
Definition itkRGBPixel.h:58
Represent a symmetric tensor of second rank.
A templated class holding a M x N size Matrix.
A templated class holding a n-Dimensional vector.
Definition itkVector.h:63
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
STL namespace.
Represent a n-dimensional offset between two n-dimensional indexes of n-dimensional image.
Definition itkOffset.h:67
static constexpr std::string_view PixelString
static constexpr JSONPixelTypesEnum JSONPixelEnum
static constexpr std::string_view PixelString
static constexpr JSONPixelTypesEnum JSONPixelEnum
static constexpr std::string_view PixelString
static constexpr JSONPixelTypesEnum JSONPixelEnum
static constexpr JSONPixelTypesEnum JSONPixelEnum
static constexpr std::string_view PixelString
static constexpr JSONPixelTypesEnum JSONPixelEnum
static constexpr std::string_view PixelString
static constexpr JSONPixelTypesEnum JSONPixelEnum