|
Darwin
1.10(beta)
|
Encapsulates a superpixel node in a drwnNNGraph. More...
Public Member Functions | |
| drwnNNGraphNode () | |
| default constructor | |
| drwnNNGraphNode (const VectorXf &x, int32_t y=-1) | |
| constructor | |
| void | clear () |
| clear features, label, edges and spatial neighbours | |
| bool | insert (const drwnNNGraphEdge &e) |
| update node with a potential edge (removing previous worst edge) | |
| size_t | numBytesOnDisk () const |
| number of bytes needed on disk | |
| bool | read (istream &is) |
| read from a stream (deserialization) | |
| bool | write (ostream &os) const |
| write to a stream (serialization) | |
Public Attributes | |
| VectorXf | features |
| features for this node | |
| int32_t | label |
| label for this node | |
| drwnNNGraphEdgeList | edges |
| sorted outgoing edges (match neighbours) | |
| set< uint16_t > | spatialNeighbours |
| set of spatial neighbours (for search) | |
Encapsulates a superpixel node in a drwnNNGraph.
1.8.6