kornerc / brisk Goto Github PK
View Code? Open in Web Editor NEWBinary Robust Invariant Scalable Keypoints
License: Other
Binary Robust Invariant Scalable Keypoints
License: Other
main-10-230-159-44:build aaron$ make
Scanning dependencies of target conversion
[ 5%] Building CXX object thirdparty/opencv-ndarray-conversion/CMakeFiles/conversion.dir/conversion.cpp.o
In file included from /Users/aaron/git/brisk/brisk/thirdparty/opencv-ndarray-conversion/conversion.cpp:1:
In file included from /Users/aaron/git/brisk/brisk/thirdparty/opencv-ndarray-conversion/conversion.h:5:
In file included from /usr/local/include/opencv4/opencv2/imgproc/imgproc.hpp:48:
In file included from /usr/local/include/opencv4/opencv2/imgproc.hpp:46:
In file included from /usr/local/include/opencv4/opencv2/core.hpp:52:
/usr/local/include/opencv4/opencv2/core/cvdef.h:656:4: error: "OpenCV 4.x+ requires enabled C++11 support"
^
In file included from /Users/aaron/git/brisk/brisk/thirdparty/opencv-ndarray-conversion/conversion.cpp:1:
In file included from /Users/aaron/git/brisk/brisk/thirdparty/opencv-ndarray-conversion/conversion.h:5:
In file included from /usr/local/include/opencv4/opencv2/imgproc/imgproc.hpp:48:
In file included from /usr/local/include/opencv4/opencv2/imgproc.hpp:46:
In file included from /usr/local/include/opencv4/opencv2/core.hpp:57:
/usr/local/include/opencv4/opencv2/core/matx.hpp:143:15: error: no template named 'initializer_list' in namespace 'std'
Matx(std::initializer_list<_Tp>); //!< initialize from an initializer list
~~~~~^
/usr/local/include/opencv4/opencv2/core/matx.hpp:361:14: error: no template named 'initializer_list' in namespace 'std'
Vec(std::initializer_list<_Tp>);
~~~~~^
/usr/local/include/opencv4/opencv2/core/matx.hpp:664:28: error: no template named 'initializer_list' in namespace 'std'
Matx<_Tp, m, n>::Matx(std::initializer_list<_Tp> list)
~~~~~^
/usr/local/include/opencv4/opencv2/core/matx.hpp:1016:24: error: no template named 'initializer_list' in namespace 'std'
Vec<_Tp, cn>::Vec(std::initializer_list<_Tp> list)
~~~~~^
Here's the error (ignore the NumPy 1.7 deprecated warning before it):
[ 92%] Building CXX object thirdparty/opencv-ndarray-conversion/CMakeFiles/conversion.dir/conversion.cpp.o
In file included from /usr/include/numpy/ndarraytypes.h:1761:0,
from /usr/include/numpy/ndarrayobject.h:17,
from /home/sysadmin/Downloads/brisk/thirdparty/opencv-ndarray-conversion/conversion.h:8,
from /home/sysadmin/Downloads/brisk/thirdparty/opencv-ndarray-conversion/conversion.cpp:1:
/usr/include/numpy/npy_1_7_deprecated_api.h:15:2: warning: #warning "Using deprecated NumPy API, disable it by " "#defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp]
#warning "Using deprecated NumPy API, disable it by " \
^
In file included from /usr/include/sched.h:28:0,
from /usr/include/pthread.h:23,
from /usr/include/x86_64-linux-gnu/c++/4.9/bits/gthr-default.h:35,
from /usr/include/x86_64-linux-gnu/c++/4.9/bits/gthr.h:148,
from /usr/include/c++/4.9/ext/atomicity.h:35,
from /usr/include/c++/4.9/bits/ios_base.h:39,
from /usr/include/c++/4.9/ios:42,
from /usr/include/c++/4.9/istream:38,
from /usr/include/c++/4.9/sstream:38,
from /usr/include/c++/4.9/complex:45,
from /usr/local/include/opencv2/core/core.hpp:56,
from /usr/local/include/opencv2/imgproc/imgproc.hpp:46,
from /home/sysadmin/Downloads/brisk/thirdparty/opencv-ndarray-conversion/conversion.h:5,
from /home/sysadmin/Downloads/brisk/thirdparty/opencv-ndarray-conversion/conversion.cpp:1:
/home/sysadmin/Downloads/brisk/thirdparty/opencv-ndarray-conversion/conversion.cpp: In function ‘void init()’:
/home/sysadmin/Downloads/brisk/thirdparty/opencv-ndarray-conversion/conversion.cpp:9:5: error: return-statement with a value, in function returning 'void' [-fpermissive]
import_array();
^
/home/sysadmin/Downloads/brisk/thirdparty/opencv-ndarray-conversion/conversion.cpp: In member function ‘void NDArrayConverter::init()’:
/home/sysadmin/Downloads/brisk/thirdparty/opencv-ndarray-conversion/conversion.cpp:125:5: error: return-statement with a value, in function returning 'void' [-fpermissive]
import_array();
^
thirdparty/opencv-ndarray-conversion/CMakeFiles/conversion.dir/build.make:54: recipe for target 'thirdparty/opencv-ndarray-conversion/CMakeFiles/conversion.dir/conversion.cpp.o' failed
make[2]: *** [thirdparty/opencv-ndarray-conversion/CMakeFiles/conversion.dir/conversion.cpp.o] Error 1
CMakeFiles/Makefile2:233: recipe for target 'thirdparty/opencv-ndarray-conversion/CMakeFiles/conversion.dir/all' failed
make[1]: *** [thirdparty/opencv-ndarray-conversion/CMakeFiles/conversion.dir/all] Error 2
Makefile:76: recipe for target 'all' failed
make: *** [all] Error 2
I am running Debian 8.5 with OpenCV 3.1.0 (built from GitHub) AND OpenCV 2.4.13 (also built from GitHub) on the same system, with python-numpy 1.8.2-2 (from Debian jessie APT repo). The NumPy warning probably could be handled by downgrading to NumPy 1.7, but I don't have any idea what is causing the error in conversion.cpp.
I'm trying to build this on Ubuntu LTS 14.04, and I get the following error when trying to run make
:
[ 71%] Built target agast_static
[ 78%] Building CXX object CMakeFiles/brisk.dir/src/brisk.cpp.o
/home/diego/git/brisk/src/brisk.cpp: In member function ‘virtual void brisk::BriskFeatureDetector::detectImpl(const cv::Mat&, std::vector<cv::KeyPoint>&, const cv::Mat&) const’:
/home/diego/git/brisk/src/brisk.cpp:659:37: error: ‘removeInvalidPoints’ was not declared in this scope removeInvalidPoints(mask, keypoints);
make[2]: *** [CMakeFiles/brisk.dir/src/brisk.cpp.o] Error 1
make[1]: *** [CMakeFiles/brisk.dir/all] Error 2
make: *** [all] Error 2
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.