加载中…
个人资料
  • 博客等级:
  • 博客积分:
  • 博客访问:
  • 关注人气:
  • 获赠金笔:0支
  • 赠出金笔:0支
  • 荣誉徽章:
正文 字体大小:

HALCON连接多摄像头以及图像合并

(2012-12-07 19:57:46)
标签:

halcon

机器视觉

多摄像头

it

分类: G.工业技术

这个实例实现了2两个功能;

1. 利用halcon实现对多摄像头的连接并获取图像;
2 .实现多图像的合并
有兴趣的朋友可以研究下。


close_all_framegrabbers ()
dev_close_window ()
open_framegrabber ('DirectShow', 1, 1, 0, 0, 0, 0, 'default', -1, 'gray', -1, 'default', 'default', '0', -1, -1, AcqHandle1)
grab_image (ImageLeft, AcqHandle1)
open_framegrabber ('DirectShow', 1, 1, 0, 0, 0, 0, 'default', -1, 'gray', -1, 'default', 'default', '1', -1, -1, AcqHandle2)
grab_image (ImageRight, AcqHandle2)
concat_obj (ImageLeft, ImageRight, ImageConcat)
tile_images (ImageConcat, TiledImage, 2, 'vertical')
get_image_pointer1 (ImageLeft, PointerLeft, TypeLeft, WidthLeft, HeightLeft)
get_image_pointer1 (ImageRight, PointerRight, TypeRight, WidthRight, HeightRight)
get_image_pointer1 (TiledImage, PointerTile, TypeTile, WidthTile, HeightTile)
dev_open_window (0, 0, WidthRight+WidthLeft, HeightRight, 'black', WindowHandleTile)

 

原文地址:http://www.halconbbs.com/read.php?tid-155.html

0

阅读 收藏 喜欢 打印举报/Report
  

新浪BLOG意见反馈留言板 欢迎批评指正

新浪简介 | About Sina | 广告服务 | 联系我们 | 招聘信息 | 网站律师 | SINA English | 产品答疑

新浪公司 版权所有