OpenCV for Unity based on OpenCV2.4.11  1.3.2
Enox Software
Public Member Functions | Protected Member Functions | List of all members
OpenCVForUnity.BackgroundSubtractor Class Reference
Inheritance diagram for OpenCVForUnity.BackgroundSubtractor:
OpenCVForUnity.Algorithm OpenCVForUnity.DisposableOpenCVObject OpenCVForUnity.DisposableObject OpenCVForUnity.BackgroundSubtractorMOG OpenCVForUnity.BackgroundSubtractorMOG2

Public Member Functions

void apply (Mat image, Mat fgmask, double learningRate)
 
void apply (Mat image, Mat fgmask)
 
- Public Member Functions inherited from OpenCVForUnity.Algorithm
bool getBool (string name)
 
double getDouble (string name)
 
int getInt (string name)
 
Mat getMat (string name)
 
List< MatgetMatVector (string name)
 
string getString (string name)
 
string paramHelp (string name)
 
int paramType (string name)
 
void setBool (string name, bool value)
 
void setDouble (string name, double value)
 
void setInt (string name, int value)
 
void setMat (string name, Mat value)
 
void setMatVector (string name, List< Mat > value)
 
void setString (string name, string value)
 
- Public Member Functions inherited from OpenCVForUnity.DisposableObject
void Dispose ()
 
void ThrowIfDisposed ()
 

Protected Member Functions

override void Dispose (bool disposing)
 
 BackgroundSubtractor (IntPtr addr)
 
- Protected Member Functions inherited from OpenCVForUnity.Algorithm
 Algorithm (IntPtr addr)
 
- Protected Member Functions inherited from OpenCVForUnity.DisposableOpenCVObject
 DisposableOpenCVObject ()
 
 DisposableOpenCVObject (IntPtr ptr)
 
 DisposableOpenCVObject (bool isEnabledDispose)
 
 DisposableOpenCVObject (IntPtr ptr, bool isEnabledDispose)
 
- Protected Member Functions inherited from OpenCVForUnity.DisposableObject
 DisposableObject ()
 
 DisposableObject (bool isEnabledDispose)
 

Additional Inherited Members

- Properties inherited from OpenCVForUnity.DisposableObject
bool IsDisposed [get, protected set]
 
bool IsEnabledDispose [get, set]
 

Detailed Description

Base class for background/foreground segmentation.

class BackgroundSubtractor : public Algorithm

// C++ code:

public:

virtual ~BackgroundSubtractor();

virtual void operator()(InputArray image, OutputArray fgmask, double learningRate=0);

virtual void getBackgroundImage(OutputArray backgroundImage) const;

};

The class is only used to define the common interface for the whole family of background/foreground segmentation algorithms.

See also
org.opencv.video.BackgroundSubtractor : public Algorithm

Constructor & Destructor Documentation

OpenCVForUnity.BackgroundSubtractor.BackgroundSubtractor ( IntPtr  addr)
protected

Member Function Documentation

void OpenCVForUnity.BackgroundSubtractor.apply ( Mat  image,
Mat  fgmask,
double  learningRate 
)

Computes a foreground mask.

Parameters
imageNext video frame.
fgmaskThe output foreground mask as an 8-bit binary image.
learningRatea learningRate
See also
org.opencv.video.BackgroundSubtractor.operator()
void OpenCVForUnity.BackgroundSubtractor.apply ( Mat  image,
Mat  fgmask 
)

Computes a foreground mask.

Parameters
imageNext video frame.
fgmaskThe output foreground mask as an 8-bit binary image.
See also
org.opencv.video.BackgroundSubtractor.operator()
override void OpenCVForUnity.BackgroundSubtractor.Dispose ( bool  disposing)
protectedvirtual

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