Class cv::optflow::OpticalFlowPCAFlow#
PCAFlow algorithm.
#include <opencv2/optflow/pcaflow.hpp>Collaboration diagram for cv::optflow::OpticalFlowPCAFlow:
Public Member Functions#
Public Member Functions inherited from cv::DenseOpticalFlow
Return |
Name |
Description |
|---|---|---|
|
Calculates an optical flow. |
|
|
Releases all inner buffers. |
Public Member Functions inherited from cv::Algorithm
Return |
Name |
Description |
|---|---|---|
|
Clears the algorithm state. |
|
|
Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read. |
|
|
Reads algorithm parameters from a file storage. |
|
|
||
|
|
|
|
Stores algorithm parameters in a file storage. |
|
|
Static Public Member Functions#
Static Public Member Functions inherited from cv::Algorithm
Return |
Name |
Description |
|---|---|---|
|
|
Loads algorithm from the file. |
|
|
Loads algorithm from a String. |
|
Reads algorithm from the file node. |
Additional Inherited Members#
Protected Member Functions inherited from cv::Algorithm
Return |
Name |
Description |
|---|---|---|
|
Detailed Description#
PCAFlow algorithm.
Constructor & Destructor Documentation#
OpticalFlowPCAFlow()#
cv::optflow::OpticalFlowPCAFlow::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.
See also
Parameters
_prior— Learned prior or no prior (default)._basisSize— Number of basis vectors._sparseRate— Controls density of sparse matches._retainedCornersFraction— Retained corners fraction._occlusionsThreshold— Occlusion threshold._dampingFactor— Regularization term for solving least-squares. It is not related to the prior regularization._claheClip— Clip parameter for CLAHE.
Member Function Documentation#
calc()#
void cv::optflow::OpticalFlowPCAFlow::calc(
InputArray I0,
InputArray I1,
InputOutputArray flow )
Calculates an optical flow.
Parameters
I0— first 8-bit single-channel input image.I1— second input image of the same size and the same type as prev.flow— computed flow image that has the same size as prev and type CV_32FC2.
collectGarbage()#
void cv::optflow::OpticalFlowPCAFlow::collectGarbage()
Releases all inner buffers.
findSparseFeatures()#
void cv::optflow::OpticalFlowPCAFlow::findSparseFeatures(
UMat & from,
UMat & to,
std::vector< Point2f > & features,
std::vector< Point2f > & predictedFeatures )
getSystem()#
void cv::optflow::OpticalFlowPCAFlow::getSystem(
OutputArray A1Out,
OutputArray A2Out,
OutputArray b1Out,
OutputArray b2Out,
const std::vector< Point2f > & features,
const std::vector< Point2f > & predictedFeatures,
const Size size )
getSystem()#
void cv::optflow::OpticalFlowPCAFlow::getSystem(
OutputArray AOut,
OutputArray b1Out,
OutputArray b2Out,
const std::vector< Point2f > & features,
const std::vector< Point2f > & predictedFeatures,
const Size size )
operator=()#
OpticalFlowPCAFlow & cv::optflow::OpticalFlowPCAFlow::operator=(const OpticalFlowPCAFlow &)
removeOcclusions()#
void cv::optflow::OpticalFlowPCAFlow::removeOcclusions(
UMat & from,
UMat & to,
std::vector< Point2f > & features,
std::vector< Point2f > & predictedFeatures )
Member Data Documentation#
basisSize#
const Size cv::optflow::OpticalFlowPCAFlow::basisSize
claheClip#
const float cv::optflow::OpticalFlowPCAFlow::claheClip
dampingFactor#
const float cv::optflow::OpticalFlowPCAFlow::dampingFactor
occlusionsThreshold#
const float cv::optflow::OpticalFlowPCAFlow::occlusionsThreshold
prior#
const Ptr< const PCAPrior > cv::optflow::OpticalFlowPCAFlow::prior
retainedCornersFraction#
const float cv::optflow::OpticalFlowPCAFlow::retainedCornersFraction
sparseRate#
const float cv::optflow::OpticalFlowPCAFlow::sparseRate
useOpenCL#
bool cv::optflow::OpticalFlowPCAFlow::useOpenCL
Source file#
The documentation for this class was generated from the following file:
opencv2/optflow/pcaflow.hpp