OpenCV 4.12.0
Open Source Computer Vision
Loading...
Searching...
No Matches
cv::superres::SuperResolution Class Referenceabstract

Base class for Super Resolution algorithms. More...

#include <opencv2/superres.hpp>

Collaboration diagram for cv::superres::SuperResolution:

Public Member Functions

virtual void collectGarbage ()
 Clear all inner buffers.
virtual double getAlpha () const =0
 Parameter of spacial distribution in Bilateral-TV.
virtual int getBlurKernelSize () const =0
 Gaussian blur kernel size.
virtual double getBlurSigma () const =0
 Gaussian blur sigma.
virtual int getIterations () const =0
 Iterations count.
virtual int getKernelSize () const =0
 Kernel size of Bilateral-TV filter.
virtual double getLambda () const =0
 Weight parameter to balance data term and smoothness term.
virtual Ptr< cv::superres::DenseOpticalFlowExtgetOpticalFlow () const =0
 Dense optical flow algorithm.
virtual int getScale () const =0
 Scale factor.
virtual double getTau () const =0
 Asymptotic value of steepest descent method.
virtual int getTemporalAreaRadius () const =0
 Radius of the temporal search area.
void nextFrame (OutputArray frame) CV_OVERRIDE
 Process next frame from input and return output result.
void reset () CV_OVERRIDE
virtual void setAlpha (double val)=0
 Parameter of spacial distribution in Bilateral-TV.
virtual void setBlurKernelSize (int val)=0
 Gaussian blur kernel size.
virtual void setBlurSigma (double val)=0
 Gaussian blur sigma.
void setInput (const Ptr< FrameSource > &frameSource)
 Set input frame source for Super Resolution algorithm.
virtual void setIterations (int val)=0
 Iterations count.
virtual void setKernelSize (int val)=0
 Kernel size of Bilateral-TV filter.
virtual void setLambda (double val)=0
 Weight parameter to balance data term and smoothness term.
virtual void setOpticalFlow (const Ptr< cv::superres::DenseOpticalFlowExt > &val)=0
 Dense optical flow algorithm.
virtual void setScale (int val)=0
 Scale factor.
virtual void setTau (double val)=0
 Asymptotic value of steepest descent method.
virtual void setTemporalAreaRadius (int val)=0
 Radius of the temporal search area.
Public Member Functions inherited from cv::Algorithm
 Algorithm ()
virtual ~Algorithm ()
virtual void clear ()
 Clears the algorithm state.
virtual bool empty () const
 Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read.
virtual String getDefaultName () const
virtual void read (const FileNode &fn)
 Reads algorithm parameters from a file storage.
virtual void save (const String &filename) const
void write (const Ptr< FileStorage > &fs, const String &name=String()) const
virtual void write (FileStorage &fs) const
 Stores algorithm parameters in a file storage.
void write (FileStorage &fs, const String &name) const
Public Member Functions inherited from cv::superres::FrameSource
virtual ~FrameSource ()

Protected Member Functions

 SuperResolution ()
virtual void initImpl (Ptr< FrameSource > &frameSource)=0
virtual void processImpl (Ptr< FrameSource > &frameSource, OutputArray output)=0
Protected Member Functions inherited from cv::Algorithm
void writeFormat (FileStorage &fs) const

Protected Attributes

bool isUmat_

Additional Inherited Members

Static Public Member Functions inherited from cv::Algorithm
template<typename _Tp>
static Ptr< _Tpload (const String &filename, const String &objname=String())
 Loads algorithm from the file.
template<typename _Tp>
static Ptr< _TploadFromString (const String &strModel, const String &objname=String())
 Loads algorithm from a String.
template<typename _Tp>
static Ptr< _Tpread (const FileNode &fn)
 Reads algorithm from the file node.

Detailed Description

Base class for Super Resolution algorithms.

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

Constructor & Destructor Documentation

◆ SuperResolution()

cv::superres::SuperResolution::SuperResolution ( )
protected
Here is the call graph for this function:

Member Function Documentation

◆ collectGarbage()

virtual void cv::superres::SuperResolution::collectGarbage ( )
virtual

Clear all inner buffers.

Here is the call graph for this function:

◆ getAlpha()

virtual double cv::superres::SuperResolution::getAlpha ( ) const
pure virtual

Parameter of spacial distribution in Bilateral-TV.

See also
setAlpha
Here is the call graph for this function:

◆ getBlurKernelSize()

virtual int cv::superres::SuperResolution::getBlurKernelSize ( ) const
pure virtual

Gaussian blur kernel size.

See also
setBlurKernelSize
Here is the call graph for this function:

◆ getBlurSigma()

virtual double cv::superres::SuperResolution::getBlurSigma ( ) const
pure virtual

