18 #ifndef itkConvertPixelBuffer_h
19 #define itkConvertPixelBuffer_h
20 #include "ITKIOImageBaseExport.h"
42 typename InputPixelType,
43 typename OutputPixelType,
44 typename OutputConvertTraits
55 static void Convert(InputPixelType *inputData,
56 int inputNumberOfComponents,
57 OutputPixelType *outputData,
size_t size);
59 static void ConvertVectorImage(InputPixelType *inputData,
60 int inputNumberOfComponents,
61 OutputPixelType *outputData,
size_t size);
67 static void ConvertGrayToGray(InputPixelType *inputData,
68 OutputPixelType *outputData,
size_t size);
74 static void ConvertRGBToGray(InputPixelType *inputData,
75 OutputPixelType *outputData,
size_t size);
81 static void ConvertRGBAToGray(InputPixelType *inputData,
82 OutputPixelType *outputData,
size_t size);
84 static void ConvertMultiComponentToGray(InputPixelType *inputData,
85 int inputNumberOfComponents,
86 OutputPixelType *outputData,
93 static void ConvertGrayToRGB(InputPixelType *inputData,
94 OutputPixelType *outputData,
size_t size);
97 static void ConvertRGBToRGB(InputPixelType *inputData,
98 OutputPixelType *outputData,
size_t size);
101 static void ConvertRGBAToRGB(InputPixelType *inputData,
102 OutputPixelType *outputData,
size_t size);
112 static void ConvertMultiComponentToRGB(InputPixelType *inputData,
113 int inputNumberOfComponents,
114 OutputPixelType *outputData,
118 static void ConvertGrayToRGBA(InputPixelType *inputData,
119 OutputPixelType *outputData,
size_t size);
121 static void ConvertRGBToRGBA(InputPixelType *inputData,
122 OutputPixelType *outputData,
size_t size);
124 static void ConvertRGBAToRGBA(InputPixelType *inputData,
125 OutputPixelType *outputData,
size_t size);
127 static void ConvertMultiComponentToRGBA(InputPixelType *inputData,
128 int inputNumberOfComponents,
129 OutputPixelType *outputData,
135 static void ConvertTensor6ToTensor6(InputPixelType *inputData,
136 OutputPixelType *outputData,
size_t size);
138 static void ConvertTensor9ToTensor6(InputPixelType *inputData,
139 OutputPixelType *outputData,
size_t size);
142 static void ConvertGrayToComplex(InputPixelType *inputData,
143 OutputPixelType *OutputData,
size_t size);
145 static void ConvertComplexToComplex(InputPixelType *inputData,
146 OutputPixelType *outputData,
size_t size);
148 static void ConvertMultiComponentToComplex(InputPixelType *inputData,
149 int inputNumberOfComponents,
150 OutputPixelType *outputData,
size_t size);
158 template <
typename UComponentType>
161 DefaultAlphaValue(
void );
163 template <
typename UComponentType>
164 static typename EnableIfC<
166 DefaultAlphaValue(
void );
175 #ifndef ITK_MANUAL_INSTANTIATION
176 #include "itkConvertPixelBuffer.hxx"
179 #endif // itkConvertPixelBuffer_h
Class to convert blocks of data from one type to another.
OutputConvertTraits::ComponentType OutputComponentType
Define additional traits for native types such as int or float.
An implementation of the negation of the enable if idiom.