Openholo  v1.0
Open Source Digital Holographic Library
oph::ImgDecoderOhc Class Reference

#include <ImgCodecOhc.h>

Inheritance diagram for oph::ImgDecoderOhc:
Collaboration diagram for oph::ImgDecoderOhc:

Public Member Functions

 ImgDecoderOhc ()
 
 ImgDecoderOhc (const std::string &_fname)
 
 ImgDecoderOhc (const std::string &_fname, const ohcHeader &_Header)
 
virtual ~ImgDecoderOhc ()
 
virtual void releaseFldData ()
 
ivec2 getNumOfPixel ()
 
vec2 getPixelPitch ()
 
LenUnit getPixelPitchUnit ()
 
uint getNumOfWavlen ()
 
ColorType getColorType ()
 
ColorArran getColorArrange ()
 
LenUnit getUnitOfWavlen ()
 
CompresType getCompressedFormatType ()
 
void getWavelength (std::vector< double_t > &wavlen_array)
 
void getLinkFilePath (std::vector< std::string > &linkFilePath_array)
 
bool load ()
 
- Public Member Functions inherited from oph::ImgCodecOhc
 ImgCodecOhc ()
 
 ImgCodecOhc (const std::string &_fname)
 
 ImgCodecOhc (const std::string &_fname, const ohcHeader &_Header)
 
virtual ~ImgCodecOhc ()=0
 
virtual void initOHCheader ()
 
void releaseOHCheader ()
 
void releaseCodeBuffer ()
 
bool setFileName (const std::string &_fname)
 
bool setOHCheader (const ohcHeader &_Header)
 
void getOHCheader (ohcHeader &_Header)
 
void getFieldInfo (ohcFieldInfoHeader &_FieldInfo, std::vector< double_t > &_wavlenTable)
 
void getComplexFieldData (OphComplexField &cmplx_field, uint wavelen_idx)
 
void getComplexFieldData (Complex< Real > **cmplx_field, uint wavelen_idx)
 
void getComplexFieldData (OphComplexField **cmplx_field)
 
void getComplexFieldData (Complex< Real > ***cmplx_field)
 

Protected Member Functions

void fieldToComplex (void)
 
bool decodeFieldData ()
 

Protected Attributes

bool bLoadFile = false
 
std::vector< OphRealFieldfield_ampli
 
std::vector< OphRealFieldfield_phase
 
std::ifstream File
 
- Protected Attributes inherited from oph::ImgCodecOhc
std::string fname
 
float * buf_f32 = nullptr
 
double * buf_f64 = nullptr
 
std::vector< OphComplexFieldfield_cmplx
 
std::vector< std::string > linkFilePath
 
ohcHeaderHeader = nullptr
 

Detailed Description

Definition at line 101 of file ImgCodecOhc.h.

Constructor & Destructor Documentation

◆ ImgDecoderOhc() [1/3]

oph::ImgDecoderOhc::ImgDecoderOhc ( )

Definition at line 166 of file ImgCodecOhc.cpp.

◆ ImgDecoderOhc() [2/3]

oph::ImgDecoderOhc::ImgDecoderOhc ( const std::string &  _fname)

Definition at line 171 of file ImgCodecOhc.cpp.

◆ ImgDecoderOhc() [3/3]

oph::ImgDecoderOhc::ImgDecoderOhc ( const std::string &  _fname,
const ohcHeader _Header 
)

Definition at line 176 of file ImgCodecOhc.cpp.

◆ ~ImgDecoderOhc()

oph::ImgDecoderOhc::~ImgDecoderOhc ( )
virtual

Definition at line 181 of file ImgCodecOhc.cpp.

Member Function Documentation

◆ decodeFieldData()

bool oph::ImgDecoderOhc::decodeFieldData ( )
protected

Definition at line 423 of file ImgCodecOhc.cpp.

◆ fieldToComplex()

void oph::ImgDecoderOhc::fieldToComplex ( void  )
protected

Definition at line 402 of file ImgCodecOhc.cpp.

◆ getColorArrange()

ColorArran oph::ImgDecoderOhc::getColorArrange ( )

Definition at line 249 of file ImgCodecOhc.cpp.

◆ getColorType()

ColorType oph::ImgDecoderOhc::getColorType ( )

Definition at line 240 of file ImgCodecOhc.cpp.

◆ getCompressedFormatType()

CompresType oph::ImgDecoderOhc::getCompressedFormatType ( )

Definition at line 267 of file ImgCodecOhc.cpp.

◆ getLinkFilePath()

void oph::ImgDecoderOhc::getLinkFilePath ( std::vector< std::string > &  linkFilePath_array)

Definition at line 285 of file ImgCodecOhc.cpp.

◆ getNumOfPixel()

ivec2 oph::ImgDecoderOhc::getNumOfPixel ( )

Definition at line 204 of file ImgCodecOhc.cpp.

◆ getNumOfWavlen()

uint oph::ImgDecoderOhc::getNumOfWavlen ( )

Definition at line 231 of file ImgCodecOhc.cpp.

◆ getPixelPitch()

vec2 oph::ImgDecoderOhc::getPixelPitch ( )

Definition at line 213 of file ImgCodecOhc.cpp.

◆ getPixelPitchUnit()

LenUnit oph::ImgDecoderOhc::getPixelPitchUnit ( )

Definition at line 222 of file ImgCodecOhc.cpp.

◆ getUnitOfWavlen()

LenUnit oph::ImgDecoderOhc::getUnitOfWavlen ( )

Definition at line 258 of file ImgCodecOhc.cpp.

◆ getWavelength()

void oph::ImgDecoderOhc::getWavelength ( std::vector< double_t > &  wavlen_array)

Definition at line 276 of file ImgCodecOhc.cpp.

◆ load()

bool oph::ImgDecoderOhc::load ( )

Definition at line 294 of file ImgCodecOhc.cpp.

◆ releaseFldData()

void oph::ImgDecoderOhc::releaseFldData ( )
virtual

Reimplemented from oph::ImgCodecOhc.

Definition at line 188 of file ImgCodecOhc.cpp.

Member Data Documentation

◆ bLoadFile

bool oph::ImgDecoderOhc::bLoadFile = false
protected

Definition at line 126 of file ImgCodecOhc.h.

◆ field_ampli

std::vector<OphRealField> oph::ImgDecoderOhc::field_ampli
protected

Definition at line 132 of file ImgCodecOhc.h.

◆ field_phase

std::vector<OphRealField> oph::ImgDecoderOhc::field_phase
protected

Definition at line 133 of file ImgCodecOhc.h.

◆ File

std::ifstream oph::ImgDecoderOhc::File
protected

Definition at line 134 of file ImgCodecOhc.h.


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