46 #ifndef __ImgCodecOhc_h 47 #define __ImgCodecOhc_h 63 virtual void initOHCheader();
64 virtual void releaseFldData();
65 void releaseOHCheader();
66 void releaseCodeBuffer();
68 bool setFileName(
const std::string &_fname);
84 float* buf_f32 =
nullptr;
85 double* buf_f64 =
nullptr;
100 virtual void releaseFldData();
103 ivec2 getNumOfPixel();
104 vec2 getPixelPitch();
106 uint getNumOfWavlen();
111 void getWavelength(std::vector<double_t> &wavlen_array);
112 void getLinkFilePath(std::vector<std::string> &linkFilePath_array);
117 void fieldToComplex(
void);
119 bool bLoadFile =
false;
122 bool decodeFieldData();
138 void initOHCheader();
141 void setNumOfPixel(
const uint _pxNumX,
const uint _pxNumY);
142 void setNumOfPixel(
const ivec2 _pxNum);
145 void setNumOfWavlen(
const uint n_wavlens);
147 void setColorType(
const ColorType _clrType);
148 void setColorArrange(
const ColorArran _clrArrange);
151 void setPhaseEncoding(
const BPhaseCode _bPhaseCode,
const double _phaseCodeMin,
const double _phaseCodeMax);
152 void setPhaseEncoding(
const BPhaseCode _bPhaseCode,
const vec2 _phaseCodeRange);
158 void addWavelength(
const Real wavlen);
159 void clearWavelength();
167 uint64_t encodeFieldData();
173 #endif // !__ImgCodecOhc_h
std::vector< std::string > linkFilePath
std::vector< OphComplexField > field_cmplx
structure for 2-dimensional integer vector and its arithmetic.
void getComplexFieldData(OphComplexField &cmplx_field, uint wavelen_idx)
structure for 2-dimensional Real type vector and its arithmetic.
std::vector< OphRealField > field_phase
std::vector< OphRealField > field_ampli