/// <summary> /// Serialize a component training result. /// Instance represents: Handle of the training result. /// </summary> /// <returns>Handle of the serialized item.</returns> public HSerializedItem SerializeTrainingComponents() { IntPtr proc = HalconAPI.PreCall(1012); this.Store(proc, 0); HalconAPI.InitOCT(proc, 0); int err = HalconAPI.CallProcedure(proc); HSerializedItem hserializedItem; int procResult = HSerializedItem.LoadNew(proc, 0, err, out hserializedItem); HalconAPI.PostCall(proc, procResult); GC.KeepAlive((object)this); return(hserializedItem); }
/// <summary> /// Serialize a deep-learning-based classifier. /// Instance represents: Handle of the deep-learning-based classifier. /// </summary> /// <returns>Handle of the serialized item.</returns> public HSerializedItem SerializeDlClassifier() { IntPtr proc = HalconAPI.PreCall(2126); this.Store(proc, 0); HalconAPI.InitOCT(proc, 0); int err = HalconAPI.CallProcedure(proc); HSerializedItem hserializedItem; int procResult = HSerializedItem.LoadNew(proc, 0, err, out hserializedItem); HalconAPI.PostCall(proc, procResult); GC.KeepAlive((object)this); return(hserializedItem); }
/// <summary> /// Serialize a deformable surface_model. /// Instance represents: Handle of the deformable surface model. /// </summary> /// <returns>Handle of the serialized item.</returns> public HSerializedItem SerializeDeformableSurfaceModel() { IntPtr proc = HalconAPI.PreCall(1023); this.Store(proc, 0); HalconAPI.InitOCT(proc, 0); int err = HalconAPI.CallProcedure(proc); HSerializedItem hserializedItem; int procResult = HSerializedItem.LoadNew(proc, 0, err, out hserializedItem); HalconAPI.PostCall(proc, procResult); GC.KeepAlive((object)this); return(hserializedItem); }