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

            if (!(src.Value is OpenCVForUnityPlayMakerActions.Mat))
            {
                LogError("src is not initialized. Add Action \"newMat\".");
                return;
            }
            OpenCVForUnity.CoreModule.Mat wrapped_src = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.Mat, OpenCVForUnity.CoreModule.Mat>(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);

            wrapped_owner.process(wrapped_src, wrapped_dst);
        }
        void DoProcess()
        {
            if (!(owner.Value is OpenCVForUnityPlayMakerActions.Tonemap))
            {
                LogError("owner is not initialized. Add Action \"newTonemap\".");
                return;
            }
            OpenCVForUnity.PhotoModule.Tonemap wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.Tonemap, OpenCVForUnity.PhotoModule.Tonemap>(owner);

            storeResult.Value = wrapped_owner.getGamma();
        }
Esempio n. 3
0
 public Tonemap(OpenCVForUnity.PhotoModule.Tonemap nativeObj) : base(nativeObj)
 {
 }