18 #ifndef itkConvertPixelBuffer_h
19 #define itkConvertPixelBuffer_h
20 #include "ITKIOImageBaseExport.h"
45 template <
typename InputPixelType,
typename OutputPixelType,
typename OutputConvertTraits>
65 Convert(InputPixelType * inputData,
int inputNumberOfComponents, OutputPixelType * outputData,
size_t size);
68 ConvertVectorImage(InputPixelType * inputData,
69 int inputNumberOfComponents,
70 OutputPixelType * outputData,
78 ConvertGrayToGray(InputPixelType * inputData, OutputPixelType * outputData,
size_t size);
85 ConvertRGBToGray(InputPixelType * inputData, OutputPixelType * outputData,
size_t size);
92 ConvertRGBAToGray(InputPixelType * inputData, OutputPixelType * outputData,
size_t size);
95 ConvertMultiComponentToGray(InputPixelType * inputData,
96 int inputNumberOfComponents,
97 OutputPixelType * outputData,
105 ConvertGrayToRGB(InputPixelType * inputData, OutputPixelType * outputData,
size_t size);
109 ConvertRGBToRGB(InputPixelType * inputData, OutputPixelType * outputData,
size_t size);
113 ConvertRGBAToRGB(InputPixelType * inputData, OutputPixelType * outputData,
size_t size);
124 ConvertMultiComponentToRGB(InputPixelType * inputData,
125 int inputNumberOfComponents,
126 OutputPixelType * outputData,
131 ConvertGrayToRGBA(InputPixelType * inputData, OutputPixelType * outputData,
size_t size);
134 ConvertRGBToRGBA(InputPixelType * inputData, OutputPixelType * outputData,
size_t size);
137 ConvertRGBAToRGBA(InputPixelType * inputData, OutputPixelType * outputData,
size_t size);
140 ConvertMultiComponentToRGBA(InputPixelType * inputData,
141 int inputNumberOfComponents,
142 OutputPixelType * outputData,
149 ConvertTensor6ToTensor6(InputPixelType * inputData, OutputPixelType * outputData,
size_t size);
152 ConvertTensor9ToTensor6(InputPixelType * inputData, OutputPixelType * outputData,
size_t size);
156 ConvertGrayToComplex(InputPixelType * inputData, OutputPixelType * outputData,
size_t size);
159 ConvertComplexToComplex(InputPixelType * inputData, OutputPixelType * outputData,
size_t size);
162 ConvertMultiComponentToComplex(InputPixelType * inputData,
163 int inputNumberOfComponents,
164 OutputPixelType * outputData,
173 template <
typename UComponentType>
177 template <
typename UComponentType>
178 static typename EnableIfC<NumericTraits<UComponentType>::IsInteger, UComponentType>::Type
183 #ifndef ITK_MANUAL_INSTANTIATION
184 # include "itkConvertPixelBuffer.hxx"
187 #endif // itkConvertPixelBuffer_h