|
virtual double | getBackgroundPrior () const =0 |
| Returns the prior probability that each individual pixel is a background pixel.
|
|
virtual double | getDecisionThreshold () const =0 |
| Returns the value of decision threshold.
|
|
virtual double | getDefaultLearningRate () const =0 |
| Returns the learning rate of the algorithm.
|
|
virtual int | getMaxFeatures () const =0 |
| Returns total number of distinct colors to maintain in histogram.
|
|
virtual double | getMaxVal () const =0 |
| Returns the maximum value taken on by pixels in image sequence. e.g. 1.0 or 255.
|
|
virtual double | getMinVal () const =0 |
| Returns the minimum value taken on by pixels in image sequence. Usually 0.
|
|
virtual int | getNumFrames () const =0 |
| Returns the number of frames used to initialize background model.
|
|
virtual int | getQuantizationLevels () const =0 |
| Returns the parameter used for quantization of color-space.
|
|
virtual int | getSmoothingRadius () const =0 |
| Returns the kernel radius used for morphological operations.
|
|
virtual bool | getUpdateBackgroundModel () const =0 |
| Returns the status of background model update.
|
|
virtual void | setBackgroundPrior (double bgprior)=0 |
| Sets the prior probability that each individual pixel is a background pixel.
|
|
virtual void | setDecisionThreshold (double thresh)=0 |
| Sets the value of decision threshold.
|
|
virtual void | setDefaultLearningRate (double lr)=0 |
| Sets the learning rate of the algorithm.
|
|
virtual void | setMaxFeatures (int maxFeatures)=0 |
| Sets total number of distinct colors to maintain in histogram.
|
|
virtual void | setMaxVal (double val)=0 |
| Sets the maximum value taken on by pixels in image sequence.
|
|
virtual void | setMinVal (double val)=0 |
| Sets the minimum value taken on by pixels in image sequence.
|
|
virtual void | setNumFrames (int nframes)=0 |
| Sets the number of frames used to initialize background model.
|
|
virtual void | setQuantizationLevels (int nlevels)=0 |
| Sets the parameter used for quantization of color-space.
|
|
virtual void | setSmoothingRadius (int radius)=0 |
| Sets the kernel radius used for morphological operations.
|
|
virtual void | setUpdateBackgroundModel (bool update)=0 |
| Sets the status of background model update.
|
|
virtual void | apply (InputArray image, OutputArray fgmask, double learningRate=-1)=0 |
| Computes a foreground mask.
|
|
virtual void | getBackgroundImage (OutputArray backgroundImage) const =0 |
| Computes a background image.
|
|
| 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 |
|
Background Subtractor module based on the algorithm given in [Gold2012] .
Takes a series of images and returns a sequence of mask (8UC1) images of the same size, where 255 indicates Foreground and 0 represents Background. This class implements an algorithm described in "Visual Tracking of Human Visitors under
Variable-Lighting Conditions for a Responsive Audio Art Installation," A. Godbehere, A. Matsukawa, K. Goldberg, American Control Conference, Montreal, June 2012.