在matlab中跟踪图像 [英] tracking an image in matlab

查看:152
本文介绍了在matlab中跟踪图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

例如,您如何在正在跟踪的图像上方放置一个蓝色圆圈?不是圆圈,而是更像圆环。

How do you for example put a blue circle centered over an image you are tracking? Not a filled in circle, but more like a donut.

推荐答案

以下是基于在你的另一个问题中,我们回答

%# sample image
I = imread('autumn.tif');
figure, imshow(I)

%# location of random feature points
featLoc = randi([1 200], [10 2]);

%# draw first 5 points as one set, the rest as another with a different color
lineProps = {'LineStyle','none', 'LineWidth',2, 'Marker','o', 'MarkerSize',10};
line(featLoc(1:5,1), featLoc(1:5,2), 'Color','r', lineProps{:})
line(featLoc(6:end,1), featLoc(6:end,2), 'Color','b', lineProps{:})

这篇关于在matlab中跟踪图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