Arc* corner detector

19 views
Skip to first unread message

Alessandro Marchei

unread,
Apr 16, 2024, 4:48:39 AMApr 16
to dv-users
Good morning,

I am having issues trying to use the arc* corner detector of the dv-processing library.
If I compile the same code you listed on you dv-processing documentation (under "Arc* feature detector, link : https://dv-processing.inivation.com/rel_1_7/feature_detection.html), I get the following error:

make -j3
Consolidate compiler generated dependencies of target my_executable
[ 50%] Building CXX object CMakeFiles/my_executable.dir/src/main.cpp.o
In file included from /opt/inivation/boost/include/boost/geometry/strategies/geographic/distance.hpp:38,
                 from /opt/inivation/boost/include/boost/geometry/strategies/strategies.hpp:90,
                 from /opt/inivation/boost/include/boost/geometry/geometry.hpp:57,
                 from /usr/include/dv-processing/data/boost_geometry_interop.hpp:10,
                 from /usr/include/dv-processing/features/keypoint_resampler.hpp:4,
                 from /usr/include/dv-processing/features/feature_detector.hpp:9,
                 from /home/alessandro/thesis/Projects/MAIN/src/main.cpp:5:
/opt/inivation/boost/include/boost/geometry/geometries/point_xy.hpp: In member function ‘void boost::geometry::model::d2::point_xy<CoordinateType, CoordinateSystem>::x(const CoordinateType&)’:
/opt/inivation/boost/include/boost/geometry/geometries/point_xy.hpp:69:27: error: type/value mismatch at argument 1 in template parameter list for ‘template<class _Key, class _Compare, class _Alloc> class std::set’
   69 |     { this->template set<0>(v); }
      |                           ^
/opt/inivation/boost/include/boost/geometry/geometries/point_xy.hpp:69:27: note:   expected a type, got ‘0’
/opt/inivation/boost/include/boost/geometry/geometries/point_xy.hpp:69:27: error: template argument 2 is invalid
/opt/inivation/boost/include/boost/geometry/geometries/point_xy.hpp:69:27: error: template argument 3 is invalid
/opt/inivation/boost/include/boost/geometry/geometries/point_xy.hpp: In member function ‘void boost::geometry::model::d2::point_xy<CoordinateType, CoordinateSystem>::y(const CoordinateType&)’:
/opt/inivation/boost/include/boost/geometry/geometries/point_xy.hpp:73:27: error: type/value mismatch at argument 1 in template parameter list for ‘template<class _Key, class _Compare, class _Alloc> class std::set’
   73 |     { this->template set<1>(v); }
      |                           ^
/opt/inivation/boost/include/boost/geometry/geometries/point_xy.hpp:73:27: note:   expected a type, got ‘1’
/opt/inivation/boost/include/boost/geometry/geometries/point_xy.hpp:73:27: error: template argument 2 is invalid
/opt/inivation/boost/include/boost/geometry/geometries/point_xy.hpp:73:27: error: template argument 3 is invalid
In file included from /opt/inivation/boost/include/boost/geometry/geometries/geometries.hpp:29,
                 from /opt/inivation/boost/include/boost/geometry/algorithms/detail/closest_points/linear_or_areal_to_areal.hpp:20,
                 from /opt/inivation/boost/include/boost/geometry/algorithms/detail/closest_points/implementation.hpp:17,
                 from /opt/inivation/boost/include/boost/geometry/algorithms/closest_points.hpp:14,
                 from /opt/inivation/boost/include/boost/geometry/geometry.hpp:66,
                 from /usr/include/dv-processing/data/boost_geometry_interop.hpp:10,
                 from /usr/include/dv-processing/features/keypoint_resampler.hpp:4,
                 from /usr/include/dv-processing/features/feature_detector.hpp:9,
                 from /home/alessandro/thesis/Projects/MAIN/src/main.cpp:5:
/opt/inivation/boost/include/boost/geometry/geometries/point_xyz.hpp: In member function ‘void boost::geometry::model::d3::point_xyz<CoordinateType, CoordinateSystem>::x(const CoordinateType&)’:
/opt/inivation/boost/include/boost/geometry/geometries/point_xyz.hpp:68:27: error: type/value mismatch at argument 1 in template parameter list for ‘template<class _Key, class _Compare, class _Alloc> class std::set’
   68 |     { this->template set<0>(v); }
      |                           ^
/opt/inivation/boost/include/boost/geometry/geometries/point_xyz.hpp:68:27: note:   expected a type, got ‘0’
/opt/inivation/boost/include/boost/geometry/geometries/point_xyz.hpp:68:27: error: template argument 2 is invalid
/opt/inivation/boost/include/boost/geometry/geometries/point_xyz.hpp:68:27: error: template argument 3 is invalid
/opt/inivation/boost/include/boost/geometry/geometries/point_xyz.hpp: In member function ‘void boost::geometry::model::d3::point_xyz<CoordinateType, CoordinateSystem>::y(const CoordinateType&)’:
/opt/inivation/boost/include/boost/geometry/geometries/point_xyz.hpp:72:27: error: type/value mismatch at argument 1 in template parameter list for ‘template<class _Key, class _Compare, class _Alloc> class std::set’
   72 |     { this->template set<1>(v); }
      |                           ^
/opt/inivation/boost/include/boost/geometry/geometries/point_xyz.hpp:72:27: note:   expected a type, got ‘1’
/opt/inivation/boost/include/boost/geometry/geometries/point_xyz.hpp:72:27: error: template argument 2 is invalid
/opt/inivation/boost/include/boost/geometry/geometries/point_xyz.hpp:72:27: error: template argument 3 is invalid
/opt/inivation/boost/include/boost/geometry/geometries/point_xyz.hpp: In member function ‘void boost::geometry::model::d3::point_xyz<CoordinateType, CoordinateSystem>::z(const CoordinateType&)’:
/opt/inivation/boost/include/boost/geometry/geometries/point_xyz.hpp:76:27: error: type/value mismatch at argument 1 in template parameter list for ‘template<class _Key, class _Compare, class _Alloc> class std::set’
   76 |     { this->template set<2>(v); }
      |                           ^
/opt/inivation/boost/include/boost/geometry/geometries/point_xyz.hpp:76:27: note:   expected a type, got ‘2’
/opt/inivation/boost/include/boost/geometry/geometries/point_xyz.hpp:76:27: error: template argument 2 is invalid
/opt/inivation/boost/include/boost/geometry/geometries/point_xyz.hpp:76:27: error: template argument 3 is invalid
make[2]: *** [CMakeFiles/my_executable.dir/build.make:76: CMakeFiles/my_executable.dir/src/main.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:83: CMakeFiles/my_executable.dir/all] Error 2
make: *** [Makefile:91: all] Error 2



I am using ubuntu 22.04 and every code on the documentation works, and every dependency is met. (boost version is 1.74, boost-inivation version is 1.8).


sudo apt-get install git gcc-10 g++-10 cmake boost-inivation libopencv-dev libeigen3-dev libcaer-dev libfmt-dev liblz4-dev libzstd-dev libssl-dev
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
liblz4-dev is already the newest version (1.9.3-2build2).
libzstd-dev is already the newest version (1.4.8+dfsg-3build1).
libeigen3-dev is already the newest version (3.4.0-2ubuntu2).
libopencv-dev is already the newest version (4.5.4+dfsg-9ubuntu4).
cmake is already the newest version (3.22.1-1ubuntu1.22.04.2).
git is already the newest version (1:2.34.1-1ubuntu1.10).
libssl-dev is already the newest version (3.0.2-0ubuntu1.15).
g++-10 is already the newest version (10.5.0-1ubuntu1~22.04).
gcc-10 is already the newest version (10.5.0-1ubuntu1~22.04).
boost-inivation is already the newest version (1.80.0-2~jammy).
libcaer-dev is already the newest version (3.3.15-1~jammy).
libfmt-dev is already the newest version (9.1.0-1~jammy).
0 upgraded, 0 newly installed, 0 to remove and 7 not upgraded.



What could be the problem?
Reply all
Reply to author
Forward
0 new messages