| 123 | } |
| 124 | |
| 125 | VocabTreePairingOptions SequentialPairingOptions::VocabTreeOptions() const { |
| 126 | VocabTreePairingOptions options; |
| 127 | options.num_images = loop_detection_num_images; |
| 128 | options.num_nearest_neighbors = loop_detection_num_nearest_neighbors; |
| 129 | options.num_checks = loop_detection_num_checks; |
| 130 | options.num_images_after_verification = |
| 131 | loop_detection_num_images_after_verification; |
| 132 | options.max_num_features = loop_detection_max_num_features; |
| 133 | options.vocab_tree_path = vocab_tree_path; |
| 134 | options.num_threads = num_threads; |
| 135 | return options; |
| 136 | } |
| 137 | |
| 138 | bool SpatialPairingOptions::Check() const { |
| 139 | CHECK_OPTION_GE(max_distance, 0.0); |
no outgoing calls
no test coverage detected