• / 6
  • 下载费用:10 金币  

Haclon学习程序.doc

关 键 词:
Haclon学习程序.doc
资源描述:
*读取图像read_image (Image2, 'C:/2.png')read_image (Testnum, 'C:/testnum.bmp')*显示图像dev_display(Image2)*保存图像write_image (Image2, 'png', 0 , 'C:/Save.png')*获得图像长宽get_image_size(Image2,SourceWith,SourceHeigh)*获取图像通道数count_channels (Image2, Channels)*获取图像数据类型get_image_type(Image2,SourceType)*获得图像指针get_image_pointer1 (Image2, Pointer, SourceType, SourceWith, SourceHeigh)*利用数据指针构造图像gen_image1 (NewImage, 'byte', SourceWith, SourceHeigh, Pointer)*计算图像均值和方差intensity (NewImage, NewImage, Mean, Deviation)*图像统计直方图gray_histo (NewImage, NewImage, AbsoluteHisto, RelativeHisto)*三通道图像分离成三个单通道图像decompose3 (Image2, ImageR, ImageG, ImageB)*颜色空间转换trans_from_rgb (ImageR, ImageG, ImageB, ImageResult1, ImageResult2, ImageResult3, 'hsv')*Region(矩形,圆,椭圆 )gen_rectangle1 (Rectangle, 30, 20, 100, 200)gen_circle (Circle, 200, 200, 100.5)gen_ellipse (Ellipse, 200, 200, 0, 100, 60)*鼠标绘制多边形draw_region (Region, 3600)read_image (Clip, 'C:/Program Files/MVTec/HALCON-10.0/images/clip.png')threshold (Clip, Region, 0, 128)*查找连通域connection(Region,ConnectedRegions)*选着回形针区域select_shape (ConnectedRegions, SelectedRegions, 'area', 'and', 5000.99, 8367)threshold (ImageResult2, Regions, 183, 255)*Region 膨胀操作dilation_circle (Regions, RegionDilation, 3.5)*Region 腐蚀操作erosion_circle (RegionDilation, RegionErosion, 3.5)*Region 开运算opening_circle (RegionErosion, RegionOpening, 3.5)*Region 闭运算closing_circle (RegionOpening, RegionClosing, 3.5)*Region 补运算complement (RegionClosing, RegionComplement)draw_region (union2, 3600)*Region 差运算difference (RegionClosing, union2, RegionDifference)*Region 交运算intersection (RegionClosing, union2, RegionIntersection)*Region 并运算union2 (RegionClosing, union2, RegionUnion)read_image (Image4, 'C:/4.png')*获得 XLDthreshold_sub_pix (Image4, Border, 128)*XLD 转化为 Regiongen_region_contour_xld (Border, Region1, 'filled')threshold (Image4, Region, 0, 64)*Region 转化为 XLDgen_contour_region_xld (Region, Contours, 'border')read_image (Image, 'C:/5.png')dev_close_window ()get_image_size (Image, Width, Height)
展开阅读全文
  微传网所有资源均是用户自行上传分享,仅供网友学习交流,未经上传用户书面授权,请勿作他用。
0条评论

还可以输入200字符

暂无评论,赶快抢占沙发吧。

关于本文
本文标题:Haclon学习程序.doc
链接地址:https://www.weizhuannet.com/p-9828536.html
微传网是一个办公文档、学习资料下载的在线文档分享平台!

微传网博客

网站资源均来自网络,如有侵权,请联系客服删除!

 网站客服QQ:80879498  会员QQ群:727456886

copyright@ 2018-2028 微传网络工作室版权所有

     经营许可证编号:冀ICP备18006529号-1 ,公安局备案号:13028102000124

收起
展开