implemented OpenCL version of cv::updateMotionHistory