Brisk: brisk-feature-detector.cc:61:8: error: ‘function’ is not a member of ‘std’

Share:
cover Problem: ```sh [ 53%] Building CXX object CMakeFiles/brisk.dir/src/brisk-layer.cc.o /home/ubuntu/brisk/src/brisk-feature-detector.cc: In function ‘void {anonymous}::RemoveInvalidKeyPoints(const cv::Mat&, std::vector*)’: /home/ubuntu/brisk/src/brisk-feature-detector.cc:61:8: error: ‘function’ is not a member of ‘std’ std::function masking = ^~~~~~~~ /home/ubuntu/brisk/src/brisk-feature-detector.cc:61:8: note: suggested alternative: ‘is_function’ std::function masking = ^~~~~~~~ is_function /home/ubuntu/brisk/src/brisk-feature-detector.cc:61:17: error: expected primary-expression before ‘bool’ std::function masking = ^~~~ /home/ubuntu/brisk/src/brisk-feature-detector.cc:71:22: error: ‘masking’ was not declared in this scope masking), keypoints->end()); ^~~~~~~ /home/ubuntu/brisk/src/brisk-feature-detector.cc:71:22: note: suggested alternative: ‘mask’ masking), keypoints->end()); ^~~~~~~ mask CMakeFiles/brisk.dir/build.make:94: recipe for target 'CMakeFiles/brisk.dir/src/brisk-feature-detector.cc.o' failed make[2]: *** [CMakeFiles/brisk.dir/src/brisk-feature-detector.cc.o] Error 1 make[2]: *** Waiting for unfinished jobs.... CMakeFiles/Makefile2:144: recipe for target 'CMakeFiles/brisk.dir/all' failed make[1]: *** [CMakeFiles/brisk.dir/all] Error 2 Makefile:148: recipe for target 'all' failed make: *** [all] Error 2 ``` Solution: ```sh 在brisk-feature-detector.cc文件中添加#include 就可以了 ```

No comments