Debian Codegraph @

cvd/connected_components.h

raw symbols SCIP
1 //-*- c++ -*-
2 #ifndef CVD_INC_CONNECTED_COMPONENTS_H
3 #define CVD_INC_CONNECTED_COMPONENTS_H
4
5 #include <cvd/image_ref.h>
6 #include <vector>
7
8 namespace CVD
9 {
10
11 ///Find the connected components of the input, using 4-way floodfill.
12 ///This is implemented as the graph based algorithm. There is no restriction
13 ///on the input except that positions can not be INT_MIN or INT_MAX.
14 ///
15 ///The pixels in the resulting segments are not sorted.
16 ///@param v List of pixel positions
17 ///@param r List of segments.
18 ///@ingroup gVision
19 void connected_components(const std::vector<ImageRef>& v, std::vector<std::vector<ImageRef>>& r);
20 }
21
22 #endif