Пример #1
0
        void DoProcess()
        {
            if (!(owner.Value is OpenCVForUnityPlayMakerActions.AlignExposures))
            {
                LogError("owner is not initialized. Add Action \"newAlignExposures\".");
                return;
            }
            OpenCVForUnity.PhotoModule.AlignExposures wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.AlignExposures, OpenCVForUnity.PhotoModule.AlignExposures>(owner);

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

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

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

            OpenCVForUnityPlayMakerActionsUtils.ConvertFsmArrayToList <OpenCVForUnityPlayMakerActions.Mat, OpenCVForUnity.CoreModule.Mat>(dst, wrapped_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);

            OpenCVForUnityPlayMakerActionsUtils.ConvertListToFsmArray <OpenCVForUnity.CoreModule.Mat, OpenCVForUnityPlayMakerActions.Mat>(wrapped_dst, dst);
        }
Пример #2
0
 public AlignExposures(OpenCVForUnity.PhotoModule.AlignExposures nativeObj) : base(nativeObj)
 {
 }