Brisk: error: ‘function’ is not a member of ‘std’

cover Problem: ```sh [ 53%] Building CXX object CMakeFiles/brisk.dir/src/ /home/ubuntu/brisk/src/ In function ‘void {anonymous}::RemoveInvalidKeyPoints(const cv::Mat&, std::vector*)’: /home/ubuntu/brisk/src/ error: ‘function’ is not a member of ‘std’ std::function masking = ^~~~~~~~ /home/ubuntu/brisk/src/ note: suggested alternative: ‘is_function’ std::function masking = ^~~~~~~~ is_function /home/ubuntu/brisk/src/ error: expected primary-expression before ‘bool’ std::function masking = ^~~~ /home/ubuntu/brisk/src/ error: ‘masking’ was not declared in this scope masking), keypoints->end()); ^~~~~~~ /home/ubuntu/brisk/src/ note: suggested alternative: ‘mask’ masking), keypoints->end()); ^~~~~~~ mask CMakeFiles/brisk.dir/build.make:94: recipe for target 'CMakeFiles/brisk.dir/src/' failed make[2]: *** [CMakeFiles/brisk.dir/src/] 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