Gaussian blur sigma.

See also
setBlurSigma
Here is the call graph for this function:

◆ getIterations()

virtual int cv::superres::SuperResolution::getIterations ( ) const
pure virtual

Iterations count.

See also
setIterations
Here is the call graph for this function:

◆ getKernelSize()

virtual int cv::superres::SuperResolution::getKernelSize ( ) const
pure virtual

Kernel size of Bilateral-TV filter.

See also
setKernelSize
Here is the call graph for this function:

◆ getLambda()

virtual double cv::superres::SuperResolution::getLambda ( ) const
pure virtual

Weight parameter to balance data term and smoothness term.

See also
setLambda
Here is the call graph for this function:

◆ getOpticalFlow()

virtual Ptr< cv::superres::DenseOpticalFlowExt > cv::superres::SuperResolution::getOpticalFlow ( ) const
pure virtual

Dense optical flow algorithm.

See also
setOpticalFlow
Here is the call graph for this function:

◆ getScale()

virtual int cv::superres::SuperResolution::getScale ( ) const
pure virtual

Scale factor.

See also
setScale
Here is the call graph for this function:

◆ getTau()

virtual double cv::superres::SuperResolution::getTau ( ) const
pure virtual

Asymptotic value of steepest descent method.

See also
setTau
Here is the call graph for this function:

◆ getTemporalAreaRadius()

virtual int cv::superres::SuperResolution::getTemporalAreaRadius ( ) const
pure virtual

Radius of the temporal search area.

See also
setTemporalAreaRadius
Here is the call graph for this function:

◆ initImpl()

virtual void cv::superres::SuperResolution::initImpl ( Ptr< FrameSource > & frameSource)
protectedpure virtual
Here is the call graph for this function:

◆ nextFrame()

void cv::superres::SuperResolution::nextFrame ( OutputArray frame)
virtual

Process next frame from input and return output result.

Parameters
frameOutput result

Implements cv::superres::FrameSource.

◆ processImpl()

virtual void cv::superres::SuperResolution::processImpl ( Ptr< FrameSource > & frameSource,
OutputArray output )
protectedpure virtual
Here is the call graph for this function:

◆ reset()

void cv::superres::SuperResolution::reset ( )
virtual

◆ setAlpha()

virtual void cv::superres::SuperResolution::setAlpha ( double val)
pure virtual

Parameter of spacial distribution in Bilateral-TV.

See also
getAlpha
Here is the call graph for this function:

◆ setBlurKernelSize()

virtual void cv::superres::SuperResolution::setBlurKernelSize ( int val)
pure virtual

Gaussian blur kernel size.

See also
getBlurKernelSize
Here is the call graph for this function:

◆ setBlurSigma()

virtual void cv::superres::SuperResolution::setBlurSigma ( double val)
pure virtual

Gaussian blur sigma.

See also
getBlurSigma
Here is the call graph for this function:

◆ setInput()

void cv::superres::SuperResolution::setInput ( const Ptr< FrameSource > & frameSource)

Set input frame source for Super Resolution algorithm.

Parameters
frameSourceInput frame source

◆ setIterations()

virtual void cv::superres::SuperResolution::setIterations ( int val)
pure virtual

Iterations count.

See also
getIterations
Here is the call graph for this function:

◆ setKernelSize()

virtual void cv::superres::SuperResolution::setKernelSize ( int val)
pure virtual

Kernel size of Bilateral-TV filter.

See also
getKernelSize
Here is the call graph for this function:

◆ setLambda()

virtual void cv::superres::SuperResolution::setLambda ( double val)
pure virtual

Weight parameter to balance data term and smoothness term.

See also
getLambda
Here is the call graph for this function:

◆ setOpticalFlow()

virtual void cv::superres::SuperResolution::setOpticalFlow ( const Ptr< cv::superres::DenseOpticalFlowExt > & val)
pure virtual

Dense optical flow algorithm.

See also
getOpticalFlow
Here is the call graph for this function:

◆ setScale()

virtual void cv::superres::SuperResolution::setScale ( int val)
pure virtual

Scale factor.

See also
getScale
Here is the call graph for this function:

◆ setTau()

virtual void cv::superres::SuperResolution::setTau ( double val)
pure virtual

Asymptotic value of steepest descent method.

See also
getTau
Here is the call graph for this function:

◆ setTemporalAreaRadius()

virtual void cv::superres::SuperResolution::setTemporalAreaRadius ( int val)
pure virtual

Radius of the temporal search area.

See also
getTemporalAreaRadius
Here is the call graph for this function:

Member Data Documentation

◆ isUmat_

bool cv::superres::SuperResolution::isUmat_
protected

The documentation for this class was generated from the following file: