OpenCV 5.0.0-pre
Open Source Computer Vision
Loading...
Searching...
No Matches
mst.hpp File Reference
#include <vector>
Include dependency graph for mst.hpp:

Classes

struct  cv::MSTEdge
 Represents an edge in a graph for Minimum Spanning Tree (MST) computation. More...
 

Namespaces

namespace  cv
 

Enumerations

enum  cv::MSTAlgorithm {
  cv::MST_PRIM = 0 ,
  cv::MST_KRUSKAL = 1
}
 Represents the algorithms available for building a Minimum Spanning Tree (MST). More...
 

Functions

bool cv::buildMST (int numNodes, const std::vector< MSTEdge > &inputEdges, std::vector< MSTEdge > &resultingEdges, MSTAlgorithm algorithm, int root=0)
 Builds a Minimum Spanning Tree (MST) using the specified algorithm (see MSTAlgorithm).