一、啰嗦点
read_image (Image1, 'C:/Users/firecat/Desktop/20191008094028.jpg')
rgb1_to_gray (Image1, GrayImage)
threshold (GrayImage, Regions, 100, 255)
connection (Regions, ConnectedRegions)
select_shape (ConnectedRegions, SelectedRegions, 'area', 'and', 0, 199999)
area_center (SelectedRegions, Area, Row, Column)
stop()
二、简单点
read_image (ModelImage, 'gasket/gasket_model')
area_center (ModelImage, Area, Row, Column)
基于HDevelop的形状匹配算法参数的优化研究