文章目录
*读取图片
read_image(Image,'claudia')
*转换为灰度
rgb1_to_gray(Image,GrayImage)
阈值分割
区域连接
获取最衣服
*读取图片
read_image(Image,'claudia')
*转换为灰度
select_shape (Connection, SelectedRegions, 'area', 'and', 40963.3, 44724.8)
rgb1_to_gray(Image,GrayImage)
*阈值分割
threshold (GrayImage, Regions, 19, 59)
connection (Regions, Connection)
select_shape (SelectedRegions, SelectedRegions1, 'area', 'and', 40963.3, 44724.8)