#include <PixelMap.hpp>
Fonctions membres publiques | |
PixelMap (int, int) | |
Constructeur à partir des dimensions. | |
string | toString () |
Retourne une chaîne de caractères détaillée. | |
void | addPixel (Pixel) |
Ajoute un pixel. | |
void | addPixel (Pixel, int) |
Ajoute un pixel avec son label. | |
Node | makeComponent () |
Produit un graphe à partir du tableau. | |
void | drawBorderPNG (string) |
Produit un fichier PNG des bords des composant. | |
void | parentToFile (string) const |
Fonctions membres protégées | |
void | findBorder () |
Attributs privés | |
vector< Pixel > | data |
Les pixels. | |
vector< int > | parent |
Les labels. | |
vector< bool > | border |
Les bords. | |
int | width |
Largeur. | |
int | height |
Hauteur. |
Définition à la ligne 17 du fichier PixelMap.hpp.
|
Constructeur à partir des dimensions.
Définition à la ligne 7 du fichier PixelMap.cpp. Références border, data, height, parent, PixelMap(), et width. Référencé par PixelMap(). |
|
Produit un graphe à partir du tableau. Produit un graphe à partir d'un tableau de pixel On crée le graphe en effectuant une recherche en largeur Définition à la ligne 31 du fichier PixelMap.cpp. Références Node::addEdge(), Node::addNode(), data, Color::distance(), Pixel::getColor(), Node::getEdgeSize(), Node::getNodeSize(), Pixel::getX(), Pixel::getY(), height, parent, Trace::print(), Edge::setCoord(), Node::setPixel(), et width. Référencé par MeanShift::makeNode(), et KMean::makeNode(). |