6 #include "../lib/args.h" 7 #include "../lib/json.h" 8 #include "../lib/opencv.h" 14 int main(
int argc,
const char* argv[]) {
15 get_args(argc, argv,
"in_cors1.json in_cors2.json out_cors.json");
21 throw std::runtime_error(
"input cors must have same dataset group");
24 for(
const auto& kv : in_cors2.
features) {
25 const std::string& feature_name = kv.first;
28 auto existing_it = out_cors.
features.find(feature_name);
29 if(existing_it == out_cors.
features.end()) {
30 out_cors.
features[feature_name] = feature;
34 throw std::runtime_error(
"same name features with different reference views");
Set of features, each on set of views.
std::map< std::string, image_correspondence_feature > features
std::string dataset_group
int main(int argc, const char *argv[])
view_index reference_view
image_correspondences image_correspondences_arg()
std::string out_filename_arg()
Feature on set of views. Optionally one view is "reference".
void export_image_corresponcences(const image_correspondences &cors, const std::string &filename)
std::map< view_index, feature_point > points
void get_args(int argc, const char *argv[], const std::string &usage)