//ImageWidth:图像宽度
//ImageHeight:图像高度
//R_Outptr: 红色通道图像数据流
//G_Outptr: 红色通道图像数据流
//B_Outptr: 红色通道图像数据流
//返回值:HObject对象
public HObject ImagePtrToHobject(int ImageWidth, int ImageHeight, ref byte[] R_Outptr,ref byte[] G_Outptr,ref byte[] B_Outptr)
{
HObject Image;
unsafe
{
fixed (byte* ImageBufferPtr = ImageBuffer)
{
HOperatorSet.GenImage3(out Image, "byte", ImageWidth, ImageHeight, new IntPtr(R_Outptr), new IntPtr(G_Outptr), new IntPtr(B_Outptr));
return Image;
}
}
}
halcon指针生成Hobject图像
最新推荐文章于 2023-08-01 17:26:13 发布