46 Compressor(std::vector<size_t> dims,
const string &wname,
const string &mode);
47 Compressor(std::vector<size_t> dims,
const string &wname);
122 int Decompose(
const float *src_arr,
float *dst_arr,
const vector<size_t> &dst_arr_lens, vector<SignificanceMap> &sigmaps);
123 int Decompose(
const double *src_arr,
double *dst_arr,
const vector<size_t> &dst_arr_lens, vector<SignificanceMap> &sigmaps);
124 int Decompose(
const int *src_arr,
int *dst_arr,
const vector<size_t> &dst_arr_lens, vector<SignificanceMap> &sigmaps);
125 int Decompose(
const long *src_arr,
long *dst_arr,
const vector<size_t> &dst_arr_lens, vector<SignificanceMap> &sigmaps);
163 int Reconstruct(
const float *src_arr,
float *dst_arr, vector<SignificanceMap> &sigmaps,
int l);
164 int Reconstruct(
const double *src_arr,
double *dst_arr, vector<SignificanceMap> &sigmaps,
int l);
165 int Reconstruct(
const int *src_arr,
int *dst_arr, vector<SignificanceMap> &sigmaps,
int l);
166 int Reconstruct(
const long *src_arr,
long *dst_arr, vector<SignificanceMap> &sigmaps,
int l);
198 dims.push_back(_CLen);
230 std::vector<size_t> dims;
231 dims.push_back(GetNumWaveCoeffs());
232 return (SignificanceMap::GetMapSize(dims, num_entries));
340 static bool CompressionInfo(vector<size_t> dims,
const string wavename,
bool keepapp,
size_t &nlevels,
size_t &maxcratio);
345 vector<size_t> _dims;
347 vector<void *> _indexvec;
356 bool _clamp_min_flag;
357 bool _clamp_max_flag;
363 void _Compressor(std::vector<size_t> dims);
A class for managing data set metadata.
void GetSigMapShape(std::vector< size_t > &dims) const
int Decompress(const float *src_arr, float *dst_arr, SignificanceMap *sigmap)
int Decompose(const double *src_arr, double *dst_arr, const vector< size_t > &dst_arr_lens, vector< SignificanceMap > &sigmaps)
int Compress(const long *src_arr, long *dst_arr, size_t dst_arr_len, SignificanceMap *sigmap)
int Decompose(const long *src_arr, long *dst_arr, const vector< size_t > &dst_arr_lens, vector< SignificanceMap > &sigmaps)
int Reconstruct(const int *src_arr, int *dst_arr, vector< SignificanceMap > &sigmaps, int l)
int Decompress(const long *src_arr, long *dst_arr, SignificanceMap *sigmap)
int Reconstruct(const long *src_arr, long *dst_arr, vector< SignificanceMap > &sigmaps, int l)
friend std::ostream & operator<<(std::ostream &o, const Compressor &rhs)
size_t GetNumWaveCoeffs() const
Compressor(std::vector< size_t > dims, const string &wname, const string &mode)
int Compress(const float *src_arr, float *dst_arr, size_t dst_arr_len, SignificanceMap *sigmap)
int Decompress(const int *src_arr, int *dst_arr, SignificanceMap *sigmap)
int Reconstruct(const double *src_arr, double *dst_arr, vector< SignificanceMap > &sigmaps, int l)
void GetDimension(vector< size_t > &dims, int l) const
int Decompose(const float *src_arr, float *dst_arr, const vector< size_t > &dst_arr_lens, vector< SignificanceMap > &sigmaps)
size_t GetMinCompression() const
int Compress(const double *src_arr, double *dst_arr, size_t dst_arr_len, SignificanceMap *sigmap)
static bool CompressionInfo(vector< size_t > dims, const string wavename, bool keepapp, size_t &nlevels, size_t &maxcratio)
Compressor(std::vector< size_t > dims, const string &wname)
int Decompose(const int *src_arr, int *dst_arr, const vector< size_t > &dst_arr_lens, vector< SignificanceMap > &sigmaps)
int Reconstruct(const float *src_arr, float *dst_arr, vector< SignificanceMap > &sigmaps, int l)
int Decompress(const double *src_arr, double *dst_arr, SignificanceMap *sigmap)
int Compress(const int *src_arr, int *dst_arr, size_t dst_arr_len, SignificanceMap *sigmap)
size_t GetSigMapSize(size_t num_entries) const
Implements a multi-level wavelet filter.
Implements a significance map.