Darwin
1.10(beta)
|
Templated utility class for holding annotations for every node in a graph. See learning code for example use. More...
Public Member Functions | |
drwnNNGraphNodeAnnotation () | |
default constructor (use initialize after constructing) | |
drwnNNGraphNodeAnnotation (const drwnNNGraph &graph, const T &initValue) | |
construct for a given graph | |
~drwnNNGraphNodeAnnotation () | |
destructor | |
void | initialize (const drwnNNGraph &graph, const T &initValue) |
Initialize annotation for a given graph. Sets all tags to initValue . | |
void | reset (const T &initValue) |
reset all tags to initValue . | |
const vector< T > & | operator[] (unsigned imgIndx) const |
returns const reference to annotations for an entire image | |
vector< T > & | operator[] (unsigned imgIndx) |
returns reference an annotation for an entire image | |
const T & | operator[] (const drwnNNGraphNodeIndex &indx) const |
returns const reference to an annotation for an individual node | |
T & | operator[] (const drwnNNGraphNodeIndex &indx) |
returns reference an annotation for an individual node | |
Protected Attributes | |
vector< vector< T > > | _tags |
Templated utility class for holding annotations for every node in a graph. See learning code for example use.