55#ifndef __OPENCV_OPTFLOW_PCAFLOW_HPP__
56#define __OPENCV_OPTFLOW_PCAFLOW_HPP__
58#include "opencv2/core.hpp"
59#include "opencv2/video.hpp"
85 int getPadding()
const {
return L1.size().height; }
87 int getBasisSize()
const {
return L1.size().width; }
89 void fillConstraints(
float *A1,
float *A2,
float *b1,
float *b2 )
const;
99 const float sparseRate;
100 const float retainedCornersFraction;
101 const float occlusionsThreshold;
102 const float dampingFactor;
103 const float claheClip;
117 float _sparseRate = 0.024,
float _retainedCornersFraction = 0.2,
118 float _occlusionsThreshold = 0.0003,
float _dampingFactor = 0.00002,
float _claheClip = 14 );
124 void findSparseFeatures(
UMat &from,
UMat &to, std::vector<
Point2f> &features,
125 std::vector<
Point2f> &predictedFeatures ) const;
127 void removeOcclusions(
UMat &from,
UMat &to, std::vector<
Point2f> &features,
128 std::vector<
Point2f> &predictedFeatures ) const;
131 const std::vector<
Point2f> &predictedFeatures, const
Size size );
134 const std::vector<
Point2f> &features, const std::vector<
Point2f> &predictedFeatures,
This type is very similar to InputArray except that it is used for input/output and output function p...
Definition: mat.hpp:295
Definition: video/tracking.hpp:437
n-dimensional dense array class
Definition: mat.hpp:802
Template class for specifying the size of an image or rectangle.
Definition: core/types.hpp:316
PCAFlow algorithm.
Definition: pcaflow.hpp:95
void collectGarbage() CV_OVERRIDE
Releases all inner buffers.
void calc(InputArray I0, InputArray I1, InputOutputArray flow) CV_OVERRIDE
Calculates an optical flow.
OpticalFlowPCAFlow(Ptr< const PCAPrior > _prior=Ptr< const PCAPrior >(), const Size _basisSize=Size(18, 14), float _sparseRate=0.024, float _retainedCornersFraction=0.2, float _occlusionsThreshold=0.0003, float _dampingFactor=0.00002, float _claheClip=14)
Creates an instance of PCAFlow algorithm.
This class can be used for imposing a learned prior on the resulting optical flow....
Definition: pcaflow.hpp:75
CV_EXPORTS_W Ptr< DenseOpticalFlow > createOptFlow_PCAFlow()
Creates an instance of PCAFlow
"black box" representation of the file storage associated with a file on disk.
Definition: aruco.hpp:75
Definition: features2d.hpp:910
Definition: features2d.hpp:894
Definition: cvstd_wrapper.hpp:74