Skip to content

Commit d6cb5c6

Browse files
authored
add a gp_ransac_strategy method for specialized is_valid_candidate (#180)
1 parent 7205b37 commit d6cb5c6

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

include/albatross/src/models/ransac_gp.hpp

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,17 @@ auto gp_ransac_strategy(const InlierMetric &inlier_metric,
247247
inlier_metric, consensus_metric, indexing_function);
248248
}
249249

250+
template <typename InlierMetric, typename ConsensusMetric,
251+
typename IndexingFunction, typename IsValidCandidateMetric>
252+
auto gp_ransac_strategy(const InlierMetric &inlier_metric,
253+
const IndexingFunction &indexing_function,
254+
const ConsensusMetric &consensus_metric,
255+
const IsValidCandidateMetric &is_valid_candidate) {
256+
return GaussianProcessRansacStrategy<
257+
InlierMetric, ConsensusMetric, IndexingFunction, IsValidCandidateMetric>(
258+
inlier_metric, consensus_metric, indexing_function);
259+
}
260+
250261
} // namespace albatross
251262

252263
#endif /* INCLUDE_ALBATROSS_MODELS_RANSAC_GP_H_ */

0 commit comments

Comments
 (0)