halcon的region反选
By
admin
at 2018-06-05 • 0人收藏 • 4455人看过
complement (Regions, RegionComplement)
取补集
read_image (Image103338izmxvh44hzhbvkxx, 'C:/Users/yjw/Desktop/103338izmxvh44hzhbvkxx.bmp') threshold (Image103338izmxvh44hzhbvkxx, Regions, 0, 15) complement (Regions, RegionComplement) reduce_domain (Image103338izmxvh44hzhbvkxx, RegionComplement, ImageReduced) mean_image (ImageReduced, ImageMean, 150, 150) dyn_threshold (ImageReduced, ImageMean, RegionDynThresh, 35, 'dark') opening_circle (RegionDynThresh, RegionOpening, 8) closing_circle (RegionOpening, RegionClosing, 10) connection (RegionClosing, ConnectedRegions)
登录后方可回帖