ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

add external opencv libraries to ros package

asked 2013-02-02 00:05:07 -0600

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

Hi all i use opencv libraries in ros qt package . i need to use surf feature detector in my work but libraries of this function not exist in ros_opencv . i want to add external opencv libraries to package but i can't this . can anybody help me ?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2013-02-02 02:08:05 -0600

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

You don't need external libraries for SIFT and SURF. Just add #include <opencv2/nonfree/features2d.hpp> and it will work. You initialize your fdeature detector and descriptor using : cv::Ptr<cv::FeatureDetector> detect = new cv::SurfFeatureDetector; and descriptor : cv::Ptr<cv::DescriptorExtractor> detect = new cv::SurfDescriptorExtractor; You could replace the word Surf with Sift or Orb for the feature detector. And you could also replace the descriptor with Sift or Brief.

edit flag offensive delete link more

Comments

where do i add the red code lines on?

Akali gravatar image Akali  ( 2015-01-15 19:20:38 -0600 )edit

Question Tools

Stats

Asked: 2013-02-02 00:05:07 -0600

Seen: 2,357 times

Last updated: Feb 02 '13