|
图像像素聚类分割:采用2幅图像,求解直方图特征,进行特征聚类分割
- * 采用2个通道图像,对彩色图像进行像素聚类分割
- read_image (Image, 'ic')
- dev_close_window ()
- get_image_size (Image, Width, Height)
- dev_open_window (0, 0, Width, Height, 'white', WindowID)
- * 彩色图像三个通道
- decompose3 (Image, Red, Green, Blue)
- * 选择一个区域,分割该区域
- gen_rectangle1 (Pattern, 362, 276, 371, 298)
- * Calculate the histogram of two-channel gray value images
- histo_2dim (Pattern, Red, Blue, Histo2Dim)
- threshold (Histo2Dim, Features, 1, 255)
- * Close a region with a circular structuring element
- closing_circle (Features, FeaturesClosed, 11.5)
- dev_set_draw ('fill')
- dev_set_part (0, 0, 511, 511)
- dev_display (Red)
- class_2dim_sup (Red, Blue, FeaturesClosed, RegionClass2Dim)
复制代码
|
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
|