首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >查找每个像素的光流opencv

查找每个像素的光流opencv
EN

Stack Overflow用户
提问于 2014-01-05 13:04:53
回答 1查看 3.8K关注 0票数 1

我使用以下函数作为跟踪算法的基础。

//1.检测特征--我的意思是,这个函数提取了唯一好的特性,

代码语言:javascript
复制
cv::goodFeaturesToTrack(gray_prev, // the image 
features,   // the output detected features
max_count,  // the maximum number of features 
qlevel,     // quality level
minDist);   // min distance between two features

// 2.轨道特征

代码语言:javascript
复制
cv::calcOpticalFlowPyrLK(
gray_prev, gray, // 2 consecutive images
points_prev, // input point positions in first im
points_cur, // output point positions in the 2nd
status,    // tracking success
err);      // tracking error

cv::calcOpticalFlowPyrLK将上一幅图像中的点向量作为输入,并在下一幅图像上返回适当的点。假设我想计算每个像素的光学流,而不是好的特性。

另一方面,开始计算从(1,1)到(m,n)的光流。

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2014-01-05 14:29:27

简历:calcOpticalFlowPyrLK做稀疏的,从特征点,如果你想要它为每个像素,使用

calcOpticalFlowFarneback

计算密集光流(使用的算法)。

票数 7
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/20933872

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档