Openholo  v1.0
Open Source Digital Holographic Library
oph::ImgCodecOhc Class Referenceabstract

#include <ImgCodecOhc.h>

Inheritance diagram for oph::ImgCodecOhc:
Collaboration diagram for oph::ImgCodecOhc:

Public Member Functions

 ImgCodecOhc ()
 
 ImgCodecOhc (const std::string &_fname)
 
 ImgCodecOhc (const std::string &_fname, const ohcHeader &_Header)
 
virtual ~ImgCodecOhc ()=0
 
virtual void initOHCheader ()
 
virtual void releaseFldData ()
 
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 Attributes

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 64 of file ImgCodecOhc.h.

Constructor & Destructor Documentation

◆ ImgCodecOhc() [1/3]

oph::ImgCodecOhc::ImgCodecOhc ( )

Definition at line 62 of file ImgCodecOhc.cpp.

◆ ImgCodecOhc() [2/3]

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

Definition at line 72 of file ImgCodecOhc.cpp.

◆ ImgCodecOhc() [3/3]

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

Definition at line 77 of file ImgCodecOhc.cpp.

◆ ~ImgCodecOhc()

oph::ImgCodecOhc::~ImgCodecOhc ( )
pure virtual

Definition at line 66 of file ImgCodecOhc.cpp.

Member Function Documentation

◆ getComplexFieldData() [1/4]

void oph::ImgCodecOhc::getComplexFieldData ( OphComplexField cmplx_field,
uint  wavelen_idx 
)
inline

Definition at line 81 of file ImgCodecOhc.h.

◆ getComplexFieldData() [2/4]

void oph::ImgCodecOhc::getComplexFieldData ( Complex< Real > **  cmplx_field,
uint  wavelen_idx 
)

Definition at line 121 of file ImgCodecOhc.cpp.

◆ getComplexFieldData() [3/4]

void oph::ImgCodecOhc::getComplexFieldData ( OphComplexField **  cmplx_field)

Definition at line 126 of file ImgCodecOhc.cpp.

◆ getComplexFieldData() [4/4]

void oph::ImgCodecOhc::getComplexFieldData ( Complex< Real > ***  cmplx_field)

Definition at line 138 of file ImgCodecOhc.cpp.

◆ getFieldInfo()

void oph::ImgCodecOhc::getFieldInfo ( ohcFieldInfoHeader _FieldInfo,
std::vector< double_t > &  _wavlenTable 
)

Definition at line 112 of file ImgCodecOhc.cpp.

◆ getOHCheader()

void oph::ImgCodecOhc::getOHCheader ( ohcHeader _Header)

Definition at line 105 of file ImgCodecOhc.cpp.

◆ initOHCheader()

void oph::ImgCodecOhc::initOHCheader ( )
virtual

Reimplemented in oph::ImgEncoderOhc.

Definition at line 83 of file ImgCodecOhc.cpp.

◆ releaseCodeBuffer()

void oph::ImgCodecOhc::releaseCodeBuffer ( )

Definition at line 151 of file ImgCodecOhc.cpp.

◆ releaseFldData()

void oph::ImgCodecOhc::releaseFldData ( )
virtual

Reimplemented in oph::ImgDecoderOhc.

Definition at line 157 of file ImgCodecOhc.cpp.

◆ releaseOHCheader()

void oph::ImgCodecOhc::releaseOHCheader ( )

Definition at line 147 of file ImgCodecOhc.cpp.

◆ setFileName()

bool oph::ImgCodecOhc::setFileName ( const std::string &  _fname)

Definition at line 90 of file ImgCodecOhc.cpp.

◆ setOHCheader()

bool oph::ImgCodecOhc::setOHCheader ( const ohcHeader _Header)

Definition at line 96 of file ImgCodecOhc.cpp.

Member Data Documentation

◆ buf_f32

float* oph::ImgCodecOhc::buf_f32 = nullptr
protected

Definition at line 91 of file ImgCodecOhc.h.

◆ buf_f64

double* oph::ImgCodecOhc::buf_f64 = nullptr
protected

Definition at line 92 of file ImgCodecOhc.h.

◆ field_cmplx

std::vector<OphComplexField> oph::ImgCodecOhc::field_cmplx
protected

Definition at line 93 of file ImgCodecOhc.h.

◆ fname

std::string oph::ImgCodecOhc::fname
protected

Definition at line 89 of file ImgCodecOhc.h.

◆ Header

ohcHeader* oph::ImgCodecOhc::Header = nullptr
protected

Definition at line 96 of file ImgCodecOhc.h.

◆ linkFilePath

std::vector<std::string> oph::ImgCodecOhc::linkFilePath
protected

Definition at line 94 of file ImgCodecOhc.h.


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