OpenCV for Unity based on OpenCV2.4.11
1.3.2
Enox Software
|
Public Member Functions | |
void | apply (Mat image, Mat fgmask, double learningRate) |
void | apply (Mat image, Mat fgmask) |
![]() | |
bool | getBool (string name) |
double | getDouble (string name) |
int | getInt (string name) |
Mat | getMat (string name) |
List< Mat > | getMatVector (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) |
![]() | |
void | Dispose () |
void | ThrowIfDisposed () |
Protected Member Functions | |
override void | Dispose (bool disposing) |
BackgroundSubtractor (IntPtr addr) | |
![]() | |
Algorithm (IntPtr addr) | |
![]() | |
DisposableOpenCVObject () | |
DisposableOpenCVObject (IntPtr ptr) | |
DisposableOpenCVObject (bool isEnabledDispose) | |
DisposableOpenCVObject (IntPtr ptr, bool isEnabledDispose) | |
![]() | |
DisposableObject () | |
DisposableObject (bool isEnabledDispose) | |
Additional Inherited Members | |
![]() | |
bool | IsDisposed [get, protected set] |
bool | IsEnabledDispose [get, set] |
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.
|
protected |
Computes a foreground mask.
image | Next video frame. |
fgmask | The output foreground mask as an 8-bit binary image. |
learningRate | a learningRate |
Computes a foreground mask.
image | Next video frame. |
fgmask | The output foreground mask as an 8-bit binary image. |
|
protectedvirtual |
Reimplemented from OpenCVForUnity.Algorithm.
Reimplemented in OpenCVForUnity.BackgroundSubtractorMOG2, and OpenCVForUnity.BackgroundSubtractorMOG.