mirror of
https://github.com/opencv/opencv.git
synced 2026-07-29 15:23:05 +04:00
gapi: buildOpticalFlowPyramid() interface, CPUkernel and CPUtests implementation
- kernel added to a cv::gapi::video namespace
- tests to check a kernels (based on cv::video tests for cv::buildOpticalFlowPyramid())
- tests for a combined G-API-pipeline (buildOpticalFlowPyramid() -> calcOpticalFlowPyrLK())
- tests for internal purposes added
- custom function for comparison in tests implemented
This commit is contained in:
@@ -12,13 +12,24 @@
|
||||
namespace cv { namespace gapi {
|
||||
using namespace video;
|
||||
|
||||
GBuildPyrOutput buildOpticalFlowPyramid(const GMat &img,
|
||||
const Size &winSize,
|
||||
const GScalar &maxLevel,
|
||||
bool withDerivatives,
|
||||
int pyrBorder,
|
||||
int derivBorder,
|
||||
bool tryReuseInputImage)
|
||||
{
|
||||
return GBuildOptFlowPyramid::on(img, winSize, maxLevel, withDerivatives, pyrBorder,
|
||||
derivBorder, tryReuseInputImage);
|
||||
}
|
||||
|
||||
GOptFlowLKOutput calcOpticalFlowPyrLK(const GMat &prevImg,
|
||||
const GMat &nextImg,
|
||||
const cv::GArray<cv::Point2f> &prevPts,
|
||||
const cv::GArray<cv::Point2f> &predPts,
|
||||
const Size &winSize,
|
||||
int maxLevel,
|
||||
const GScalar &maxLevel,
|
||||
const TermCriteria &criteria,
|
||||
int flags,
|
||||
double minEigThresh)
|
||||
@@ -32,7 +43,7 @@ GOptFlowLKOutput calcOpticalFlowPyrLK(const cv::GArray<cv::GMat> &prevPyr,
|
||||
const cv::GArray<cv::Point2f> &prevPts,
|
||||
const cv::GArray<cv::Point2f> &predPts,
|
||||
const Size &winSize,
|
||||
int maxLevel,
|
||||
const GScalar &maxLevel,
|
||||
const TermCriteria &criteria,
|
||||
int flags,
|
||||
double minEigThresh)
|
||||
|
||||
Reference in New Issue
Block a user