Openholo  v4.2
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 oph::ohcHeader &_Header)
 
virtual ~ImgDecoderOhc ()
 
virtual void releaseFldData ()
 
ivec2 getNumOfPixel ()
 
vec2 getPixelPitch ()
 
oph::LenUnit getPixelPitchUnit ()
 
uint getNumOfWavlen ()
 
oph::ColorType getColorType ()
 
oph::ColorArran getColorArrange ()
 
oph::LenUnit getUnitOfWavlen ()
 
oph::CompresType getCompressedFormatType ()
 
void getWavelength (std::vector< double_t > &wavlen_array)
 
void getLinkFilePath (std::vector< std::string > &linkFilePath_array)
 
bool load ()
 
 ImgDecoderOhc ()
 
 ImgDecoderOhc (const std::string &_fname)
 
 ImgDecoderOhc (const std::string &_fname, const oph::ohcHeader &_Header)
 
virtual ~ImgDecoderOhc ()
 
virtual void releaseFldData ()
 
ivec2 getNumOfPixel ()
 
vec2 getPixelPitch ()
 
oph::LenUnit getPixelPitchUnit ()
 
uint getNumOfWavlen ()
 
oph::ColorType getColorType ()
 
oph::ColorArran getColorArrange ()
 
oph::LenUnit getUnitOfWavlen ()
 
oph::CompresType getCompressedFormatType ()
 
void getWavelength (std::vector< double_t > &wavlen_array)
 
void getLinkFilePath (std::vector< std::string > &linkFilePath_array)
 
bool load ()
 
 ImgDecoderOhc ()
 
 ImgDecoderOhc (const std::string &_fname)
 
 ImgDecoderOhc (const std::string &_fname, const oph::ohcHeader &_Header)
 
virtual ~ImgDecoderOhc ()
 
virtual void releaseFldData ()
 
ivec2 getNumOfPixel ()
 
vec2 getPixelPitch ()
 
oph::LenUnit getPixelPitchUnit ()
 
uint getNumOfWavlen ()
 
oph::ColorType getColorType ()
 
oph::ColorArran getColorArrange ()
 
oph::LenUnit getUnitOfWavlen ()
 
oph::CompresType getCompressedFormatType ()
 
void getWavelength (std::vector< double_t > &wavlen_array)
 
void getLinkFilePath (std::vector< std::string > &linkFilePath_array)
 
bool load ()
 
 ImgDecoderOhc ()
 
 ImgDecoderOhc (const std::string &_fname)
 
 ImgDecoderOhc (const std::string &_fname, const oph::ohcHeader &_Header)
 
virtual ~ImgDecoderOhc ()
 
virtual void releaseFldData ()
 
ivec2 getNumOfPixel ()
 
vec2 getPixelPitch ()
 
oph::LenUnit getPixelPitchUnit ()
 
uint getNumOfWavlen ()
 
oph::ColorType getColorType ()
 
oph::ColorArran getColorArrange ()
 
oph::LenUnit getUnitOfWavlen ()
 
oph::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 oph::ohcHeader &_Header)
 
virtual ~ImgCodecOhc ()=0
 
virtual void initOHCheader ()
 
void releaseOHCheader ()
 
void releaseCodeBuffer ()
 
bool setFileName (const std::string &_fname)
 
bool setOHCheader (const oph::ohcHeader &_Header)
 
void getOHCheader (oph::ohcHeader &_Header)
 
void getFieldInfo (oph::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)
 
 ImgCodecOhc ()
 
 ImgCodecOhc (const std::string &_fname)
 
 ImgCodecOhc (const std::string &_fname, const oph::ohcHeader &_Header)
 
virtual ~ImgCodecOhc ()=0
 
virtual void initOHCheader ()
 
void releaseOHCheader ()
 
void releaseCodeBuffer ()
 
bool setFileName (const std::string &_fname)
 
bool setOHCheader (const oph::ohcHeader &_Header)
 
void getOHCheader (oph::ohcHeader &_Header)
 
void getFieldInfo (oph::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)
 
 ImgCodecOhc ()
 
 ImgCodecOhc (const std::string &_fname)
 
 ImgCodecOhc (const std::string &_fname, const oph::ohcHeader &_Header)
 
virtual ~ImgCodecOhc ()=0
 
virtual void initOHCheader ()
 
void releaseOHCheader ()
 
void releaseCodeBuffer ()
 
bool setFileName (const std::string &_fname)
 
bool setOHCheader (const oph::ohcHeader &_Header)
 
void getOHCheader (oph::ohcHeader &_Header)
 
void getFieldInfo (oph::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)
 
 ImgCodecOhc ()
 
 ImgCodecOhc (const std::string &_fname)
 
 ImgCodecOhc (const std::string &_fname, const oph::ohcHeader &_Header)
 
virtual ~ImgCodecOhc ()=0
 
virtual void initOHCheader ()
 
