Openholo  v5.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 oph::ohcHeader &_Header)
 
virtual ~ImgCodecOhc ()=0
 
virtual void initOHCheader ()
 
virtual void releaseFldData ()
 
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 Attributes

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 57 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 oph::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 74 of file ImgCodecOhc.h.

◆ getComplexFieldData() [2/4]

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

Definition at line 125 of file ImgCodecOhc.cpp.

◆ getComplexFieldData() [3/4]

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

Definition at line 130 of file ImgCodecOhc.cpp.

◆ getComplexFieldData() [4/4]

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

Definition at line 142 of file ImgCodecOhc.cpp.

◆ getFieldInfo()

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

Definition at line 116 of file ImgCodecOhc.cpp.

◆ getOHCheader()

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

Definition at line 109 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 158 of file ImgCodecOhc.cpp.

◆ releaseFldData()

void oph::ImgCodecOhc::releaseFldData ( )
virtual

Reimplemented in oph::ImgDecoderOhc.

Definition at line 170 of file ImgCodecOhc.cpp.

◆ releaseOHCheader()

void oph::ImgCodecOhc::releaseOHCheader ( )

Definition at line 151 of file ImgCodecOhc.cpp.

◆ setFileName()

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

Definition at line 92 of file ImgCodecOhc.cpp.

◆ setOHCheader()

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

Definition at line 98 of file ImgCodecOhc.cpp.

Member Data Documentation

◆ buf_f32

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

Definition at line 84 of file ImgCodecOhc.h.

◆ buf_f64

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

Definition at line 85 of file ImgCodecOhc.h.

◆ field_cmplx

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

Definition at line 86 of file ImgCodecOhc.h.

◆ fname

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

Definition at line 82 of file ImgCodecOhc.h.

◆ Header

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

Definition at line 89 of file ImgCodecOhc.h.

◆ linkFilePath

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

Definition at line 87 of file ImgCodecOhc.h.


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