Program Listing for File dense-mapping-selection.h

Return to documentation for file (console-plugins/dense-mapping-constraints-plugin/include/dense-mapping/dense-mapping-selection.h)

#ifndef DENSE_MAPPING_DENSE_MAPPING_SELECTION_H_
#define DENSE_MAPPING_DENSE_MAPPING_SELECTION_H_

#include <gflags/gflags.h>
#include <glog/logging.h>
#include <vi-map/vi-map.h>

#include "dense-mapping/dense-mapping-common.h"
#include "dense-mapping/dense-mapping-gflags.h"

namespace dense_mapping {

struct SelectionConfig {
  static SelectionConfig fromGflags();

  bool recompute_all_constraints;
  bool recompute_invalid_constraints;

  double constraint_min_switch_variable_value;
};

bool selectAlignmentCandidatePairs(
    const SelectionConfig& config, vi_map::VIMap* map_ptr,
    AlignmentCandidatePairs* candidate_pairs_ptr);

}  // namespace dense_mapping

#endif  // DENSE_MAPPING_DENSE_MAPPING_SELECTION_H_