摘要: 示意代码如下:1 GetImagePointer1(ho_Image, &hv_Pointer, &hv_Type, &hv_Width, &hv_Height);2 BYTE *p=(BYTE *)hv_Pointer[0].L();3 int height= (Hlong)hv_Height; ... 阅读全文
posted @ 2015-01-13 09:27 yangxin4894 阅读(1958) 评论(3) 推荐(0) 编辑
摘要: 在与halcon的混编中,有时会用到数据类型转换。例如在相机采集与后期的图像处理中,一般需要将采集到的BYTE类型数据转化成halcon中对应的Hobject类型方可处理。在halcon11中提供了一个函数及其例程:1 void NewImage(Hobject *new)2 {3 unsign... 阅读全文
posted @ 2015-01-08 10:17 yangxin4894 阅读(5801) 评论(0) 推荐(0) 编辑