OTB  9.0.0
Orfeo Toolbox
Public Types | List of all members
otb::ConvertPixelBuffer< InputPixelType, OutputPixelType, OutputConvertTraits > Class Template Reference

#include <otbConvertPixelBuffer.h>

Public Types

typedef OutputConvertTraits::ComponentType OutputComponentType
 
static void Convert (InputPixelType *inputData, int inputNumberOfComponents, OutputPixelType *outputData, vcl_size_t size)
 
static void ConvertVectorImage (InputPixelType *inputData, int inputNumberOfComponents, OutputPixelType *outputData, vcl_size_t size)
 
static void ConvertComplexVectorImageToVectorImage (std::complex< InputPixelType > *inputData, int inputNumberOfComponents, OutputPixelType *outputData, vcl_size_t size)
 
static void ConvertComplexVectorImageToVectorImageComplex (std::complex< InputPixelType > *inputData, int inputNumberOfComponents, OutputPixelType *outputData, vcl_size_t size)
 
static void ConvertComplexToGray (std::complex< InputPixelType > *inputData, int inputNumberOfComponents, OutputPixelType *outputData, vcl_size_t size)
 
static void ConvertGrayToComplex (InputPixelType *inputData, OutputPixelType *OutputData, vcl_size_t size)
 
 ConvertPixelBuffer ()
 
 ~ConvertPixelBuffer ()
 

Detailed Description

template<typename InputPixelType, typename OutputPixelType, class OutputConvertTraits>
class otb::ConvertPixelBuffer< InputPixelType, OutputPixelType, OutputConvertTraits >

Class to convert blocks of data from one type to another.

ConvertPixelBuffer uses itk::ConvertPixelBuffer to perform most of the conversions. The monoband to complex conversion is done in this class (different rule than in ITK). New conversions methods are also added in this class : ConvertComplexVectorImageToVectorImage ConvertComplexVectorImageToVectorImageComplex ConvertComplexToGray

Definition at line 46 of file otbConvertPixelBuffer.h.

Member Typedef Documentation

◆ OutputComponentType

template<typename InputPixelType , typename OutputPixelType , class OutputConvertTraits >
typedef OutputConvertTraits::ComponentType otb::ConvertPixelBuffer< InputPixelType, OutputPixelType, OutputConvertTraits >::OutputComponentType

Determine the output data type.

Definition at line 51 of file otbConvertPixelBuffer.h.

Constructor & Destructor Documentation

◆ ConvertPixelBuffer()

template<typename InputPixelType , typename OutputPixelType , class OutputConvertTraits >
otb::ConvertPixelBuffer< InputPixelType, OutputPixelType, OutputConvertTraits >::ConvertPixelBuffer ( )
private

General method converts from one type to another.

◆ ~ConvertPixelBuffer()

template<typename InputPixelType , typename OutputPixelType , class OutputConvertTraits >
otb::ConvertPixelBuffer< InputPixelType, OutputPixelType, OutputConvertTraits >::~ConvertPixelBuffer ( )
private

General method converts from one type to another.

Member Function Documentation

◆ Convert()

template<typename InputPixelType , typename OutputPixelType , class OutputConvertTraits >
void otb::ConvertPixelBuffer< InputPixelType, OutputPixelType, OutputConvertTraits >::Convert ( InputPixelType *  inputData,
int  inputNumberOfComponents,
OutputPixelType *  outputData,
vcl_size_t  size 
)
static

General method converts from one type to another.

Definition at line 31 of file otbConvertPixelBuffer.hxx.

References otb::mpl::GetNumberOfComponents().

◆ ConvertComplexToGray()

template<typename InputPixelType , typename OutputPixelType , class OutputConvertTraits >
void otb::ConvertPixelBuffer< InputPixelType, OutputPixelType, OutputConvertTraits >::ConvertComplexToGray ( std::complex< InputPixelType > *  inputData,
int  inputNumberOfComponents,
OutputPixelType *  outputData,
vcl_size_t  size 
)
static

General method converts from one type to another.

Definition at line 86 of file otbConvertPixelBuffer.hxx.

References otb::ComplexCast().

◆ ConvertComplexVectorImageToVectorImage()

template<typename InputPixelType , typename OutputPixelType , class OutputConvertTraits >
void otb::ConvertPixelBuffer< InputPixelType, OutputPixelType, OutputConvertTraits >::ConvertComplexVectorImageToVectorImage ( std::complex< InputPixelType > *  inputData,
int  inputNumberOfComponents,
OutputPixelType *  outputData,
vcl_size_t  size 
)
static

General method converts from one type to another.

Definition at line 108 of file otbConvertPixelBuffer.hxx.

◆ ConvertComplexVectorImageToVectorImageComplex()

template<typename InputPixelType , typename OutputPixelType , class OutputConvertTraits >
void otb::ConvertPixelBuffer< InputPixelType, OutputPixelType, OutputConvertTraits >::ConvertComplexVectorImageToVectorImageComplex ( std::complex< InputPixelType > *  inputData,
int  inputNumberOfComponents,
OutputPixelType *  outputData,
vcl_size_t  size 
)
static

General method converts from one type to another.

Definition at line 124 of file otbConvertPixelBuffer.hxx.

References otb::ComplexCast().

◆ ConvertGrayToComplex()

template<typename InputPixelType , typename OutputPixelType , class OutputConvertTraits >
void otb::ConvertPixelBuffer< InputPixelType, OutputPixelType, OutputConvertTraits >::ConvertGrayToComplex ( InputPixelType *  inputData,
OutputPixelType *  OutputData,
vcl_size_t  size 
)
staticprotected

Conversions related to complex

Definition at line 48 of file otbConvertPixelBuffer.hxx.

◆ ConvertVectorImage()

template<typename InputPixelType , typename OutputPixelType , class OutputConvertTraits >
void otb::ConvertPixelBuffer< InputPixelType, OutputPixelType, OutputConvertTraits >::ConvertVectorImage ( InputPixelType *  inputData,
int  inputNumberOfComponents,
OutputPixelType *  outputData,
vcl_size_t  size 
)
static

General method converts from one type to another.

Definition at line 101 of file otbConvertPixelBuffer.hxx.


The documentation for this class was generated from the following files: