void DoProcess() { if (!(owner.Value is OpenCVForUnityPlayMakerActions.StructuredLightPattern)) { LogError("owner is not initialized. Add Action \"newStructuredLightPattern\"."); return; } OpenCVForUnity.Structured_lightModule.StructuredLightPattern wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.StructuredLightPattern, OpenCVForUnity.Structured_lightModule.StructuredLightPattern>(owner); List <OpenCVForUnity.CoreModule.Mat> wrapped_patternImages = new List <OpenCVForUnity.CoreModule.Mat>(); OpenCVForUnityPlayMakerActionsUtils.ConvertFsmArrayToList <OpenCVForUnityPlayMakerActions.Mat, OpenCVForUnity.CoreModule.Mat>(patternImages, wrapped_patternImages); storeResult.Value = wrapped_owner.generate(wrapped_patternImages); OpenCVForUnityPlayMakerActionsUtils.ConvertListToFsmArray <OpenCVForUnity.CoreModule.Mat, OpenCVForUnityPlayMakerActions.Mat>(wrapped_patternImages, patternImages); Fsm.Event(storeResult.Value ? trueEvent : falseEvent); }
public StructuredLightPattern(OpenCVForUnity.Structured_lightModule.StructuredLightPattern nativeObj) : base(nativeObj) { }