Пример #1
0
        void DoProcess()
        {
            if (!(owner.Value is OpenCVForUnityPlayMakerActions.WhiteBalancer))
            {
                LogError("owner is not initialized. Add Action \"newWhiteBalancer\".");
                return;
            }
            OpenCVForUnity.XphotoModule.WhiteBalancer wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.WhiteBalancer, OpenCVForUnity.XphotoModule.WhiteBalancer>(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.balanceWhite(wrapped_src, wrapped_dst);
        }
Пример #2
0
 public WhiteBalancer(OpenCVForUnity.XphotoModule.WhiteBalancer nativeObj) : base(nativeObj)
 {
 }