25 std::vector<bool> from) {
29 std::vector<std::vector<bool>> neighbours;
30 std::vector<unsigned int> ones;
31 std::vector<unsigned int> zeros;
33 for (
unsigned int i = 0; i < from.size(); ++i)
43 std::vector<bool> neighbour;
47 for (
unsigned int i = 0; i < ones.size(); ++i)
50 neighbour[ones[i]] = 0;
51 neighbours.push_back(neighbour);
55 for (
unsigned int i = 0; i < zeros.size(); ++i)
59 neighbour[zeros[i]] = 1;
60 neighbours.push_back(neighbour);
64 for (
unsigned int j = 0; j < ones.size(); ++j)
67 neighbour[zeros[i]] = 1;
68 neighbour[ones[j]] = 0;
69 neighbours.push_back(neighbour);
80 s <<
"TopologyGenerator is TopologyGeneratorPaper.cpp: " << std::endl
81 <<
"- Generates relation topologies as described in the paper \"Automated Selection of Spatial " 82 <<
"Object Relations for Modeling and Recognizing Indoor Scenes with Hierarchical Implicit Shape Models \"" std::string getDescription()
std::vector< std::vector< bool > > calculateNeighbours(const std::string &pattern, std::vector< bool > from)
this namespace contains all generally usable classes.