请选择 进入手机版 | 继续访问电脑版

Hello Mat

 找回密码
 立即注册
查看: 6731|回复: 7

图像像素聚类分割

[复制链接]

1278

主题

1504

帖子

90

金钱

管理员

Rank: 9Rank: 9Rank: 9

积分
22549
发表于 2020-2-12 17:31:31 | 显示全部楼层 |阅读模式
图像像素聚类分割:采用2幅图像,求解直方图特征,进行特征聚类分割
  1. * 采用2个通道图像,对彩色图像进行像素聚类分割
  2. read_image (Image, 'ic')
  3. dev_close_window ()
  4. get_image_size (Image, Width, Height)
  5. dev_open_window (0, 0, Width, Height, 'white', WindowID)
  6. * 彩色图像三个通道
  7. decompose3 (Image, Red, Green, Blue)
  8. * 选择一个区域,分割该区域
  9. gen_rectangle1 (Pattern, 362, 276, 371, 298)
  10. * Calculate the histogram of two-channel gray value images
  11. histo_2dim (Pattern, Red, Blue, Histo2Dim)
  12. threshold (Histo2Dim, Features, 1, 255)
  13. * Close a region with a circular structuring element
  14. closing_circle (Features, FeaturesClosed, 11.5)
  15. dev_set_draw ('fill')
  16. dev_set_part (0, 0, 511, 511)
  17. dev_display (Red)
  18. class_2dim_sup (Red, Blue, FeaturesClosed, RegionClass2Dim)
复制代码



本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?立即注册

x
算法QQ  3283892722
群智能算法链接http://halcom.cn/forum.php?mod=forumdisplay&fid=73
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Python|Opencv|MATLAB|Halcom.cn ( 蜀ICP备16027072号 )

GMT+8, 2024-3-28 22:10 , Processed in 0.240629 second(s), 25 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表