Version: 1.0
Classes | Functions
connectivity_graph.h File Reference
#include <map>
#include <string>
#include <vector>
#include "pixel_set.h"
#include "rule_set.h"

Go to the source code of this file.

Classes

struct  graph
 

Functions

graph MakeAdjacencies (const pixel_set &ps)
 
graph MakeConnectivities (const graph &ag)
 
graph MakeConnectivitiesSpecial (const graph &ag, const std::vector< std::string > &pixel_list)
 
std::ostream & operator<< (std::ostream &os, const graph &g)
 
std::vector< std::string > GenerateAllPossibleLabelingActions (const graph &ag)
 
std::vector< std::string > GenerateAllPossibleLabelingActionsGivenTheSetOfPixelToBeLabeled (const graph &ag, const std::vector< std::string > &to_be_labeled_pixels, rule_set &rs)
 VERSION WITH MANY MORE ACTIONS THAN NECESSARY / This function generates all possible actions, avoiding useless ones such as merges between adjacent pixels and considering multiple pixels inside the mask. More...
 
std::vector< std::string > GenerateAllPossibleLabelingActions (const graph &ag, const std::string &ref_pixel_name)
 

Function Documentation

◆ GenerateAllPossibleLabelingActions() [1/2]

std::vector<std::string> GenerateAllPossibleLabelingActions ( const graph ag)

Definition at line 110 of file connectivity_graph.cpp.

◆ GenerateAllPossibleLabelingActions() [2/2]

std::vector<std::string> GenerateAllPossibleLabelingActions ( const graph ag,
const std::string &  ref_pixel_name 
)

Definition at line 161 of file connectivity_graph.cpp.

◆ GenerateAllPossibleLabelingActionsGivenTheSetOfPixelToBeLabeled()

std::vector<std::string> GenerateAllPossibleLabelingActionsGivenTheSetOfPixelToBeLabeled ( const graph ag,
const std::vector< std::string > &  to_be_labeled_pixels,
rule_set rs 
)

VERSION WITH MANY MORE ACTIONS THAN NECESSARY / This function generates all possible actions, avoiding useless ones such as merges between adjacent pixels and considering multiple pixels inside the mask.

VERSIONE CON MOLTE PIU' AZIONI DEL NECESSARIO

Definition at line 339 of file connectivity_graph.cpp.

◆ MakeAdjacencies()

graph MakeAdjacencies ( const pixel_set ps)

Definition at line 9 of file connectivity_graph.cpp.

◆ MakeConnectivities()

graph MakeConnectivities ( const graph ag)

Definition at line 34 of file connectivity_graph.cpp.

◆ MakeConnectivitiesSpecial()

graph MakeConnectivitiesSpecial ( const graph ag,
const std::vector< std::string > &  pixel_list 
)

Definition at line 59 of file connectivity_graph.cpp.

◆ operator<<()

std::ostream& operator<< ( std::ostream &  os,
const graph g 
)

Definition at line 74 of file connectivity_graph.cpp.