halcon-disp_xld.hdev

* Display an XLD object.
* 
read_image (Image, 'mreut')
dev_close_window ()
dev_open_window (0, 0, 512, 512, 'black', WindowID)
* Extract edges subpixel precisely using Deriche filter
edges_sub_pix (Image, Edges, 'mderiche2', 0.7, 10, 20)

edges_image (Image, ImaAmp, ImaDir, 'mderiche2', 0.7, 'nms', 10, 20)
threshold (ImaAmp, Region, 1, 255)
gen_contours_skeleton_xld (Region, Contours, 1, 'filter')

dev_clear_window ()
* Measure the runtime to dispay xlds
count_seconds (Seconds1)
disp_xld (Edges, WindowID)
count_seconds (Seconds2)
Time1 := Seconds2-Seconds1

dev_clear_window ()
count_seconds (Seconds1)
disp_xld (Contours, WindowID)
count_seconds (Seconds2)
Time2 := Seconds2-Seconds1


 基本步骤:
1.读取灰度图像
2.edges_sub_pix,取得亚像素精度边缘


1.读取灰度图像
2.edges_image,取得边缘
3.threshold,变成二值图像
4.gen_contours_skeleton_xld,产生亚像素精度边缘

转载于:https://www.cnblogs.com/-song/archive/2012/09/06/3331854.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值