void DoProcess() { OpenCVForUnity.CoreModule.Rect2d[] wrapped_a = new OpenCVForUnity.CoreModule.Rect2d[a.Length]; OpenCVForUnityPlayMakerActionsUtils.ConvertFsmArrayToArray <OpenCVForUnityPlayMakerActions.Rect2d, OpenCVForUnity.CoreModule.Rect2d>(a, wrapped_a); if (!(storeResult.Value is OpenCVForUnityPlayMakerActions.MatOfRect2d)) { storeResult.Value = new OpenCVForUnityPlayMakerActions.MatOfRect2d(); } ((OpenCVForUnityPlayMakerActions.MatOfRect2d)storeResult.Value).wrappedObject = new OpenCVForUnity.CoreModule.MatOfRect2d(wrapped_a); OpenCVForUnityPlayMakerActionsUtils.ConvertArrayToFsmArray <OpenCVForUnity.CoreModule.Rect2d, OpenCVForUnityPlayMakerActions.Rect2d>(wrapped_a, a); }
void DoProcess() { OpenCVForUnity.CoreModule.DMatch[] wrapped_ap = new OpenCVForUnity.CoreModule.DMatch[ap.Length]; OpenCVForUnityPlayMakerActionsUtils.ConvertFsmArrayToArray <OpenCVForUnityPlayMakerActions.DMatch, OpenCVForUnity.CoreModule.DMatch>(ap, wrapped_ap); if (!(storeResult.Value is OpenCVForUnityPlayMakerActions.MatOfDMatch)) { storeResult.Value = new OpenCVForUnityPlayMakerActions.MatOfDMatch(); } ((OpenCVForUnityPlayMakerActions.MatOfDMatch)storeResult.Value).wrappedObject = new OpenCVForUnity.CoreModule.MatOfDMatch(wrapped_ap); OpenCVForUnityPlayMakerActionsUtils.ConvertArrayToFsmArray <OpenCVForUnity.CoreModule.DMatch, OpenCVForUnityPlayMakerActions.DMatch>(wrapped_ap, ap); }
void DoProcess() { if (!(owner.Value is OpenCVForUnityPlayMakerActions.MatOfKeyPoint)) { LogError("owner is not initialized. Add Action \"newMatOfKeyPoint\"."); return; } OpenCVForUnity.CoreModule.MatOfKeyPoint wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.MatOfKeyPoint, OpenCVForUnity.CoreModule.MatOfKeyPoint>(owner); OpenCVForUnity.CoreModule.KeyPoint[] wrapped_a = new OpenCVForUnity.CoreModule.KeyPoint[a.Length]; OpenCVForUnityPlayMakerActionsUtils.ConvertFsmArrayToArray <OpenCVForUnityPlayMakerActions.KeyPoint, OpenCVForUnity.CoreModule.KeyPoint>(a, wrapped_a); wrapped_owner.fromArray(wrapped_a); OpenCVForUnityPlayMakerActionsUtils.ConvertArrayToFsmArray <OpenCVForUnity.CoreModule.KeyPoint, OpenCVForUnityPlayMakerActions.KeyPoint>(wrapped_a, a); }
void DoProcess() { if (!(owner.Value is OpenCVForUnityPlayMakerActions.RotatedRect)) { LogError("owner is not initialized. Add Action \"newRotatedRect\"."); return; } OpenCVForUnity.CoreModule.RotatedRect wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.RotatedRect, OpenCVForUnity.CoreModule.RotatedRect>(owner); OpenCVForUnity.CoreModule.Point[] wrapped_pt = new OpenCVForUnity.CoreModule.Point[pt.Length]; OpenCVForUnityPlayMakerActionsUtils.ConvertFsmArrayToArray <OpenCVForUnityPlayMakerActions.Point, OpenCVForUnity.CoreModule.Point>(pt, wrapped_pt); wrapped_owner.points(wrapped_pt); OpenCVForUnityPlayMakerActionsUtils.ConvertArrayToFsmArray <OpenCVForUnity.CoreModule.Point, OpenCVForUnityPlayMakerActions.Point>(wrapped_pt, pt); }
void DoProcess() { if (!(owner.Value is OpenCVForUnityPlayMakerActions.Mat)) { LogError("owner is not initialized. Add Action \"newMat\"."); return; } OpenCVForUnity.CoreModule.Mat wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.Mat, OpenCVForUnity.CoreModule.Mat>(owner); OpenCVForUnity.CoreModule.Range[] wrapped_ranges = new OpenCVForUnity.CoreModule.Range[ranges.Length]; OpenCVForUnityPlayMakerActionsUtils.ConvertFsmArrayToArray <OpenCVForUnityPlayMakerActions.Range, OpenCVForUnity.CoreModule.Range>(ranges, wrapped_ranges); if (!(storeResult.Value is OpenCVForUnityPlayMakerActions.Mat)) { storeResult.Value = new OpenCVForUnityPlayMakerActions.Mat(); } ((OpenCVForUnityPlayMakerActions.Mat)storeResult.Value).wrappedObject = wrapped_owner.submat(wrapped_ranges); OpenCVForUnityPlayMakerActionsUtils.ConvertArrayToFsmArray <OpenCVForUnity.CoreModule.Range, OpenCVForUnityPlayMakerActions.Range>(wrapped_ranges, ranges); }