Skip to content

Instantly share code, notes, and snippets.

@melvincabatuan
Created October 5, 2014 03:01
Show Gist options
  • Save melvincabatuan/49400dd0ff757ed1eac7 to your computer and use it in GitHub Desktop.
Save melvincabatuan/49400dd0ff757ed1eac7 to your computer and use it in GitHub Desktop.
[SOLVED] Akaze Test Issue in OpenCV 3.0
~/Documents/OpenCV/test_kaze_akaze_opencv/build$ cmake ..
-- The C compiler identification is GNU 4.8.1
-- The CXX compiler identification is GNU 4.8.1
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- OPENCV include: /usr/local/include/opencv/usr/local/include
-- Configuring done
-- Generating done
-- Build files have been written to: /home/cobalt/Documents/OpenCV/test_kaze_akaze_opencv/build
PhD:~/Documents/OpenCV/test_kaze_akaze_opencv/build$ make
Scanning dependencies of target test_akaze
[ 12%] Building CXX object CMakeFiles/test_akaze.dir/test_akaze.o
[ 25%] Building CXX object CMakeFiles/test_akaze.dir/src/utils.o
/home/cobalt/Documents/OpenCV/test_kaze_akaze_opencv/src/utils.cpp: In function ‘void draw_keypoints(cv::Mat&, const std::vector<cv::KeyPoint>&)’:
/home/cobalt/Documents/OpenCV/test_kaze_akaze_opencv/src/utils.cpp:23:63: error: ‘CV_RGB’ was not declared in this scope
cv::circle(img, cv::Point(x,y), 2.5*radius, CV_RGB(0,255,0), 1);
^
/home/cobalt/Documents/OpenCV/test_kaze_akaze_opencv/src/utils.cpp: In function ‘void draw_inliers(const cv::Mat&, const cv::Mat&, cv::Mat&, const std::vector<cv::Point_<float> >&)’:
/home/cobalt/Documents/OpenCV/test_kaze_akaze_opencv/src/utils.cpp:172:73: error: ‘CV_RGB’ was not declared in this scope
cv::line(img_com, cv::Point(x1,y1), cv::Point(xN,yN), CV_RGB(255,0,0), 2);
^
make[2]: *** [CMakeFiles/test_akaze.dir/src/utils.o] Error 1
make[1]: *** [CMakeFiles/test_akaze.dir/all] Error 2
make: *** [all] Error 2
/build$ make
Scanning dependencies of target test_akaze
[ 12%] Building CXX object CMakeFiles/test_akaze.dir/src/utils.o
Linking CXX executable test_akaze
[ 25%] Built target test_akaze
Scanning dependencies of target test_akaze_match
[ 37%] Building CXX object CMakeFiles/test_akaze_match.dir/test_akaze_match.o
[ 50%] Building CXX object CMakeFiles/test_akaze_match.dir/src/utils.o
Linking CXX executable test_akaze_match
[ 50%] Built target test_akaze_match
Scanning dependencies of target test_kaze
[ 62%] Building CXX object CMakeFiles/test_kaze.dir/test_kaze.o
[ 75%] Building CXX object CMakeFiles/test_kaze.dir/src/utils.o
Linking CXX executable test_kaze
[ 75%] Built target test_kaze
Scanning dependencies of target test_kaze_match
[ 87%] Building CXX object CMakeFiles/test_kaze_match.dir/test_kaze_match.o
[100%] Building CXX object CMakeFiles/test_kaze_match.dir/src/utils.o
Linking CXX executable test_kaze_match
[100%] Built target test_kaze_match
/**
REPLACE CV_RGB(.. with cv::Scalar(..
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment