1. 程式人生 > 其它 >Halcon把HObject轉成HImage

Halcon把HObject轉成HImage

技術標籤:c#

HTuple pointer, type, width, height;
//下面這個語句的PNG即為HObject型別
HOperatorSet.GetImagePointer1(PNG, out pointer, out type, out width, out height);
HImage image = new HImage(); 
//這樣HObject就轉成HImage了
image.GenImage1(type, width, height, pointer);