mirror of
https://github.com/opencv/opencv.git
synced 2026-07-29 15:23:05 +04:00
gapi: Full calcOpticalFlowPyrLK implementation (2 overloads) and tests
- opencv_gapi module is linked with opencv_video module (optional dependency)
- kernels added to a new cv::gapi::video namespace and a brand new files created to provide gapi_video environment
- there are 2 different kernels as G-API should provide GMat AND GArray<GMat> implementation: cv::calcOptFlowPyrLK doesn't calculate pyramids if vector<Mat> is given so just the cast GMat -> GArray<GMat> wouldn't represent all the cv:: functionality
- tests to check both kernels (based on cv::video tests for cv::calcOpticalFlowPyrLK())
- tests for internal purposes added
- vectors<T> comparison in tests implemented
- new (and old too) common test structures refactored to avoid code copypasting
- "modules/gapi/test/common/gapi_video_tests_common.hpp" created to share some code snippets between perf and acc tests and avoid code copypasting
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
// It is subject to the license terms in the LICENSE file found in the top-level directory
|
||||
// of this distribution and at http://opencv.org/license.html.
|
||||
//
|
||||
// Copyright (C) 2018 Intel Corporation
|
||||
// Copyright (C) 2018-2020 Intel Corporation
|
||||
|
||||
|
||||
#include "precomp.hpp"
|
||||
@@ -38,8 +38,9 @@
|
||||
|
||||
// <FIXME:>
|
||||
#if !defined(GAPI_STANDALONE)
|
||||
#include <opencv2/gapi/cpu/core.hpp> // Also directly refer to Core
|
||||
#include <opencv2/gapi/cpu/imgproc.hpp> // ...and Imgproc kernel implementations
|
||||
#include <opencv2/gapi/cpu/core.hpp> // Also directly refer to Core,
|
||||
#include <opencv2/gapi/cpu/imgproc.hpp> // ...Imgproc
|
||||
#include <opencv2/gapi/cpu/video.hpp> // ...and Video kernel implementations
|
||||
#include <opencv2/gapi/render/render.hpp> // render::ocv::backend()
|
||||
#endif // !defined(GAPI_STANDALONE)
|
||||
// </FIXME:>
|
||||
@@ -66,9 +67,9 @@ namespace
|
||||
|
||||
static auto ocv_pkg =
|
||||
#if !defined(GAPI_STANDALONE)
|
||||
// FIXME add N-arg version combine
|
||||
combine(combine(cv::gapi::core::cpu::kernels(),
|
||||
cv::gapi::imgproc::cpu::kernels()),
|
||||
combine(cv::gapi::core::cpu::kernels(),
|
||||
cv::gapi::imgproc::cpu::kernels(),
|
||||
cv::gapi::video::cpu::kernels(),
|
||||
cv::gapi::render::ocv::kernels());
|
||||
#else
|
||||
cv::gapi::GKernelPackage();
|
||||
|
||||
Reference in New Issue
Block a user