图像处理之Hobject与Mat互转
Hobject是Halcon中的图像格式,Mat是OpenCV中的图像格式,以下是二者的转换
using namespace cv;
using namespace Halcon;
//Hobject转Mat
Mat Hobject2Mat(Hobject Hobj)
{
HTuple htCh = HTuple();
char* cType="";
Mat Image;
convert_image_type(Hobj, &Hobj, "byte");
count_channels(Ho
原创
2021-03-30 20:29:18 ·
2714 阅读 ·
2 评论