matlab的光流跟踪,MATLab的光流跟踪例子

本文介绍了一种使用光学流估算技术追踪视频中车辆的方法。通过阈值处理和形态学闭合操作,该技术能够生成二进制特征图像,并利用Blob分析定位车辆。最终,通过绘制矩形框标记出通过特定区域的车辆。

Example Model

The following figure shows the Tracking Cars Using Optical Flow model:

Tracking Cars Using Optical Flow Results

The model uses an optical flow estimation technique to estimate the motion vectors in each frame of the video sequence. By thresholding and performing morphological closing on the motion vectors, the model produces binary feature images. The model locates the cars in each binary feature image using the Blob Analysis block. Then it uses the Draw Shapes block to draw a green rectangle around the cars that pass beneath the white line. The counter in the upper left corner of the Results window tracks the number of cars in the region of interest.

Available Example Versions

Windows only: viptrafficof_win.mdlviptrafficof_win.mdl

Platform independent: viptrafficof_all.mdlviptrafficof_all.mdl

Windows-only example models might contain compressed multimedia files or To Video Display blocks, both of which are only supported on Windows platforms. The To Video Display block supports code generation, and its performance is optimized for Windows. 转载地址: http://www.mathworks.cn/cn/help/vision/examples/tracking-cars-using-optical-flow.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值