DGtal 2.1.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.
References ArrayLXY< Value, L, X, Y >::_invalid, and ArrayLXY< Value, L, X, Y >::clear().
|
inline |
|
inline |
Definition at line 86 of file testLabelledMap-benchmark.cpp.
References ArrayLXY< Value, L, X, Y >::_invalid, DGtal::L, and ArrayLXY< Value, L, X, Y >::setValue().
Referenced by ArrayLXY< Value, L, X, Y >::ArrayLXY().
|
inline |
Definition at line 143 of file testLabelledMap-benchmark.cpp.
|
inline |
Definition at line 100 of file testLabelledMap-benchmark.cpp.
References ArrayLXY< Value, L, X, Y >::_data, and ArrayLXY< Value, L, X, Y >::_invalid.
|
inline |
Definition at line 126 of file testLabelledMap-benchmark.cpp.
References ArrayLXY< Value, L, X, Y >::hasLabel(), and DGtal::L.
|
inline |
Definition at line 121 of file testLabelledMap-benchmark.cpp.
References ArrayLXY< Value, L, X, Y >::_invalid, and ArrayLXY< Value, L, X, Y >::value().
Referenced by ArrayLXY< Value, L, X, Y >::getLabels(), and ArrayLXY< Value, L, X, Y >::nbLabels().
|
inline |
Definition at line 135 of file testLabelledMap-benchmark.cpp.
References ArrayLXY< Value, L, X, Y >::hasLabel(), and DGtal::L.
|
inline |
Definition at line 111 of file testLabelledMap-benchmark.cpp.
References ArrayLXY< Value, L, X, Y >::_data.
Referenced by ArrayLXY< Value, L, X, Y >::clear().
|
inline |
Definition at line 116 of file testLabelledMap-benchmark.cpp.
References ArrayLXY< Value, L, X, Y >::_data.
|
inline |
Definition at line 95 of file testLabelledMap-benchmark.cpp.
References ArrayLXY< Value, L, X, Y >::_data.
Referenced by ArrayLXY< Value, L, X, Y >::hasLabel().
|
private |
Definition at line 74 of file testLabelledMap-benchmark.cpp.
Referenced by ArrayLXY< Value, L, X, Y >::erase(), ArrayLXY< Value, L, X, Y >::setValue(), ArrayLXY< Value, L, X, Y >::setValueNoNewLabel(), and ArrayLXY< Value, L, X, Y >::value().
|
private |
Definition at line 75 of file testLabelledMap-benchmark.cpp.
Referenced by ArrayLXY< Value, L, X, Y >::ArrayLXY(), ArrayLXY< Value, L, X, Y >::clear(), ArrayLXY< Value, L, X, Y >::erase(), and ArrayLXY< Value, L, X, Y >::hasLabel().