Mercurial > hg > svcore
comparison data/model/EditableDenseThreeDimensionalModel.h @ 534:6038cb6fcd30
* Some simple compression for dense 3d models that actually represent
multirate data such as wavelet transform outputs. If a column has
many elements at top or bottom that are the same as those of an
earlier column, store a reference to that one and truncate the
duplicate values.
author | Chris Cannam |
---|---|
date | Fri, 23 Jan 2009 13:31:51 +0000 |
parents | 55ad231c9db7 |
children | 3ccf48fb81d6 |
comparison
equal
deleted
inserted
replaced
533:55ad231c9db7 | 534:6038cb6fcd30 |
---|---|
123 | 123 |
124 protected: | 124 protected: |
125 typedef QVector<Column> ValueMatrix; | 125 typedef QVector<Column> ValueMatrix; |
126 ValueMatrix m_data; | 126 ValueMatrix m_data; |
127 | 127 |
128 std::vector<signed char> m_trunc; // +ve -> top is truncated, -ve -> bottom | |
129 void truncateAndStore(size_t index, const Column & values); | |
130 Column expandAndRetrieve(size_t index) const; | |
131 | |
128 std::vector<QString> m_binNames; | 132 std::vector<QString> m_binNames; |
129 | 133 |
130 size_t m_sampleRate; | 134 size_t m_sampleRate; |
131 size_t m_resolution; | 135 size_t m_resolution; |
132 size_t m_yBinCount; | 136 size_t m_yBinCount; |