|
OpenCV 2.4.3 (RC) | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.opencv.core.Algorithm org.opencv.video.BackgroundSubtractor
public class BackgroundSubtractor
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.
Field Summary |
---|
Fields inherited from class org.opencv.core.Algorithm |
---|
nativeObj |
Constructor Summary | |
---|---|
protected |
BackgroundSubtractor(long addr)
|
Method Summary | |
---|---|
void |
apply(Mat image,
Mat fgmask)
Computes a foreground mask. |
void |
apply(Mat image,
Mat fgmask,
double learningRate)
Computes a foreground mask. |
protected void |
finalize()
|
Methods inherited from class org.opencv.core.Algorithm |
---|
getBool, getDouble, getInt, getMat, getMatVector, getString, paramHelp, paramType, setBool, setDouble, setInt, setMat, setMatVector, setString |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected BackgroundSubtractor(long addr)
Method Detail |
---|
public void apply(Mat image, Mat fgmask)
Computes a foreground mask.
image
- Next video frame.fgmask
- The output foreground mask as an 8-bit binary image.public void apply(Mat image, Mat fgmask, double learningRate)
Computes a foreground mask.
image
- Next video frame.fgmask
- The output foreground mask as an 8-bit binary image.learningRate
- a learningRateprotected void finalize() throws java.lang.Throwable
finalize
in class Algorithm
java.lang.Throwable
|
Official OpenCV 2.4 Documentation | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |