MATLAB中对目标物体进行标记我要分享

In MATLAB, the target object is labeled.

c matlab 目标 进行 物体 标记

关注次数: 195

下载次数: 0

文件大小: 101.71 kB

代码分类: 其他

开发平台: matlab

下载需要积分: 2积分

版权声明:如果侵犯了您的权益请与我们联系,我们将在24小时内删除。

代码描述

中文说明:应用背景背景不能出现与目标颜色相近的,否则会造成干扰,光照也不要太强,我是在实验室完成的这个任务。精度比较高。关键技术使用颜色空间转换函数将RGB转换到LAB颜色空间,然后进行阈值分割,得出目标物体的颜色阈值,进行膨胀和闭运算,然后得出物体中心,用方框将物体标记出来。


English Description:

Application backgroundBackground can not appear similar to the target color, otherwise it will cause interference, light is not too strong, I was in the laboratory to complete the task. Relatively high accuracy.Key TechnologyUse the color space conversion function to convert RGB to LAB color space, and then carry out the threshold segmentation, the color threshold of the target object, the expansion and closing operation, and then get the center of the object, using the box to mark the object.


代码预览