18#ifndef itkConvertPixelBuffer_h
19#define itkConvertPixelBuffer_h
20#include "ITKIOImageBaseExport.h"
45template <
typename InputPixelType,
typename OutputPixelType,
typename OutputConvertTraits>
65 Convert(
const InputPixelType * inputData,
int inputNumberOfComponents, OutputPixelType * outputData,
size_t size);
69 int inputNumberOfComponents,
70 OutputPixelType * outputData,
78 ConvertGrayToGray(
const InputPixelType * inputData, OutputPixelType * outputData,
size_t size);
85 ConvertRGBToGray(
const InputPixelType * inputData, OutputPixelType * outputData,
size_t size);
92 ConvertRGBAToGray(
const InputPixelType * inputData, OutputPixelType * outputData,
size_t size);
96 int inputNumberOfComponents,
97 OutputPixelType * outputData,
105 ConvertGrayToRGB(
const InputPixelType * inputData, OutputPixelType * outputData,
size_t size);
109 ConvertRGBToRGB(
const InputPixelType * inputData, OutputPixelType * outputData,
size_t size);
113 ConvertRGBAToRGB(
const InputPixelType * inputData, OutputPixelType * outputData,
size_t size);
125 int inputNumberOfComponents,
126 OutputPixelType * outputData,
134 ConvertRGBToRGBA(
const InputPixelType * inputData, OutputPixelType * outputData,
size_t size);
141 int inputNumberOfComponents,
142 OutputPixelType * outputData,
148 int inputNumberOfComponents,
149 OutputPixelType * outputData,
170 int inputNumberOfComponents,
171 OutputPixelType * outputData,
180 template <
typename UComponentType>
181 static std::enable_if_t<!std::is_integral_v<UComponentType>, UComponentType>
184 template <
typename UComponentType>
185 static std::enable_if_t<std::is_integral_v<UComponentType>, UComponentType>
190#ifndef ITK_MANUAL_INSTANTIATION
191# include "itkConvertPixelBuffer.hxx"
Class to convert blocks of data from one type to another.
ConvertPixelBuffer & operator=(ConvertPixelBuffer &&)=delete
ConvertPixelBuffer & operator=(const ConvertPixelBuffer &)=delete
static std::enable_if_t< std::is_integral_v< UComponentType >, UComponentType > DefaultAlphaValue()
static void ConvertVectorToVector(const InputPixelType *inputData, int inputNumberOfComponents, OutputPixelType *outputData, vcl_size_t size)
static void ConvertVectorImage(const InputPixelType *inputData, int inputNumberOfComponents, OutputPixelType *outputData, vcl_size_t size)
static void ConvertRGBToRGBA(const InputPixelType *inputData, OutputPixelType *outputData, vcl_size_t size)
static void ConvertGrayToRGB(const InputPixelType *inputData, OutputPixelType *outputData, vcl_size_t size)
static void ConvertRGBAToRGB(const InputPixelType *inputData, OutputPixelType *outputData, vcl_size_t size)
static void Convert(const InputPixelType *inputData, int inputNumberOfComponents, OutputPixelType *outputData, vcl_size_t size)
static void ConvertGrayToRGBA(const InputPixelType *inputData, OutputPixelType *outputData, vcl_size_t size)
static void ConvertComplexToComplex(const InputPixelType *inputData, OutputPixelType *outputData, vcl_size_t size)
static void ConvertMultiComponentToRGBA(const InputPixelType *inputData, int inputNumberOfComponents, OutputPixelType *outputData, vcl_size_t size)
static void ConvertGrayToGray(const InputPixelType *inputData, OutputPixelType *outputData, vcl_size_t size)
static void ConvertMultiComponentToRGB(const InputPixelType *inputData, int inputNumberOfComponents, OutputPixelType *outputData, vcl_size_t size)
static void ConvertRGBAToGray(const InputPixelType *inputData, OutputPixelType *outputData, vcl_size_t size)
ConvertPixelBuffer(const ConvertPixelBuffer &)=delete
static void ConvertTensor6ToTensor6(const InputPixelType *inputData, OutputPixelType *outputData, vcl_size_t size)
static void ConvertRGBToRGB(const InputPixelType *inputData, OutputPixelType *outputData, vcl_size_t size)
typename OutputConvertTraits::ComponentType OutputComponentType
static void ConvertMultiComponentToComplex(const InputPixelType *inputData, int inputNumberOfComponents, OutputPixelType *outputData, vcl_size_t size)
virtual ~ConvertPixelBuffer()=delete
static void ConvertTensor9ToTensor6(const InputPixelType *inputData, OutputPixelType *outputData, vcl_size_t size)
static void ConvertGrayToComplex(const InputPixelType *inputData, OutputPixelType *outputData, vcl_size_t size)
ConvertPixelBuffer(ConvertPixelBuffer &&)=delete
static void ConvertRGBToGray(const InputPixelType *inputData, OutputPixelType *outputData, vcl_size_t size)
static void ConvertRGBAToRGBA(const InputPixelType *inputData, OutputPixelType *outputData, vcl_size_t size)
static void ConvertMultiComponentToGray(const InputPixelType *inputData, int inputNumberOfComponents, OutputPixelType *outputData, vcl_size_t size)
static std::enable_if_t<!std::is_integral_v< UComponentType >, UComponentType > DefaultAlphaValue()
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....