|
DGtal
0.6.devel
|

Public Member Functions | |
| ArrayXYOfMap () | |
| void | clear () |
| const Value & | value (unsigned int l, unsigned int x, unsigned int y) |
| unsigned int | erase (unsigned int l, unsigned int x, unsigned int y) |
| void | setValue (const Value &val, unsigned int l, unsigned int x, unsigned int y) |
| void | setValueNoNewLabel (const Value &val, unsigned int l, unsigned int x, unsigned int y) |
| bool | hasLabel (unsigned int l, unsigned int x, unsigned int y) const |
| void | getLabels (std::vector< unsigned int > &labels, unsigned int x, unsigned int y) const |
| unsigned int | nbLabels (unsigned int x, unsigned int y) const |
| void | display (ostream &out, unsigned int l, unsigned int x, unsigned int y) |
| unsigned long long | area () const |
Private Types | |
| typedef std::map< unsigned int, Value > | MyMap |
| typedef MyMap::const_iterator | ConstIterator |
Private Attributes | |
| MyMap | _data [X][Y] |
Array[X][Y] of map<L,Value> Intermediate approach. Slower (between 30% and 40%) than ArrayXYOfLabelledMap and takes 50% to 100% twice as much place.
Note that 4000*4000*16 takes 861Mb. Note that 2000*2000*64 takes 218Mb.
Definition at line 163 of file testLabelledMap-benchmark.cpp.
|
private |
Definition at line 165 of file testLabelledMap-benchmark.cpp.
|
private |
Definition at line 164 of file testLabelledMap-benchmark.cpp.
|
inline |
Definition at line 170 of file testLabelledMap-benchmark.cpp.
|
inline |
Definition at line 228 of file testLabelledMap-benchmark.cpp.
|
inline |
Definition at line 175 of file testLabelledMap-benchmark.cpp.
|
inline |
Definition at line 223 of file testLabelledMap-benchmark.cpp.
|
inline |
Definition at line 188 of file testLabelledMap-benchmark.cpp.
|
inline |
Definition at line 209 of file testLabelledMap-benchmark.cpp.
|
inline |
Definition at line 204 of file testLabelledMap-benchmark.cpp.
|
inline |
Definition at line 218 of file testLabelledMap-benchmark.cpp.
|
inline |
Definition at line 194 of file testLabelledMap-benchmark.cpp.
|
inline |
Definition at line 199 of file testLabelledMap-benchmark.cpp.
|
inline |
Definition at line 183 of file testLabelledMap-benchmark.cpp.
|
private |
Definition at line 166 of file testLabelledMap-benchmark.cpp.
1.8.1.1