mexopencv  3.4.1
MEX interface for OpenCV library
Functions | Variables
anonymous_namespace{SuperResolution_.cpp} Namespace Reference

Functions

Ptr< FrameSourcecreateFrameSource (const string &type, vector< MxArray >::const_iterator first, vector< MxArray >::const_iterator last)
 Create an instance of FrameSource using options in arguments. More...
 
Ptr< superres::FarnebackOpticalFlowcreateFarnebackOpticalFlow (bool use_gpu, vector< MxArray >::const_iterator first, vector< MxArray >::const_iterator last)
 Create an instance of FarnebackOpticalFlow using options in arguments. More...
 
Ptr< superres::DualTVL1OpticalFlowcreateDualTVL1OpticalFlow (bool use_gpu, vector< MxArray >::const_iterator first, vector< MxArray >::const_iterator last)
 Create an instance of DualTVL1OpticalFlow using options in arguments. More...
 
Ptr< BroxOpticalFlowcreateBroxOpticalFlow (bool, vector< MxArray >::const_iterator first, vector< MxArray >::const_iterator last)
 Create an instance of BroxOpticalFlow using options in arguments. More...
 
Ptr< PyrLKOpticalFlowcreatePyrLKOpticalFlow (bool, vector< MxArray >::const_iterator first, vector< MxArray >::const_iterator last)
 Create an instance of PyrLKOpticalFlow using options in arguments. More...
 
Ptr< DenseOpticalFlowExtcreateDenseOpticalFlowExt (const string &type, vector< MxArray >::const_iterator first, vector< MxArray >::const_iterator last)
 Create an instance of DenseOpticalFlowExt using options in arguments. More...
 
Ptr< SuperResolutioncreateSuperResolution (const string &type)
 Create an instance of SuperResolution using options in arguments. More...
 
MxArray toStruct (Ptr< DenseOpticalFlowExt > p)
 Convert a DenseOpticalFlowExt to MxArray. More...
 

Variables

int last_id = 0
 Last object id to allocate. More...
 
map< int, Ptr< SuperResolution > > obj_
 Object container. More...
 

Function Documentation

◆ createBroxOpticalFlow()

Ptr<BroxOpticalFlow> anonymous_namespace{SuperResolution_.cpp}::createBroxOpticalFlow ( bool  ,
vector< MxArray >::const_iterator  first,
vector< MxArray >::const_iterator  last 
)

Create an instance of BroxOpticalFlow using options in arguments.

Parameters
use_gpuspecify whether to use CPU or GPU implementation
firstiterator at the beginning of the vector range
lastiterator at the end of the vector range
Returns
smart pointer to created cv::superres::BroxOpticalFlow

Definition at line 165 of file SuperResolution_.cpp.

◆ createDenseOpticalFlowExt()

Ptr<DenseOpticalFlowExt> anonymous_namespace{SuperResolution_.cpp}::createDenseOpticalFlowExt ( const string type,
vector< MxArray >::const_iterator  first,
vector< MxArray >::const_iterator  last 
)

Create an instance of DenseOpticalFlowExt using options in arguments.

Parameters
typedense optical flow type, one of:
  • "FarnebackOpticalFlow"
  • "DualTVL1OpticalFlow"
  • "FarnebackOpticalFlowCUDA" (requires CUDA)
  • "DualTVL1OpticalFlowCUDA" (requires CUDA)
  • "BroxOpticalFlowCUDA" (requires CUDA)
  • "PyrLKOpticalFlowCUDA" (requires CUDA)
firstiterator at the beginning of the vector range
lastiterator at the end of the vector range
Returns
smart pointer to created cv::superres::DenseOpticalFlowExt

Definition at line 243 of file SuperResolution_.cpp.

◆ createDualTVL1OpticalFlow()

Ptr<superres::DualTVL1OpticalFlow> anonymous_namespace{SuperResolution_.cpp}::createDualTVL1OpticalFlow ( bool  use_gpu,
vector< MxArray >::const_iterator  first,
vector< MxArray >::const_iterator  last 
)

Create an instance of DualTVL1OpticalFlow using options in arguments.

Parameters
use_gpuspecify whether to use CPU or GPU implementation
firstiterator at the beginning of the vector range
lastiterator at the end of the vector range
Returns
smart pointer to created cv::superres::DualTVL1OpticalFlow

Definition at line 120 of file SuperResolution_.cpp.

◆ createFarnebackOpticalFlow()

Ptr<superres::FarnebackOpticalFlow> anonymous_namespace{SuperResolution_.cpp}::createFarnebackOpticalFlow ( bool  use_gpu,
vector< MxArray >::const_iterator  first,
vector< MxArray >::const_iterator  last 
)

Create an instance of FarnebackOpticalFlow using options in arguments.

Parameters
use_gpuspecify whether to use CPU or GPU implementation
firstiterator at the beginning of the vector range
lastiterator at the end of the vector range
Returns
smart pointer to created cv::superres::FarnebackOpticalFlow

Definition at line 77 of file SuperResolution_.cpp.

◆ createFrameSource()

Ptr<FrameSource> anonymous_namespace{SuperResolution_.cpp}::createFrameSource ( const string type,
vector< MxArray >::const_iterator  first,
vector< MxArray >::const_iterator  last 
)

Create an instance of FrameSource using options in arguments.

Parameters
typeframe source type, one of:
  • "Camera"
  • "Video"
  • "VideoCUDA" (requires CUDA)
  • "Empty"
firstiterator at the beginning of the vector range
lastiterator at the end of the vector range
Returns
smart pointer to created FrameSource

Definition at line 34 of file SuperResolution_.cpp.

◆ createPyrLKOpticalFlow()

Ptr<PyrLKOpticalFlow> anonymous_namespace{SuperResolution_.cpp}::createPyrLKOpticalFlow ( bool  ,
vector< MxArray >::const_iterator  first,
vector< MxArray >::const_iterator  last 
)

Create an instance of PyrLKOpticalFlow using options in arguments.

Parameters
use_gpuspecify whether to use CPU or GPU implementation
firstiterator at the beginning of the vector range
lastiterator at the end of the vector range
Returns
smart pointer to created cv::superres::PyrLKOpticalFlow

Definition at line 204 of file SuperResolution_.cpp.

◆ createSuperResolution()

Ptr<SuperResolution> anonymous_namespace{SuperResolution_.cpp}::createSuperResolution ( const string type)

Create an instance of SuperResolution using options in arguments.

Parameters
typesuper resolution algorithm type, one of:
  • "BTVL1"
  • "BTVL1_CUDA" (requires CUDA)
Returns
smart pointer to created cv::superres::SuperResolution

Definition at line 276 of file SuperResolution_.cpp.

◆ toStruct()

MxArray anonymous_namespace{SuperResolution_.cpp}::toStruct ( Ptr< DenseOpticalFlowExt p)

Convert a DenseOpticalFlowExt to MxArray.

Parameters
psmart poitner to an instance of DenseOpticalFlowExt
Returns
output MxArray structure

Definition at line 296 of file SuperResolution_.cpp.

Variable Documentation

◆ last_id

int anonymous_namespace{SuperResolution_.cpp}::last_id = 0

Last object id to allocate.

Definition at line 20 of file SuperResolution_.cpp.

◆ obj_

map<int,Ptr<SuperResolution> > anonymous_namespace{SuperResolution_.cpp}::obj_

Object container.

Definition at line 22 of file SuperResolution_.cpp.