|
C#和halcon18序列化操作
- HTuple hv_s = new HTuple();
- HTuple hv_a = new HTuple ();
- HOperatorSet.GenEmptyObj(out ho_Image);
- ho_Image.Dispose();
- HOperatorSet.ReadImage(out ho_Image, ...);
- HOperatorSet.SerializeObject(ho_Image, out hv_s);
- hv_a.Dispose();
- HTuple temp = new HTuple ();
- HOperatorSet.HandleToInteger(hv_s, out temp);
- long a=temp.L;
- HTuple _h = new HTuple();
- HOperatorSet.IntegerToHandle(a, out _h);
- HOperatorSet.DeserializeObject(out ho_Image, _h);
复制代码
|
|