Ask Your Question

include file for updateMotionHistory opencv-3.0-dev

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

LBerger gravatar image


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



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 -0500 )edit

1 answer

Sort by ยป oldest newest most voted

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

berak gravatar image

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

edit flag offensive delete link more



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)

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

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

^^ yea, known troubles with those ;)

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

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

It seems that opencv_adas project is an empty project

LBerger gravatar imageLBerger ( 2015-04-07 08:47:31 -0500 )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 -0500 )edit
Login/Signup to Answer

Question Tools

1 follower


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

Seen: 993 times

Last updated: Apr 07 '15