背景减法 – opencv 最新版本中的 Stauffer & Grimson 算法
Background Subtraction – Stauffer & Grimson’s Algorithm in opencv's latest versions
在opencv 1.0版本中有该算法的实现,函数是cvCreateFGDStatModel来创建背景模型。但我在最新版本中找不到它。有人知道它被删除或重命名了吗?如果你知道这个算法的其他开源软件请告诉我。
它仍然在那里,只是添加适当的include:
#include "opencv2/video/background_segm.hpp" // on OpenCV 2.3, it's inside this header!
#include "cv.h"
#include "highgui.h"