Zodiac
Zodiac

Reputation: 13

What to include for cv::meanShift function?

I've included the following and it doesn't work :

#include <opencv2/core/core.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <opencv2/imgproc/imgproc.hpp>

What to include for cv::meanShift function ?

Upvotes: 0

Views: 385

Answers (2)

Zodiac
Zodiac

Reputation: 13

2 hours later I found the answer :)

For some reason #include can't be included directly so the following code will include the video module indirectly.

#include "opencv2/video/tracking.hpp"
#include "opencv2/video/background_segm.hpp"

Answer here : http://fossies.org/dox/opencv-2.4.9/video_8hpp.html

Upvotes: 0

berak
berak

Reputation: 39796

it's in the video module, so:

#include <opencv2/video/video.hpp>

Upvotes: 1

Related Questions