当前位置:网站首页>叶子识别 颜色的特征提取 缺陷检测等
叶子识别 颜色的特征提取 缺陷检测等
2022-07-28 02:46:00 【matlab_python22】
在颜色直方图的识别中

function G = lianghua_hsv(A)
% 将hsv空间非均匀量化.
% h量化成8级
% s量化成3级
% v量化成3级
[M,N,O] = size(A);
% 用中值滤波进行图像降噪
[h s v] = zz_jiangzao(A);
h = h*360;
% h分量量化
for i = 1:M
for j = 1:N
if h(i,j)>=0 && h(i,j)<=20
H(i,j) = 0;
end
if h(i,j)>=21 && h(i,j)<=40
H(i,j) = 1;
end
if h(i,j)>=41 && h(i,j)<=75
H(i,j) = 2;
end
if h(i,j)>=76 && h(i,j)<=155
边栏推荐
- 满满干货赶紧进来!!!轻松掌握C语言中的函数
- 上位机与MES对接的几种方式
- Decision tree and random forest learning notes (1)
- 【下载文件】uniapp开发小程序,下载文件并保存到本地
- My approval of OA project (meeting inquiry & meeting signature)
- 《MySQL数据库进阶实战》读后感(SQL 小虚竹)
- Brush questions every day to consolidate knowledge
- Web服务器
- Summary of static blog building tools
- Distributed transaction Senta (I)
猜你喜欢
随机推荐
[email protected] Annotation usage
els 定时器
[stream] basic knowledge of stream
数据湖(十七):Flink与Iceberg整合DataStream API操作
ELS timer
Unexpected harvest of epic distributed resources, from basic to advanced are full of dry goods, big guys are strong!
【下载文件】uniapp开发小程序,下载文件并保存到本地
Comprehensive case
嵌入式数据库--SQLite
图像去噪综合比较研究
Tungsten Fabric SDN — BGP as a Service
【ACwing 1064 小国王】状压dp
Is the securities account given by qiniu safe? Can qiniu open an account and buy funds
将Helm编写的Chart推送到Harbor仓库
Decision tree and random forest learning notes (1)
Data Lake: each module component
【2022 牛客第二场J题 Link with Arithmetic Progression】三分套三分/三分极值/线性方程拟合最小二乘法
On weight decay and discarding method
mysql存储过程 使用游标实现两张表数据同步数据
Development and design logic of rtsp/onvif protocol easynvr video platform one click upgrade scheme









