class cv::cuda::DenseOpticalFlow

Overview

Base interface for dense optical flow algorithms. Moreā€¦

#include <cudaoptflow.hpp>

class DenseOpticalFlow: public cv::Algorithm
{
public:
    // methods

    virtual
    void
    calc(
        InputArray I0,
        InputArray I1,
        InputOutputArray flow,
        Stream& stream = Stream::Null()
        ) = 0;
};

// direct descendants

class BroxOpticalFlow;
class DensePyrLKOpticalFlow;
class FarnebackOpticalFlow;
class OpticalFlowDual_TVL1;

Inherited Members

public:
    // methods

    virtual
    void
    clear();

    virtual
    bool
    empty() const;

    virtual
    String
    getDefaultName() const;

    virtual
    void
    read(const FileNode& fn);

    virtual
    void
    save(const String& filename) const;

    virtual
    void
    write(FileStorage& fs) const;

    template <typename _Tp>
    static
    Ptr<_Tp>
    load(
        const String& filename,
        const String& objname = String()
        );

    template <typename _Tp>
    static
    Ptr<_Tp>
    loadFromString(
        const String& strModel,
        const String& objname = String()
        );

    template <typename _Tp>
    static
    Ptr<_Tp>
    read(const FileNode& fn);

protected:
    // methods

    void
    writeFormat(FileStorage& fs) const;

Detailed Documentation

Base interface for dense optical flow algorithms.

Methods

virtual
void
calc(
    InputArray I0,
    InputArray I1,
    InputOutputArray flow,
    Stream& stream = Stream::Null()
    ) = 0

Calculates a dense optical flow.

Parameters:

I0 first input image.
I1 second input image of the same size and the same type as I0.
flow computed flow image that has the same size as I0 and type CV_32FC2.
stream Stream for the asynchronous version.