class cv::superres::SuperResolution

Overview

Base class for Super Resolution algorithms. Moreā€¦

#include <superres.hpp>

class SuperResolution:
    public cv::Algorithm,
    public cv::superres::FrameSource
{
public:
    // methods

    virtual
    void
    collectGarbage();

    virtual
    double
    getAlpha() const = 0;

    virtual
    int
    getBlurKernelSize() const = 0;

    virtual
    double
    getBlurSigma() const = 0;

    virtual
    int
    getIterations() const = 0;

    virtual
    int
    getKernelSize() const = 0;

    virtual
    double
    getLabmda() const = 0;

    virtual
    Ptr<cv::superres::DenseOpticalFlowExt>
    getOpticalFlow() const = 0;

    virtual
    int
    getScale() const = 0;

    virtual
    double
    getTau() const = 0;

    virtual
    int
    getTemporalAreaRadius() const = 0;

    virtual
    void
    nextFrame(OutputArray frame);

    virtual
    void
    reset();

    virtual
    void
    setAlpha(double val) = 0;

    virtual
    void
    setBlurKernelSize(int val) = 0;

    virtual
    void
    setBlurSigma(double val) = 0;

    void
    setInput(const Ptr<FrameSource>& frameSource);

    virtual
    void
    setIterations(int val) = 0;

    virtual
    void
    setKernelSize(int val) = 0;

    virtual
    void
    setLabmda(double val) = 0;

    virtual
    void
    setOpticalFlow(const Ptr<cv::superres::DenseOpticalFlowExt>& val) = 0;

    virtual
    void
    setScale(int val) = 0;

    virtual
    void
    setTau(double val) = 0;

    virtual
    void
    setTemporalAreaRadius(int val) = 0;

protected:
    // fields

    bool isUmat_;

    // methods

    virtual
    void
    initImpl(Ptr<FrameSource>& frameSource) = 0;

    virtual
    void
    processImpl(
        Ptr<FrameSource>& frameSource,
        OutputArray output
        ) = 0;
};

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
    nextFrame(OutputArray frame) = 0;

    virtual
    void
    reset() = 0;

protected:
    // methods

    void
    writeFormat(FileStorage& fs) const;

Detailed Documentation

Base class for Super Resolution algorithms.

The class is only used to define the common interface for the whole family of Super Resolution algorithms.

Methods

virtual
void
collectGarbage()

Clear all inner buffers.

virtual
double
getAlpha() const = 0

Parameter of spacial distribution in Bilateral-TV.

See also:

setAlpha

virtual
int
getBlurKernelSize() const = 0

Gaussian blur kernel size.

See also:

setBlurKernelSize

virtual
double
getBlurSigma() const = 0

Gaussian blur sigma.

See also:

setBlurSigma

virtual
int
getIterations() const = 0

Iterations count.

See also:

setIterations

virtual
int
getKernelSize() const = 0

Kernel size of Bilateral-TV filter.

See also:

setKernelSize

virtual
double
getLabmda() const = 0

Weight parameter to balance data term and smoothness term.

See also:

setLabmda

virtual
Ptr<cv::superres::DenseOpticalFlowExt>
getOpticalFlow() const = 0

Dense optical flow algorithm.

See also:

setOpticalFlow

virtual
int
getScale() const = 0

Scale factor.

See also:

setScale

virtual
double
getTau() const = 0

Asymptotic value of steepest descent method.

See also:

setTau

virtual
int
getTemporalAreaRadius() const = 0

Radius of the temporal search area.

See also:

setTemporalAreaRadius

virtual
void
nextFrame(OutputArray frame)

Process next frame from input and return output result.

Parameters:

frame Output result
virtual
void
setAlpha(double val) = 0

Parameter of spacial distribution in Bilateral-TV.

See also:

getAlpha

virtual
void
setBlurKernelSize(int val) = 0

Gaussian blur kernel size.

See also:

getBlurKernelSize

virtual
void
setBlurSigma(double val) = 0

Gaussian blur sigma.

See also:

getBlurSigma

void
setInput(const Ptr<FrameSource>& frameSource)

Set input frame source for Super Resolution algorithm.

Parameters:

frameSource Input frame source
virtual
void
setIterations(int val) = 0

Iterations count.

See also:

getIterations

virtual
void
setKernelSize(int val) = 0

Kernel size of Bilateral-TV filter.

See also:

getKernelSize

virtual
void
setLabmda(double val) = 0

Weight parameter to balance data term and smoothness term.

See also:

getLabmda

virtual
void
setOpticalFlow(const Ptr<cv::superres::DenseOpticalFlowExt>& val) = 0

Dense optical flow algorithm.

See also:

getOpticalFlow

virtual
void
setScale(int val) = 0

Scale factor.

See also:

getScale

virtual
void
setTau(double val) = 0

Asymptotic value of steepest descent method.

See also:

getTau

virtual
void
setTemporalAreaRadius(int val) = 0

Radius of the temporal search area.

See also:

getTemporalAreaRadius