0
在opencv版本1.0中有一個該算法的實現,函數是cvCreateFGDStatModel來創建背景模型。但我無法在最新版本中找到它。有誰知道它是否被刪除或重命名?如果你知道該算法的其他開源,請告訴我。背景減法 - 在opencv的最新版本中的Stauffer&Grimson算法
在opencv版本1.0中有一個該算法的實現,函數是cvCreateFGDStatModel來創建背景模型。但我無法在最新版本中找到它。有誰知道它是否被刪除或重命名?如果你知道該算法的其他開源,請告訴我。背景減法 - 在opencv的最新版本中的Stauffer&Grimson算法
它仍然存在,只需添加相應的包括:
#include "opencv2/video/background_segm.hpp" // on OpenCV 2.3, it's inside this header!
#include "cv.h"
#include "highgui.h"