void releaseOHCheader ()
 
void releaseCodeBuffer ()
 
bool setFileName (const std::string &_fname)
 
bool setOHCheader (const oph::ohcHeader &_Header)
 
void getOHCheader (oph::ohcHeader &_Header)
 
void getFieldInfo (oph::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 ()
 
void fieldToComplex (void)
 
bool decodeFieldData ()
 
void fieldToComplex (void)
 
bool decodeFieldData ()
 
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
 
oph::ohcHeaderHeader = nullptr
 

Detailed Description

Definition at line 94 of file ImgCodecOhc.h.

Constructor & Destructor Documentation

◆ ImgDecoderOhc() [1/12]

oph::ImgDecoderOhc::ImgDecoderOhc ( )

Definition at line 179 of file ImgCodecOhc.cpp.

◆ ImgDecoderOhc() [2/12]

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

Definition at line 184 of file ImgCodecOhc.cpp.

◆ ImgDecoderOhc() [3/12]

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

Definition at line 189 of file ImgCodecOhc.cpp.

◆ ~ImgDecoderOhc() [1/4]

oph::ImgDecoderOhc::~ImgDecoderOhc ( )
virtual

Definition at line 194 of file ImgCodecOhc.cpp.

◆ ImgDecoderOhc() [4/12]

oph::ImgDecoderOhc::ImgDecoderOhc ( )

◆ ImgDecoderOhc() [5/12]

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

◆ ImgDecoderOhc() [6/12]

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

◆ ~ImgDecoderOhc() [2/4]

virtual oph::ImgDecoderOhc::~ImgDecoderOhc ( )
virtual

◆ ImgDecoderOhc() [7/12]

oph::ImgDecoderOhc::ImgDecoderOhc ( )

◆ ImgDecoderOhc() [8/12]

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

◆ ImgDecoderOhc() [9/12]

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

◆ ~ImgDecoderOhc() [3/4]

virtual oph::ImgDecoderOhc::~ImgDecoderOhc ( )
virtual

◆ ImgDecoderOhc() [10/12]

oph::ImgDecoderOhc::ImgDecoderOhc ( )

◆ ImgDecoderOhc() [11/12]

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

◆ ImgDecoderOhc() [12/12]

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

◆ ~ImgDecoderOhc() [4/4]

virtual oph::ImgDecoderOhc::~ImgDecoderOhc ( )
virtual

Member Function Documentation

◆ decodeFieldData() [1/4]

bool oph::ImgDecoderOhc::decodeFieldData ( )
protected

Definition at line 436 of file ImgCodecOhc.cpp.

◆ decodeFieldData() [2/4]

bool oph::ImgDecoderOhc::decodeFieldData ( )
protected

◆ decodeFieldData() [3/4]

bool oph::ImgDecoderOhc::decodeFieldData ( )
protected

◆ decodeFieldData() [4/4]

bool oph::ImgDecoderOhc::decodeFieldData ( )
protected

◆ fieldToComplex() [1/4]

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

◆ fieldToComplex() [2/4]

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

◆ fieldToComplex() [3/4]

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

◆ fieldToComplex() [4/4]

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

Definition at line 415 of file ImgCodecOhc.cpp.

◆ getColorArrange() [1/4]

oph::ColorArran oph::ImgDecoderOhc::getColorArrange ( )

◆ getColorArrange() [2/4]

oph::ColorArran oph::ImgDecoderOhc::getColorArrange ( )

◆ getColorArrange() [3/4]

oph::ColorArran oph::ImgDecoderOhc::getColorArrange ( )

◆ getColorArrange() [4/4]

ColorArran oph::ImgDecoderOhc::getColorArrange ( )

Definition at line 262 of file ImgCodecOhc.cpp.

◆ getColorType() [1/4]

oph::ColorType oph::ImgDecoderOhc::getColorType ( )

◆ getColorType() [2/4]

oph::ColorType oph::ImgDecoderOhc::getColorType ( )

◆ getColorType() [3/4]

oph::ColorType oph::ImgDecoderOhc::getColorType ( )

◆ getColorType() [4/4]

ColorType oph::ImgDecoderOhc::getColorType ( )

Definition at line 253 of file ImgCodecOhc.cpp.

◆ getCompressedFormatType() [1/4]

oph::CompresType oph::ImgDecoderOhc::getCompressedFormatType ( )

◆ getCompressedFormatType() [2/4]

CompresType oph::ImgDecoderOhc::getCompressedFormatType ( )

Definition at line 280 of file ImgCodecOhc.cpp.

◆ getCompressedFormatType() [3/4]

oph::CompresType oph::ImgDecoderOhc::getCompressedFormatType ( )

◆ getCompressedFormatType() [4/4]

oph::CompresType oph::ImgDecoderOhc::getCompressedFormatType ( )

◆ getLinkFilePath() [1/4]

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

◆ getLinkFilePath() [2/4]

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

Definition at line 298 of file ImgCodecOhc.cpp.

◆ getLinkFilePath() [3/4]

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

◆ getLinkFilePath() [4/4]

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

◆ getNumOfPixel() [1/4]

ivec2 oph::ImgDecoderOhc::getNumOfPixel ( )

◆ getNumOfPixel() [2/4]

ivec2 oph::ImgDecoderOhc::getNumOfPixel ( )

Definition at line 217 of file ImgCodecOhc.cpp.

◆ getNumOfPixel() [3/4]

ivec2 oph::ImgDecoderOhc::getNumOfPixel ( )

◆ getNumOfPixel() [4/4]

ivec2 oph::ImgDecoderOhc::getNumOfPixel ( )

◆ getNumOfWavlen() [1/4]

uint oph::ImgDecoderOhc::getNumOfWavlen ( )

◆ getNumOfWavlen() [2/4]

uint oph::ImgDecoderOhc::getNumOfWavlen ( )

Definition at line 244 of file ImgCodecOhc.cpp.

◆ getNumOfWavlen() [3/4]

uint oph::ImgDecoderOhc::getNumOfWavlen ( )

◆ getNumOfWavlen() [4/4]

uint oph::ImgDecoderOhc::getNumOfWavlen ( )

◆ getPixelPitch() [1/4]

vec2 oph::ImgDecoderOhc::getPixelPitch ( )

◆ getPixelPitch() [2/4]

vec2 oph::ImgDecoderOhc::getPixelPitch ( )

◆ getPixelPitch() [3/4]

vec2 oph::ImgDecoderOhc::getPixelPitch ( )

Definition at line 226 of file ImgCodecOhc.cpp.

◆ getPixelPitch() [4/4]

vec2 oph::ImgDecoderOhc::getPixelPitch ( )

◆ getPixelPitchUnit() [1/4]

oph::LenUnit oph::ImgDecoderOhc::getPixelPitchUnit ( )

◆ getPixelPitchUnit() [2/4]

LenUnit oph::ImgDecoderOhc::getPixelPitchUnit ( )

Definition at line 235 of file ImgCodecOhc.cpp.

◆ getPixelPitchUnit() [3/4]

oph::LenUnit oph::ImgDecoderOhc::getPixelPitchUnit ( )

◆ getPixelPitchUnit() [4/4]

oph::LenUnit oph::ImgDecoderOhc::getPixelPitchUnit ( )

◆ getUnitOfWavlen() [1/4]

oph::LenUnit oph::ImgDecoderOhc::getUnitOfWavlen ( )

◆ getUnitOfWavlen() [2/4]

oph::LenUnit oph::ImgDecoderOhc::getUnitOfWavlen ( )

◆ getUnitOfWavlen() [3/4]

LenUnit oph::ImgDecoderOhc::getUnitOfWavlen ( )

Definition at line 271 of file ImgCodecOhc.cpp.

◆ getUnitOfWavlen() [4/4]

oph::LenUnit oph::ImgDecoderOhc::getUnitOfWavlen ( )

◆ getWavelength() [1/4]

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

◆ getWavelength() [2/4]

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

Definition at line 289 of file ImgCodecOhc.cpp.

◆ getWavelength() [3/4]

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

◆ getWavelength() [4/4]

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

◆ load() [1/4]

bool oph::ImgDecoderOhc::load ( )

◆ load() [2/4]

bool oph::ImgDecoderOhc::load ( )

◆ load() [3/4]

bool oph::ImgDecoderOhc::load ( )

◆ load() [4/4]

bool oph::ImgDecoderOhc::load ( )

Definition at line 307 of file ImgCodecOhc.cpp.

◆ releaseFldData() [1/4]

virtual void oph::ImgDecoderOhc::releaseFldData ( )
virtual

Reimplemented from oph::ImgCodecOhc.

◆ releaseFldData() [2/4]

void oph::ImgDecoderOhc::releaseFldData ( )
virtual

Reimplemented from oph::ImgCodecOhc.

Definition at line 201 of file ImgCodecOhc.cpp.

◆ releaseFldData() [3/4]

virtual void oph::ImgDecoderOhc::releaseFldData ( )
virtual

Reimplemented from oph::ImgCodecOhc.

◆ releaseFldData() [4/4]

virtual void oph::ImgDecoderOhc::releaseFldData ( )
virtual

Reimplemented from oph::ImgCodecOhc.

Member Data Documentation

◆ bLoadFile

bool oph::ImgDecoderOhc::bLoadFile = false
protected

Definition at line 119 of file ImgCodecOhc.h.

◆ field_ampli

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

Definition at line 125 of file ImgCodecOhc.h.

◆ field_phase

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

Definition at line 126 of file ImgCodecOhc.h.

◆ File

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

Definition at line 127 of file ImgCodecOhc.h.


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