class cv::cuda::BackgroundSubtractorFGD
Overview
The class discriminates between foreground and background pixels by building and maintaining a model of the background. Moreā¦
#include <cudalegacy.hpp> class BackgroundSubtractorFGD: public cv::BackgroundSubtractor { public: // methods virtual void getForegroundRegions(OutputArrayOfArrays foreground_regions) = 0; };
Inherited Members
public: // methods virtual void clear(); virtual bool empty() const; virtual String getDefaultName() const; virtual void read(const FileNode& fn); virtual void save(const String& filename) const; virtual void write(FileStorage& fs) const; template <typename _Tp> static Ptr<_Tp> load( const String& filename, const String& objname = String() ); template <typename _Tp> static Ptr<_Tp> loadFromString( const String& strModel, const String& objname = String() ); template <typename _Tp> static Ptr<_Tp> read(const FileNode& fn); virtual void apply( InputArray image, OutputArray fgmask, double learningRate = -1 ) = 0; virtual void getBackgroundImage(OutputArray backgroundImage) const = 0; protected: // methods void writeFormat(FileStorage& fs) const;
Detailed Documentation
The class discriminates between foreground and background pixels by building and maintaining a model of the background.
Any pixel which does not fit this model is then deemed to be foreground. The class implements algorithm described in [47].
See also:
Methods
virtual void getForegroundRegions(OutputArrayOfArrays foreground_regions) = 0
Returns the output foreground regions calculated by findContours.
Parameters:
foreground_regions | Output array (CPU memory). |