class cv::DenseOpticalFlow

Overview

#include <tracking.hpp>

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

    virtual
    void
    calc(
        InputArray I0,
        InputArray I1,
        InputOutputArray flow
        ) = 0;

    virtual
    void
    collectGarbage() = 0;
};

// direct descendants

class DualTVL1OpticalFlow;
class FarnebackOpticalFlow;

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

Methods

virtual
void
calc(
    InputArray I0,
    InputArray I1,
    InputOutputArray flow
    ) = 0

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.
virtual
void
collectGarbage() = 0

Releases all inner buffers.