void DoProcess() { if (!(owner.Value is OpenCVForUnityPlayMakerActions.Scalar)) { LogError("owner is not initialized. Add Action \"newScalar\"."); return; } OpenCVForUnity.CoreModule.Scalar wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.Scalar, OpenCVForUnity.CoreModule.Scalar>(owner); if (!(it.Value is OpenCVForUnityPlayMakerActions.Scalar)) { LogError("it is not initialized. Add Action \"newScalar\"."); return; } OpenCVForUnity.CoreModule.Scalar wrapped_it = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.Scalar, OpenCVForUnity.CoreModule.Scalar>(it); if (!(storeResult.Value is OpenCVForUnityPlayMakerActions.Scalar)) { storeResult.Value = new OpenCVForUnityPlayMakerActions.Scalar(); } ((OpenCVForUnityPlayMakerActions.Scalar)storeResult.Value).wrappedObject = wrapped_owner.mul(wrapped_it); }
void DoProcess() { if (!(owner.Value is OpenCVForUnityPlayMakerActions.Scalar)) { LogError("owner is not initialized. Add Action \"newScalar\"."); return; } OpenCVForUnity.CoreModule.Scalar wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.Scalar, OpenCVForUnity.CoreModule.Scalar>(owner); if (!(storeResult.Value is OpenCVForUnityPlayMakerActions.Scalar)) { storeResult.Value = new OpenCVForUnityPlayMakerActions.Scalar(); } ((OpenCVForUnityPlayMakerActions.Scalar)storeResult.Value).wrappedObject = wrapped_owner.mul(new OpenCVForUnity.CoreModule.Scalar((double)it_v0.Value, (double)it_v1.Value, (double)it_v2.Value, (double)it_v3.Value), (float)scale.Value); }