45int main(
int argc,
char** argv )
49 "Select ForegroundAdjacency for object topology:\n"
55 cout << error_message << std::endl;
58 std::string input_str = std::string(argv[1]);
62 unique_ptr<ConfigMap> table(
new ConfigMap);
63 trace.
beginBlock (
"Generate 3d table for " + input_str +
" topology" );
65 if (input_str ==
"26_6")
67 else if (input_str ==
"18_6")
69 else if (input_str ==
"6_18")
71 else if (input_str ==
"6_26")
74 cout << error_message << endl;
84 string filename =
"simplicity_table" + input_str +
".zlib";
85 ofstream file( filename );
86 std::stringstream table_stream;
87 table_stream << *table;
88 namespace io = boost::iostreams;
89 io::filtering_streambuf<io::input> filter;
90 filter.push(io::zlib_compressor());
91 filter.push(table_stream);
92 io::copy(filter,file);