24 std::vector<Graph::vertex_descriptor> master_nodes,
25 std::vector<std::vector<Graph::vertex_descriptor>> segments,
29 uint32_t pixelToSuperpixel(uint32_t x, uint32_t y);
34 unsigned int superpixelcount;
35 uint32_t* segmentation;
36 std::vector<double> avgcolor;
Graph graph()
Creates a Boost graph consisting of the generated superpixels The number of adjacent pixels between s...
Definition: image.cpp:97
void writeSegments(std::vector< Graph::vertex_descriptor > master_nodes, std::vector< std::vector< Graph::vertex_descriptor >> segments, Graph &g)
Definition: image.cpp:144
Image(std::string filename, int n)
Definition: image.cpp:9
Class representing png image.
Definition: image.h:7