18 #ifndef __itkConvertPixelBuffer_h
19 #define __itkConvertPixelBuffer_h
20 #include "ITKIOImageBaseExport.h"
41 typename InputPixelType,
42 typename OutputPixelType,
43 typename OutputConvertTraits
54 static void Convert(InputPixelType *inputData,
55 int inputNumberOfComponents,
56 OutputPixelType *outputData,
size_t size);
59 int inputNumberOfComponents,
60 OutputPixelType *outputData,
size_t size);
67 OutputPixelType *outputData,
size_t size);
74 OutputPixelType *outputData,
size_t size);
81 OutputPixelType *outputData,
size_t size);
84 int inputNumberOfComponents,
85 OutputPixelType *outputData,
93 OutputPixelType *outputData,
size_t size);
97 OutputPixelType *outputData,
size_t size);
101 OutputPixelType *outputData,
size_t size);
112 int inputNumberOfComponents,
113 OutputPixelType *outputData,
118 OutputPixelType *outputData,
size_t size);
121 OutputPixelType *outputData,
size_t size);
124 OutputPixelType *outputData,
size_t size);
127 int inputNumberOfComponents,
128 OutputPixelType *outputData,
135 OutputPixelType *outputData,
size_t size);
138 OutputPixelType *outputData,
size_t size);
142 OutputPixelType *OutputData,
size_t size);
145 OutputPixelType *outputData,
size_t size);
148 int inputNumberOfComponents,
149 OutputPixelType *outputData,
size_t size);
161 template <
typename PixelType>
170 #ifndef ITK_MANUAL_INSTANTIATION
171 #include "itkConvertPixelBuffer.hxx"
174 #endif // __itkConvertPixelBuffer_h
static void ConvertGrayToGray(InputPixelType *inputData, OutputPixelType *outputData, vcl_size_t size)
static void ConvertRGBAToRGB(InputPixelType *inputData, OutputPixelType *outputData, vcl_size_t size)
static void ConvertGrayToRGB(InputPixelType *inputData, OutputPixelType *outputData, vcl_size_t size)
static double MaxAlpha(double &)
static void ConvertGrayToRGBA(InputPixelType *inputData, OutputPixelType *outputData, vcl_size_t size)
static void ConvertGrayToComplex(InputPixelType *inputData, OutputPixelType *OutputData, vcl_size_t size)
Class to convert blocks of data from one type to another.
static void ConvertTensor6ToTensor6(InputPixelType *inputData, OutputPixelType *outputData, vcl_size_t size)
static void ConvertVectorImage(InputPixelType *inputData, int inputNumberOfComponents, OutputPixelType *outputData, vcl_size_t size)
static void ConvertRGBAToRGBA(InputPixelType *inputData, OutputPixelType *outputData, vcl_size_t size)
static void ConvertRGBAToGray(InputPixelType *inputData, OutputPixelType *outputData, vcl_size_t size)
static void ConvertRGBToGray(InputPixelType *inputData, OutputPixelType *outputData, vcl_size_t size)
static double MaxAlpha(PixelType &)
static void ConvertRGBToRGBA(InputPixelType *inputData, OutputPixelType *outputData, vcl_size_t size)
static void Convert(InputPixelType *inputData, int inputNumberOfComponents, OutputPixelType *outputData, vcl_size_t size)
static void ConvertMultiComponentToRGB(InputPixelType *inputData, int inputNumberOfComponents, OutputPixelType *outputData, vcl_size_t size)
static void ConvertMultiComponentToComplex(InputPixelType *inputData, int inputNumberOfComponents, OutputPixelType *outputData, vcl_size_t size)
static void ConvertRGBToRGB(InputPixelType *inputData, OutputPixelType *outputData, vcl_size_t size)
OutputConvertTraits::ComponentType OutputComponentType
static void ConvertMultiComponentToGray(InputPixelType *inputData, int inputNumberOfComponents, OutputPixelType *outputData, vcl_size_t size)
static double MaxAlpha(float &)
Define additional traits for native types such as int or float.
static void ConvertTensor9ToTensor6(InputPixelType *inputData, OutputPixelType *outputData, vcl_size_t size)
static void ConvertMultiComponentToRGBA(InputPixelType *inputData, int inputNumberOfComponents, OutputPixelType *outputData, vcl_size_t size)
static void ConvertComplexToComplex(InputPixelType *inputData, OutputPixelType *outputData, vcl_size_t size)