danini / graph-cut-ransac

The Graph-Cut RANSAC algorithm proposed in paper: Daniel Barath and Jiri Matas; Graph-Cut RANSAC, Conference on Computer Vision and Pattern Recognition, 2018. It is available at http://openaccess.thecvf.com/content_cvpr_2018/papers/Barath_Graph-Cut_RANSAC_CVPR_2018_paper.pdf
Other
431 stars 93 forks source link

compile error #48

Open cqray1990 opened 2 months ago

cqray1990 commented 2 months ago

graph-cut-ransac/src/pygcransac/include/estimators/fundamental_estimator.h:100:49: error: ‘clamp’ is not a member of ‘std’ 100 | minimum_inlier_ratio_in_validity_check(std::clamp(minimum_inlier_ratio_in_validitycheck, 0.0, 1.0)), | ^~~~~

set(CMAKE_CXX_STANDARD 17) set(CMAKE_CXX_STANDARD_REQUIRED ON) set(CMAKE_CXX_EXTENSIONS OFF)

gcc version 9.4 c++17