OpenCV453
クラス | 関数
Motion Analysis

クラス

class  cv::BackgroundSubtractor
 Base class for background/foreground segmentation. : [詳解]
 
class  cv::BackgroundSubtractorMOG2
 Gaussian Mixture-based Background/Foreground Segmentation Algorithm. [詳解]
 
class  cv::BackgroundSubtractorKNN
 K-nearest neighbours - based Background/Foreground Segmentation Algorithm. [詳解]
 

関数

CV_EXPORTS_W Ptr< BackgroundSubtractorMOG2cv::createBackgroundSubtractorMOG2 (int history=500, double varThreshold=16, bool detectShadows=true)
 Creates MOG2 Background Subtractor [詳解]
 
CV_EXPORTS_W Ptr< BackgroundSubtractorKNNcv::createBackgroundSubtractorKNN (int history=500, double dist2Threshold=400.0, bool detectShadows=true)
 Creates KNN Background Subtractor [詳解]
 

詳解

関数詳解

◆ createBackgroundSubtractorKNN()

CV_EXPORTS_W Ptr< BackgroundSubtractorKNN > cv::createBackgroundSubtractorKNN ( int  history = 500,
double  dist2Threshold = 400.0,
bool  detectShadows = true 
)

Creates KNN Background Subtractor

引数
historyLength of the history.
dist2ThresholdThreshold on the squared distance between the pixel and the sample to decide whether a pixel is close to that sample. This parameter does not affect the background update.
detectShadowsIf true, the algorithm will detect shadows and mark them. It decreases the speed a bit, so if you do not need this feature, set the parameter to false.

◆ createBackgroundSubtractorMOG2()

CV_EXPORTS_W Ptr< BackgroundSubtractorMOG2 > cv::createBackgroundSubtractorMOG2 ( int  history = 500,
double  varThreshold = 16,
bool  detectShadows = true 
)

Creates MOG2 Background Subtractor

引数
historyLength of the history.
varThresholdThreshold on the squared Mahalanobis distance between the pixel and the model to decide whether a pixel is well described by the background model. This parameter does not affect the background update.
detectShadowsIf true, the algorithm will detect shadows and mark them. It decreases the speed a bit, so if you do not need this feature, set the parameter to false.