Exemple #1
0
        void DoProcess()
        {
            if (!(owner.Value is OpenCVForUnityPlayMakerActions.MergeMertens))
            {
                LogError("owner is not initialized. Add Action \"newMergeMertens\".");
                return;
            }
            OpenCVForUnity.PhotoModule.MergeMertens wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.MergeMertens, OpenCVForUnity.PhotoModule.MergeMertens>(owner);

            storeResult.Value = wrapped_owner.getSaturationWeight();
        }
Exemple #2
0
        void DoProcess()
        {
            if (!(owner.Value is OpenCVForUnityPlayMakerActions.MergeMertens))
            {
                LogError("owner is not initialized. Add Action \"newMergeMertens\".");
                return;
            }
            OpenCVForUnity.PhotoModule.MergeMertens wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.MergeMertens, OpenCVForUnity.PhotoModule.MergeMertens>(owner);

            wrapped_owner.setExposureWeight(exposure_weight.Value);
        }
        void DoProcess()
        {
            if (!(owner.Value is OpenCVForUnityPlayMakerActions.MergeMertens))
            {
                LogError("owner is not initialized. Add Action \"newMergeMertens\".");
                return;
            }
            OpenCVForUnity.PhotoModule.MergeMertens wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.MergeMertens, OpenCVForUnity.PhotoModule.MergeMertens>(owner);

            List <OpenCVForUnity.CoreModule.Mat> wrapped_src = new List <OpenCVForUnity.CoreModule.Mat>();

            OpenCVForUnityPlayMakerActionsUtils.ConvertFsmArrayToList <OpenCVForUnityPlayMakerActions.Mat, OpenCVForUnity.CoreModule.Mat>(src, wrapped_src);

            if (!(dst.Value is OpenCVForUnityPlayMakerActions.Mat))
            {
                LogError("dst is not initialized. Add Action \"newMat\".");
                return;
            }
            OpenCVForUnity.CoreModule.Mat wrapped_dst = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.Mat, OpenCVForUnity.CoreModule.Mat>(dst);

            if (!(times.Value is OpenCVForUnityPlayMakerActions.Mat))
            {
                LogError("times is not initialized. Add Action \"newMat\".");
                return;
            }
            OpenCVForUnity.CoreModule.Mat wrapped_times = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.Mat, OpenCVForUnity.CoreModule.Mat>(times);

            if (!(response.Value is OpenCVForUnityPlayMakerActions.Mat))
            {
                LogError("response is not initialized. Add Action \"newMat\".");
                return;
            }
            OpenCVForUnity.CoreModule.Mat wrapped_response = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.Mat, OpenCVForUnity.CoreModule.Mat>(response);

            wrapped_owner.process(wrapped_src, wrapped_dst, wrapped_times, wrapped_response);

            OpenCVForUnityPlayMakerActionsUtils.ConvertListToFsmArray <OpenCVForUnity.CoreModule.Mat, OpenCVForUnityPlayMakerActions.Mat>(wrapped_src, src);
        }
 public MergeMertens(OpenCVForUnity.PhotoModule.MergeMertens nativeObj) : base(nativeObj)
 {
 }