Closed GoogleCodeExporter closed 9 years ago
On Ubuntu 10.10 amd64, with opencv svn revision 4061, boost 1.43.0, libgflags 1.4-2, and gtest 1.5.0, I am getting the following compilation errors: [ 12%] Building CXX object CMakeFiles/BlobTrackPedestrian.dir/src/bhattacharyya_distance.cpp.o In file included from /media/Data/Data/opencv-feature-tracker/src/bhattacharyya_distance.cpp:51: /media/Data/Data/opencv-feature-tracker/include/distance.h:88: error: ‘virtual float Distance::operator()(const cv::MatND&, const cv::MatND&)’ cannot be overloaded /media/Data/Data/opencv-feature-tracker/include/distance.h:82: error: with ‘virtual float Distance::operator()(const cv::Mat&, const cv::Mat&)’ /media/Data/Data/opencv-feature-tracker/include/distance.h:100: error: ‘float L1Distance::operator()(const cv::MatND&, const cv::MatND&)’ cannot be overloaded /media/Data/Data/opencv-feature-tracker/include/distance.h:96: error: with ‘float L1Distance::operator()(const cv::Mat&, const cv::Mat&)’ /media/Data/Data/opencv-feature-tracker/include/distance.h:112: error: ‘float L2Distance::operator()(const cv::MatND&, const cv::MatND&)’ cannot be overloaded /media/Data/Data/opencv-feature-tracker/include/distance.h:108: error: with ‘float L2Distance::operator()(const cv::Mat&, const cv::Mat&)’ /media/Data/Data/opencv-feature-tracker/include/distance.h:121: error: ‘float BhattacharyyaDistance::operator()(const cv::MatND&, const cv::MatND&)’ cannot be overloaded /media/Data/Data/opencv-feature-tracker/include/distance.h:120: error: with ‘float BhattacharyyaDistance::operator()(const cv::Mat&, const cv::Mat&)’ /media/Data/Data/opencv-feature-tracker/include/distance.h:128: error: ‘float PearsonCoefficientDistance::operator()(const cv::MatND&, const cv::MatND&)’ cannot be overloaded /media/Data/Data/opencv-feature-tracker/include/distance.h:127: error: with ‘float PearsonCoefficientDistance::operator()(const cv::Mat&, const cv::Mat&)’ /media/Data/Data/opencv-feature-tracker/src/bhattacharyya_distance.cpp:80: error: redefinition of ‘float BhattacharyyaDistance::operator()(const cv::MatND&, const cv::MatND&)’ /media/Data/Data/opencv-feature-tracker/src/bhattacharyya_distance.cpp:54: error: ‘virtual float BhattacharyyaDistance::operator()(const cv::Mat&, const cv::Mat&)’ previously defined here make[2]: *** [CMakeFiles/BlobTrackPedestrian.dir/src/bhattacharyya_distance.cpp.o] Error 1 make[1]: *** [CMakeFiles/BlobTrackPedestrian.dir/all] Error 2 make: *** [all] Error 2 I'm not too sure what's causing the "cannot be overloaded" error. Thanks for looking into it.
Original issue reported on code.google.com by first.en...@gmail.com on 26 Nov 2010 at 7:21
first.en...@gmail.com
In the new OpenCV, cv::MatND is now a typedef of cv::Mat. Fixed in the latest revision.
Original comment by dattan...@gmail.com on 24 Dec 2010 at 5:35
dattan...@gmail.com
Original issue reported on code.google.com by
first.en...@gmail.com
on 26 Nov 2010 at 7:21