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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Build issue

ducha-aiki opened this issue · comments

I have got the following error:

/home/old-ufo/dev/graph-cut-ransac/include/progressive_napsac_sampler.h: At global scope:
/home/old-ufo/dev/graph-cut-ransac/include/progressive_napsac_sampler.h:78:19: error: duplicate ‘const’
     const cv::Mat const *container_, // The pointer pointing to the data points
                   ^~~~~
/home/old-ufo/dev/graph-cut-ransac/include/progressive_napsac_sampler.h:110:34: error: duplicate ‘const’
    bool initialize(const cv::Mat const *container_);
                                  ^~~~~
/home/old-ufo/dev/graph-cut-ransac/include/progressive_napsac_sampler.h:121:59: error: duplicate ‘const’
   bool ProgressiveNapsacSampler::initialize(const cv::Mat const *container_)

SO tells me that one can use typedef (good solution) or just remove one const (temp hack). I solved opted for the 2nd so far
https://stackoverflow.com/a/33207786/1983544

Fixed!