OpenCV光流零速度孔

问题描述

我正在使用OpenCV CUDA光流Farneback来计算流图,但结果通常包含零速度孔。 (请参阅下面的视频链接。) 所以我想知道这是否是可以通过优化参数消除的伪影。

Color Map + Original

Color Map Only

上述“孔”。在紫色边界内,黑色区域的速度为零。 img1

Farneback参数如下。

const int numLevels = 4;
const float pyrScale = 0.5;
const bool fastPyramids = true;
const int winSize = 11;
const int numIters = 10;
const int polyN = 7; // 5 or 7
const float polySigma = 2.4;

然后将x,y分量转换为HSV格式。

如果需要其他信息,请告诉我。

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)