class cv::cuda::DensePyrLKOpticalFlow

Overview

Class used for calculating a dense optical flow. Moreā€¦

#include <cudaoptflow.hpp>

class DensePyrLKOpticalFlow: public cv::cuda::DenseOpticalFlow
{
public:
    // methods

    virtual
    int
    getMaxLevel() const = 0;

    virtual
    int
    getNumIters() const = 0;

    virtual
    bool
    getUseInitialFlow() const = 0;

    virtual
    Size
    getWinSize() const = 0;

    virtual
    void
    setMaxLevel(int maxLevel) = 0;

    virtual
    void
    setNumIters(int iters) = 0;

    virtual
    void
    setUseInitialFlow(bool useInitialFlow) = 0;

    virtual
    void
    setWinSize(Size winSize) = 0;

    static
    Ptr<DensePyrLKOpticalFlow>
    create(
        Size winSize = Size(13, 13),
        int maxLevel = 3,
        int iters = 30,
        bool useInitialFlow = false
        );
};

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);

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

protected:
    // methods

    void
    writeFormat(FileStorage& fs) const;

Detailed Documentation

Class used for calculating a dense optical flow.

The class can calculate an optical flow for a dense optical flow using the iterative Lucas-Kanade method with pyramids.