如何使用卡尔曼滤波器算法和 opencv c++ 代码绘制随机点。我现在尝试使用鼠标功能而不是鼠标功能,我希望生成随机点并使用卡尔曼滤波器来跟踪所有随机点。这是鼠标函数: struct mouse_info_struct { int x,y; }; struct mouse_info_struct mouse_info = {-1,-1}, last_mouse;
vector<Point> mousev,kalmanv;
void on_mouse(int event, int x, int y, int flags, void* param)
{
last_mouse = mouse_info;
mouse_info.x = x;
mouse_info.y = y;
}