图像处理之Hobject与Mat互转
Hobject是Halcon中的图像格式,Mat是OpenCV中的图像格式,以下是二者的转换using namespace cv;using namespace Halcon;//Hobject转MatMat 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 ·
2466 阅读 ·
2 评论