OTB  9.0.0
Orfeo Toolbox
Namespaces | Macros | Functions | Variables
otbImageFileReader.hxx File Reference
#include "otbImageFileReader.h"
#include "otbConfigure.h"
#include "otbSystem.h"
#include <itksys/SystemTools.hxx>
#include <fstream>
#include <string>
#include "itkImageIOFactory.h"
#include "itkPixelTraits.h"
#include "itkVectorImage.h"
#include "itkMetaDataObject.h"
#include "otbConvertPixelBuffer.h"
#include "otbImageIOFactory.h"
#include "otbMetaDataKey.h"
#include "otbImageMetadata.h"
#include "otbImageMetadataInterfaceFactory.h"
#include "otbImageCommons.h"
#include "otbGeomMetadataSupplier.h"
#include "otbMacro.h"
+ Include dependency graph for otbImageFileReader.hxx:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 otb
 

Macros

#define OTB_CONVERT_BUFFER_IF_BLOCK(type)
 
#define OTB_CONVERT_CBUFFER_IF_BLOCK(type)
 

Functions

template<class T >
bool otb::PixelIsComplex (const std::complex< T > &)
 
template<class T >
bool otb::PixelIsComplex (const T &)
 

Variables

static const char otb::DerivedSubdatasetPrefix [] = "DERIVED_SUBDATASET:"
 
static const vcl_size_t otb::DerivedSubdatasetPrefixLength = sizeof(DerivedSubdatasetPrefix)
 

Macro Definition Documentation

◆ OTB_CONVERT_BUFFER_IF_BLOCK

#define OTB_CONVERT_BUFFER_IF_BLOCK (   type)
Value:
else if (m_ImageIO->GetComponentTypeInfo() == typeid(type)) \
{ \
if (strcmp(this->GetOutput()->GetNameOfClass(), "VectorImage") == 0) \
{ \
ConvertPixelBuffer<type, OutputImagePixelType, ConvertPixelTraits>::ConvertVectorImage(static_cast<type*>(inputData), m_IOComponents, outputData, \
numberOfPixels); \
} \
else \
{ \
ConvertPixelBuffer<type, OutputImagePixelType, ConvertPixelTraits>::Convert(static_cast<type*>(inputData), m_IOComponents, outputData, numberOfPixels); \
} \
}

◆ OTB_CONVERT_CBUFFER_IF_BLOCK

#define OTB_CONVERT_CBUFFER_IF_BLOCK (   type)
Value:
else if (m_ImageIO->GetComponentTypeInfo() == typeid(type)) \
{ \
if (strcmp(this->GetOutput()->GetNameOfClass(), "VectorImage") == 0) \
{ \
if ((typeid(OutputImagePixelType) == typeid(std::complex<double>)) || (typeid(OutputImagePixelType) == typeid(std::complex<float>)) || \
(typeid(OutputImagePixelType) == typeid(std::complex<int>)) || (typeid(OutputImagePixelType) == typeid(std::complex<short>))) \
{ \
ConvertPixelBuffer<type::value_type, OutputImagePixelType, ConvertPixelTraits>::ConvertComplexVectorImageToVectorImageComplex( \
static_cast<type*>(inputData), m_IOComponents, outputData, numberOfPixels); \
} \
else \
{ \
ConvertPixelBuffer<type::value_type, OutputImagePixelType, ConvertPixelTraits>::ConvertComplexVectorImageToVectorImage( \
static_cast<type*>(inputData), m_IOComponents, outputData, numberOfPixels); \
} \
} \
else \
{ \
ConvertPixelBuffer<type::value_type, OutputImagePixelType, ConvertPixelTraits>::ConvertComplexToGray(static_cast<type*>(inputData), m_IOComponents, \
outputData, numberOfPixels); \
} \
}