Openholo  v5.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 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)
 

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
 
oph::ohcHeaderHeader = nullptr
 

Detailed Description

Definition at line 94 of file ImgCodecOhc.h.

Constructor & Destructor Documentation

◆ ImgDecoderOhc() [1/3]

oph::ImgDecoderOhc::ImgDecoderOhc ( )

Definition at line 179 of file ImgCodecOhc.cpp.

◆ ImgDecoderOhc() [2/3]

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

Definition at line 184 of file ImgCodecOhc.cpp.

◆ ImgDecoderOhc() [3/3]

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

Definition at line 189 of file ImgCodecOhc.cpp.

◆ ~ImgDecoderOhc()

oph::ImgDecoderOhc::~ImgDecoderOhc ( )
virtual

Definition at line 194 of file ImgCodecOhc.cpp.

Member Function Documentation

◆ decodeFieldData()

bool oph::ImgDecoderOhc::decodeFieldData ( )
protected

Definition at line 436 of file ImgCodecOhc.cpp.

◆ fieldToComplex()

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

Definition at line 415 of file ImgCodecOhc.cpp.

◆ getColorArrange()

ColorArran oph::ImgDecoderOhc::getColorArrange ( )

Definition at line 262 of file ImgCodecOhc.cpp.

◆ getColorType()

ColorType oph::ImgDecoderOhc::getColorType ( )

Definition at line 253 of file ImgCodecOhc.cpp.

◆ getCompressedFormatType()

CompresType oph::ImgDecoderOhc::getCompressedFormatType ( )

Definition at line 280 of file ImgCodecOhc.cpp.

◆ getLinkFilePath()

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

Definition at line 298 of file ImgCodecOhc.cpp.

◆ getNumOfPixel()

ivec2 oph::ImgDecoderOhc::getNumOfPixel ( )

Definition at line 217 of file ImgCodecOhc.cpp.

◆ getNumOfWavlen()

uint oph::ImgDecoderOhc::getNumOfWavlen ( )

Definition at line 244 of file ImgCodecOhc.cpp.

◆ getPixelPitch()

vec2 oph::ImgDecoderOhc::getPixelPitch ( )

Definition at line 226 of file ImgCodecOhc.cpp.

◆ getPixelPitchUnit()

LenUnit oph::ImgDecoderOhc::getPixelPitchUnit ( )

Definition at line 235 of file ImgCodecOhc.cpp.

◆ getUnitOfWavlen()

LenUnit oph::ImgDecoderOhc::getUnitOfWavlen ( )

Definition at line 271 of file ImgCodecOhc.cpp.

◆ getWavelength()

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

Definition at line 289 of file ImgCodecOhc.cpp.

◆ load()

bool oph::ImgDecoderOhc::load ( )

Definition at line 307 of file ImgCodecOhc.cpp.

◆ releaseFldData()

void oph::ImgDecoderOhc::releaseFldData ( )
virtual

Reimplemented from oph::ImgCodecOhc.

Definition at line 201 of file ImgCodecOhc.cpp.

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: