Ask Your Question
0

include file for updateMotionHistory opencv-3.0-dev

asked 2015-04-07 07:02:13 -0600

LBerger gravatar image

Hi,

I want to use updateMotionHistory function. I can find doc or for opencv-3.0 . I have just download opencv and compile with success (General configuration for OpenCV 3.0.0-dev) and I cannot find include file for function definition. Where is include file for this function? Thanks for your help.

edit retag flag offensive close merge delete

Comments

2

what about #include <opencv2/optflow/motempl.hpp> ? and then I guess you can call the function as cv::motempl::updateMotionHistory()

theodore gravatar imagetheodore ( 2015-04-07 07:04:52 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
2

answered 2015-04-07 07:10:01 -0600

berak gravatar image

it is here , so you will need to add the opencv_contrib repo

edit flag offensive delete link more

Comments

1

Thanks I can insert updateMotionHistory now. I use msvc 2012 so I have added in modules\line_descriptor\src\binary_descriptor.cpp:

int round(double d)
{
    return static_cast<int>(d + 0.5);
}

and in file modules\saliency\src\motionSaliencyBinWangApr2014.cpp and modules\optflow\samples\optical_flow_evaluation.cpp

#ifdef WIN32
    #ifndef NAN
        static const unsigned long __nan[2] = {0xffffffff, 0x7fffffff};
        #define NAN (*(const float *) __nan)
    #endif
#endif

and in file modules\line_descriptor\src\bitops.hpp change 0xFFFFFFFFFFFFFFFFLLU in 0xFFFFFFFFFFFFFFFFULL

LBerger gravatar imageLBerger ( 2015-04-07 08:33:22 -0600 )edit

^^ yea, known troubles with those ;)

there's a cvRound() function for the 1st problem.

berak gravatar imageberak ( 2015-04-07 08:36:33 -0600 )edit

It seems that opencv_adas project is an empty project

LBerger gravatar imageLBerger ( 2015-04-07 08:47:31 -0600 )edit

^^ yes. and some ms compilers fail to build, because there's nothing to export

cmake -DBUILD_opencv_adas=OFF

berak gravatar imageberak ( 2015-04-07 08:56:02 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2015-04-07 07:02:13 -0600

Seen: 1,483 times

Last updated: Apr 07 '15