Halcon算子笔记

read_image (Image, 'fabrik')

读取资源,各种格式的图片都可以读取


  

threshold (Image, Region, 120, 255)
shape_trans (Region, RegionTrans, 'convex')

二值化后得到一些像素点 并用shape_trans转换为区域

  

reduce_domain (Image, RegionTrans, ImageReduced)

将原始图像根据给定的区域裁剪 并生成新的图像ImageReduced,图像大小并不会改变

  

猜你喜欢

转载自www.cnblogs.com/kita/p/11587929.html