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

            wrapped_owner.setROI2(new OpenCVForUnity.CoreModule.Rect((int)roi2_x.Value, (int)roi2_y.Value, (int)roi2_width.Value, (int)roi2_height.Value));
        }
Пример #2
0
        void DoProcess()
        {
            if (!(owner.Value is OpenCVForUnityPlayMakerActions.StereoBM))
            {
                LogError("owner is not initialized. Add Action \"newStereoBM\".");
                return;
            }
            OpenCVForUnity.Calib3dModule.StereoBM wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.StereoBM, OpenCVForUnity.Calib3dModule.StereoBM>(owner);

            if (!(roi2.Value is OpenCVForUnityPlayMakerActions.Rect))
            {
                LogError("roi2 is not initialized. Add Action \"newRect\".");
                return;
            }
            OpenCVForUnity.CoreModule.Rect wrapped_roi2 = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.Rect, OpenCVForUnity.CoreModule.Rect>(roi2);

            wrapped_owner.setROI2(wrapped_roi2);
        }