OpenCV 5.0.0-pre
Open Source Computer Vision
Loading...
Searching...
No Matches
cv::optflow::PCAPrior Class Reference

This class can be used for imposing a learned prior on the resulting optical flow. Solution will be regularized according to this prior. You need to generate appropriate prior file with "learn_prior.py" script beforehand. More...

#include <opencv2/optflow/pcaflow.hpp>

Collaboration diagram for cv::optflow::PCAPrior:

Public Member Functions

 PCAPrior (const char *pathToPrior)
 
void fillConstraints (float *A1, float *A2, float *b1, float *b2) const
 
int getBasisSize () const
 
int getPadding () const
 

Detailed Description

This class can be used for imposing a learned prior on the resulting optical flow. Solution will be regularized according to this prior. You need to generate appropriate prior file with "learn_prior.py" script beforehand.

Constructor & Destructor Documentation

◆ PCAPrior()

cv::optflow::PCAPrior::PCAPrior ( const char * pathToPrior)

Member Function Documentation

◆ fillConstraints()

void cv::optflow::PCAPrior::fillConstraints ( float * A1,
float * A2,
float * b1,
float * b2 ) const

◆ getBasisSize()

int cv::optflow::PCAPrior::getBasisSize ( ) const
inline

◆ getPadding()

int cv::optflow::PCAPrior::getPadding ( ) const
inline

The documentation for this class was generated from the following file: