|
DGtal 2.0.0
|
Public Member Functions | |
| ArrayLXY (Value invalid) | |
| void | clear () |
| const Value & | value (unsigned int l, unsigned int x, unsigned int y) const |
| 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 &, unsigned int, unsigned int, unsigned int) |
| unsigned long long | area () const |
Private Attributes | |
| Value | _data [L][X][Y] |
| Value | _invalid |
Array[L][X][Y] of value. Brute-force. High memory consumption. Rather fast except when working with several labels.
Note that 4000*4000*16 is upper limit on my 8Gb laptop (2Gb). Note that 2000*2000*64 is upper limit on my 8Gb laptop (2Gb).
Definition at line 73 of file testLabelledMap-benchmark.cpp.
|
inline |
Definition at line 79 of file testLabelledMap-benchmark.cpp.
|
inline |
Definition at line 86 of file testLabelledMap-benchmark.cpp.
References _invalid, DGtal::L, and setValue().
Referenced by ArrayLXY().
|
inline |
Definition at line 143 of file testLabelledMap-benchmark.cpp.
|
inline |
Definition at line 100 of file testLabelledMap-benchmark.cpp.
|
inline |
Definition at line 126 of file testLabelledMap-benchmark.cpp.
References hasLabel(), and DGtal::L.
|
inline |
Definition at line 121 of file testLabelledMap-benchmark.cpp.
References _invalid, and value().
Referenced by getLabels(), and nbLabels().
|
inline |
Definition at line 95 of file testLabelledMap-benchmark.cpp.
References _data.
Referenced by hasLabel().
|
private |
Definition at line 74 of file testLabelledMap-benchmark.cpp.
Referenced by erase(), setValue(), setValueNoNewLabel(), and value().
|
private |
Definition at line 75 of file testLabelledMap-benchmark.cpp.
Referenced by ArrayLXY(), clear(), erase(), and hasLabel().