void DoProcess() { if (!(owner.Value is OpenCVForUnityPlayMakerActions.MatOfFloat4)) { LogError("owner is not initialized. Add Action \"newMatOfFloat4\"."); return; } OpenCVForUnity.CoreModule.MatOfFloat4 wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.MatOfFloat4, OpenCVForUnity.CoreModule.MatOfFloat4>(owner); wrapped_owner.alloc(elemNumber.Value); }
void DoProcess() { if (!(owner.Value is OpenCVForUnityPlayMakerActions.Subdiv2D)) { LogError("owner is not initialized. Add Action \"newSubdiv2D\"."); return; } OpenCVForUnity.ImgprocModule.Subdiv2D wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.Subdiv2D, OpenCVForUnity.ImgprocModule.Subdiv2D>(owner); if (!(edgeList.Value is OpenCVForUnityPlayMakerActions.MatOfFloat4)) { LogError("edgeList is not initialized. Add Action \"newMatOfFloat4\"."); return; } OpenCVForUnity.CoreModule.MatOfFloat4 wrapped_edgeList = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.MatOfFloat4, OpenCVForUnity.CoreModule.MatOfFloat4>(edgeList); wrapped_owner.getEdgeList(wrapped_edgeList); }
void DoProcess() { if (!(owner.Value is OpenCVForUnityPlayMakerActions.MatOfFloat4)) { LogError("owner is not initialized. Add Action \"newMatOfFloat4\"."); return; } OpenCVForUnity.CoreModule.MatOfFloat4 wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.MatOfFloat4, OpenCVForUnity.CoreModule.MatOfFloat4>(owner); float[] float_lb = lb.floatValues; List <float> wrapped_lb = new List <float>(float_lb); wrapped_owner.fromList(wrapped_lb); for (int i = 0; i < wrapped_lb.Count; i++) { lb.Set(i, (float)wrapped_lb[i]); } lb.SaveChanges(); }
void DoProcess() { if (!(owner.Value is OpenCVForUnityPlayMakerActions.MatOfFloat4)) { LogError("owner is not initialized. Add Action \"newMatOfFloat4\"."); return; } OpenCVForUnity.CoreModule.MatOfFloat4 wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.MatOfFloat4, OpenCVForUnity.CoreModule.MatOfFloat4>(owner); List <float> wrapped_storeResult = wrapped_owner.toList(); if (!storeResult.IsNone) { if (storeResult.Length != wrapped_storeResult.Count) { storeResult.Resize(wrapped_storeResult.Count); } for (int i = 0; i < wrapped_storeResult.Count; i++) { storeResult.Set(i, (float)wrapped_storeResult[i]); } storeResult.SaveChanges(); } }
void DoProcess() { if (!(owner.Value is OpenCVForUnityPlayMakerActions.MatOfFloat4)) { LogError("owner is not initialized. Add Action \"newMatOfFloat4\"."); return; } OpenCVForUnity.CoreModule.MatOfFloat4 wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.MatOfFloat4, OpenCVForUnity.CoreModule.MatOfFloat4>(owner); float[] float_a = a.floatValues; float[] casted_a = new float[float_a.Length]; for (int i = 0; i < casted_a.Length; i++) { casted_a[i] = (float)float_a[i]; } wrapped_owner.fromArray(casted_a); for (int i = 0; i < casted_a.Length; i++) { a.Set(i, (float)casted_a[i]); } a.SaveChanges(); }
public MatOfFloat4(OpenCVForUnity.CoreModule.MatOfFloat4 nativeObj) : base(nativeObj) { }