Ask Your Question
0

How do we find which function belongs to which opencv library?

asked 2016-04-01 05:48:29 -0600

Prakhar Mohan gravatar image

i actually want to find the library that must be added to the linker which has the function calcOpticalFlowFarneback(......).

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2016-04-01 06:56:43 -0600

updated 2016-04-01 06:58:48 -0600

Okay steps are simple

  • Go to http://docs.opencv.org/
  • Hit the OpenCV version you use, but the top one should be your choice by default
  • Add calcOpticalFlowFarneback inside the search box at the top right of the page
  • Hit enter and click on one of the search results
  • Scroll to the top of the page, which states which module should contain this
  • Now go to the corresponding module, in this case, it is the Object Tracking part of the video analysis module which can be found here.
  • So include should be #include "opencv2/video.hpp"

Or if you really only want the tracking part, you can go for #include "opencv2/video/tracking.hpp" which will allow you to use those functions but not the background foreground segmentation functionality.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2016-04-01 05:48:29 -0600

Seen: 466 times

Last updated: Apr 01 '16