DGtal
0.6.devel
|
Public Types | |
typedef Value | ValueType |
Public Member Functions | |
DynArrayLXY (unsigned int _L, unsigned int _X, unsigned int _Y, Value invalid) | |
~DynArrayLXY () | |
void | clear () |
size_t | offset (unsigned int l, unsigned int x, unsigned int y) const |
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 &out, unsigned int l, unsigned int x, unsigned int y) |
unsigned long long | area () const |
Data Fields | |
const unsigned int | L |
const unsigned int | X |
const unsigned int | Y |
Private Attributes | |
Value * | _data |
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 79 of file testMultiMap-benchmark.cpp.
typedef Value DynArrayLXY< Value >::ValueType |
Definition at line 81 of file testMultiMap-benchmark.cpp.
|
inline |
|
inline |
Definition at line 100 of file testMultiMap-benchmark.cpp.
|
inline |
Definition at line 172 of file testMultiMap-benchmark.cpp.
|
inline |
|
inline |
Definition at line 168 of file testMultiMap-benchmark.cpp.
|
inline |
|
inline |
Definition at line 151 of file testMultiMap-benchmark.cpp.
|
inline |
Definition at line 146 of file testMultiMap-benchmark.cpp.
|
inline |
Definition at line 160 of file testMultiMap-benchmark.cpp.
|
inline |
Definition at line 114 of file testMultiMap-benchmark.cpp.
|
inline |
Definition at line 136 of file testMultiMap-benchmark.cpp.
|
inline |
Definition at line 141 of file testMultiMap-benchmark.cpp.
|
inline |
Definition at line 119 of file testMultiMap-benchmark.cpp.
|
private |
Definition at line 87 of file testMultiMap-benchmark.cpp.
|
private |
Definition at line 88 of file testMultiMap-benchmark.cpp.
const unsigned int DynArrayLXY< Value >::L |
Definition at line 82 of file testMultiMap-benchmark.cpp.
const unsigned int DynArrayLXY< Value >::X |
Definition at line 83 of file testMultiMap-benchmark.cpp.
const unsigned int DynArrayLXY< Value >::Y |
Definition at line 84 of file testMultiMap-benchmark.cpp.