Halcon 和 C# 联合编程 - 图像变量的相互转换(HObject、HImage、Bitmap)
2021-06-07 05:02
标签:catch out params return null key gen let word ///
/// /// 灰度图像 HObject -> HImage1
/// public HImage HObject2HImage1(HObject hObj)
{
HImage image = new HImage();
HTuple type, width, height, pointer;
HOperatorSet.GetImagePointer1(hObj, out pointer,out type, out width, out height);
image.GenImage1(type, width, height, pointer);
return image;
}
/// /// 彩色图像 HObject -> HImage3
/// public HImage HObject2HImage3(HObject hObj)
{
HImage image = new HImage();
HTuple type, width, height, pointerRed, pointerGreen, pointerBlue;
HOperatorSet.GetImagePointer3(hObj, out pointerRed, out pointerGreen, out pointerBlue,
out type, out width, out height);
image.GenImage3(type, width, height, pointerRed, pointerGreen, pointerBlue);
return image;
}
Halcon 和 C# 联合编程 - 图像变量的相互转换(HObject、HImage、Bitmap)
标签:catch out params return null key gen let word
原文地址:https://www.cnblogs.com/wwwbdabc/p/10756026.html
文章标题:Halcon 和 C# 联合编程 - 图像变量的相互转换(HObject、HImage、Bitmap)
文章链接:http://soscw.com/essay/91593.html