18#ifndef itkConvertPixelBuffer_h
19#define itkConvertPixelBuffer_h
20#include "ITKIOImageBaseExport.h"
45template <
typename InputPixelType,
typename OutputPixelType,
typename OutputConvertTraits>
64 Convert(
const InputPixelType * inputData,
int inputNumberOfComponents, OutputPixelType * outputData,
size_t size);
68 int inputNumberOfComponents,
69 OutputPixelType * outputData,
76 ConvertGrayToGray(
const InputPixelType * inputData, OutputPixelType * outputData,
size_t size);
83 ConvertRGBToGray(
const InputPixelType * inputData, OutputPixelType * outputData,
size_t size);
90 ConvertRGBAToGray(
const InputPixelType * inputData, OutputPixelType * outputData,
size_t size);
94 int inputNumberOfComponents,
95 OutputPixelType * outputData,
102 ConvertGrayToRGB(
const InputPixelType * inputData, OutputPixelType * outputData,
size_t size);
106 ConvertRGBToRGB(
const InputPixelType * inputData, OutputPixelType * outputData,
size_t size);
110 ConvertRGBAToRGB(
const InputPixelType * inputData, OutputPixelType * outputData,
size_t size);
122 int inputNumberOfComponents,
123 OutputPixelType * outputData,
131 ConvertRGBToRGBA(
const InputPixelType * inputData, OutputPixelType * outputData,
size_t size);
138 int inputNumberOfComponents,
139 OutputPixelType * outputData,
145 int inputNumberOfComponents,
146 OutputPixelType * outputData,
166 int inputNumberOfComponents,
167 OutputPixelType * outputData,
176 template <
typename UComponentType>
177 static std::enable_if_t<!std::is_integral_v<UComponentType>, UComponentType>
180 template <
typename UComponentType>
181 static std::enable_if_t<std::is_integral_v<UComponentType>, UComponentType>
186#ifndef ITK_MANUAL_INSTANTIATION
187# include "itkConvertPixelBuffer.hxx"
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....