Class representing png image.
More...
#include <image.h>
|
| Image (std::string filename, int n) |
|
Graph | graph () |
| Creates a Boost graph consisting of the generated superpixels The number of adjacent pixels between superpixels is stored as edge weight.
|
|
void | writeSegments (std::vector< Graph::vertex_descriptor > master_nodes, std::vector< std::vector< Graph::vertex_descriptor >> segments, Graph &g) |
|
uint32_t | pixelToSuperpixel (uint32_t x, uint32_t y) |
|
|
unsigned int | width |
|
unsigned int | height |
|
unsigned int | superpixelcount |
|
uint32_t * | segmentation |
|
std::vector< double > | avgcolor |
|
std::string | filename |
|
Class representing png image.
Image::Image |
( |
std::string |
filename, |
|
|
int |
n |
|
) |
| |
- Parameters
-
filename | PNG image to read |
n | desired number of superpixels |
void Image::writeSegments |
( |
std::vector< Graph::vertex_descriptor > |
master_nodes, |
|
|
std::vector< std::vector< Graph::vertex_descriptor >> |
segments, |
|
|
Graph & |
g |
|
) |
| |
- Parameters
-
master_nodes | master nodes of all segments |
segments | optimal segmentation, where each segment is a vector consisting of the superpixels contained in it |
g | the graph of superpixels |
The documentation for this class was generated from the following files:
- /home/rschuetz/uni/2017-SS/Fortgeschrittenenpraktikum_Optimierung/src/image.h
- /home/rschuetz/uni/2017-SS/Fortgeschrittenenpraktikum_Optimierung/src/image.cpp