void DoProcess() { if (!(owner.Value is OpenCVForUnityPlayMakerActions.SinusoidalPattern)) { LogError("owner is not initialized. Add Action \"newSinusoidalPattern\"."); return; } OpenCVForUnity.Structured_lightModule.SinusoidalPattern wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.SinusoidalPattern, OpenCVForUnity.Structured_lightModule.SinusoidalPattern>(owner); if (!(wrappedPhaseMap.Value is OpenCVForUnityPlayMakerActions.Mat)) { LogError("wrappedPhaseMap is not initialized. Add Action \"newMat\"."); return; } OpenCVForUnity.CoreModule.Mat wrapped_wrappedPhaseMap = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.Mat, OpenCVForUnity.CoreModule.Mat>(wrappedPhaseMap); if (!(unwrappedPhaseMap.Value is OpenCVForUnityPlayMakerActions.Mat)) { LogError("unwrappedPhaseMap is not initialized. Add Action \"newMat\"."); return; } OpenCVForUnity.CoreModule.Mat wrapped_unwrappedPhaseMap = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.Mat, OpenCVForUnity.CoreModule.Mat>(unwrappedPhaseMap); if (!(shadowMask.Value is OpenCVForUnityPlayMakerActions.Mat)) { LogError("shadowMask is not initialized. Add Action \"newMat\"."); return; } OpenCVForUnity.CoreModule.Mat wrapped_shadowMask = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.Mat, OpenCVForUnity.CoreModule.Mat>(shadowMask); wrapped_owner.unwrapPhaseMap(wrapped_wrappedPhaseMap, wrapped_unwrappedPhaseMap, new OpenCVForUnity.CoreModule.Size((double)camSize_width.Value, (double)camSize_height.Value), wrapped_shadowMask); }
void DoProcess() { if (!(owner.Value is OpenCVForUnityPlayMakerActions.SinusoidalPattern)) { LogError("owner is not initialized. Add Action \"newSinusoidalPattern\"."); return; } OpenCVForUnity.Structured_lightModule.SinusoidalPattern wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.SinusoidalPattern, OpenCVForUnity.Structured_lightModule.SinusoidalPattern>(owner); if (!(wrappedPhaseMap.Value is OpenCVForUnityPlayMakerActions.Mat)) { LogError("wrappedPhaseMap is not initialized. Add Action \"newMat\"."); return; } OpenCVForUnity.CoreModule.Mat wrapped_wrappedPhaseMap = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.Mat, OpenCVForUnity.CoreModule.Mat>(wrappedPhaseMap); if (!(unwrappedPhaseMap.Value is OpenCVForUnityPlayMakerActions.Mat)) { LogError("unwrappedPhaseMap is not initialized. Add Action \"newMat\"."); return; } OpenCVForUnity.CoreModule.Mat wrapped_unwrappedPhaseMap = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.Mat, OpenCVForUnity.CoreModule.Mat>(unwrappedPhaseMap); if (!(camSize.Value is OpenCVForUnityPlayMakerActions.Size)) { LogError("camSize is not initialized. Add Action \"newSize\"."); return; } OpenCVForUnity.CoreModule.Size wrapped_camSize = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.Size, OpenCVForUnity.CoreModule.Size>(camSize); wrapped_owner.unwrapPhaseMap(wrapped_wrappedPhaseMap, wrapped_unwrappedPhaseMap, wrapped_camSize); }