A storage component to store with persistence the visibility between keypoints and 3D points, and respectively, based on a bimap from boost.
More...
|
FrameworkReturnCode | increaseEdge (const uint32_t node1_id, const uint32_t node2_id, const float weight) override |
| This method allow to increase edge between 2 nodes. More...
|
|
FrameworkReturnCode | decreaseEdge (const uint32_t node1_id, const uint32_t node2_id, const float weight) override |
| This method allow to decrease edge between 2 nodes. More...
|
|
FrameworkReturnCode | removeEdge (const uint32_t node1_id, const uint32_t node2_id) override |
| This method allow to remove an edge between 2 nodes. More...
|
|
FrameworkReturnCode | getEdge (const uint32_t node1_id, const uint32_t node2_id, float &weight) const override |
| This method allow to get edge between 2 nodes. More...
|
|
bool | isEdge (const uint32_t node1_id, const uint32_t node2_id) const override |
| This method allow to verify that exist an edge between 2 nodes. More...
|
|
FrameworkReturnCode | getAllNodes (std::set< uint32_t > &nodes_id) const override |
| This method allow to get all nodes of the graph. More...
|
|
FrameworkReturnCode | suppressNode (const uint32_t node_id) override |
| This method allow to suppress a node of the graph. More...
|
|
FrameworkReturnCode | getNeighbors (const uint32_t node_id, const float minWeight, std::vector< uint32_t > &neighbors, const uint32_t maxNbNeighbors=0) const override |
| This method allow to get neighbors of a node in the graph. More...
|
|
FrameworkReturnCode | minimalSpanningTree (std::vector< std::tuple< uint32_t, uint32_t, float > > &edges_weights, float &minTotalWeights) override |
| This method allow to get minimal spanning tree of the graph. More...
|
|
FrameworkReturnCode | maximalSpanningTree (std::vector< std::tuple< uint32_t, uint32_t, float > > &edges_weights, float &maxTotalWeights) override |
| This method allow to get maximal spanning tree of the graph. More...
|
|
FrameworkReturnCode | getShortestPath (uint32_t node1_id, uint32_t node2_id, std::vector< uint32_t > &path) override |
| This method allow to get the shortest (by number of vertices) path between 2 nodes. More...
|
|
FrameworkReturnCode | display () const override |
| This method allow to display all vertices and weighted edges of the covisibility graph.
|
|
FrameworkReturnCode | saveToFile (const std::string &file) const override |
| This method allows to save the graph to the external file. More...
|
|
FrameworkReturnCode | loadFromFile (const std::string &file) override |
| This method allows to load the graph from the external file. More...
|
|
const SRef< datastructure::CovisibilityGraph > & | getConstCovisibilityGraph () const override |
| This method returns the covisibility graph. More...
|
|
std::unique_lock< std::mutex > | getCovisibilityGraph (SRef< datastructure::CovisibilityGraph > &covisibilityGraph) override |
| This method returns the covisibility graph. More...
|
|
void | setCovisibilityGraph (const SRef< datastructure::CovisibilityGraph > covisibilityGraph) override |
| This method is to set the covisibility graph. More...
|
|
FrameworkReturnCode | clear () |
| This method clears the covisibility graph (deletes all nodes and edges).
|
|
bool | isNode (const uint32_t node_id) const |
| This method tests if node_id exists in the covisibility graph. More...
|
|
FrameworkReturnCode | addNode (const uint32_t node_id) |
| This method allows to suppress a node of the graph. More...
|
|
FrameworkReturnCode | addEdge (const uint32_t node_id_1, const uint32_t node_id_2, const float weight) |
| This method adds an edge to the covisibility graph. More...
|
|
void | unloadComponent () override final |
|
A storage component to store with persistence the visibility between keypoints and 3D points, and respectively, based on a bimap from boost.