예제 #1
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);

            wrapped_owner.setROI1(new OpenCVForUnity.CoreModule.Rect((int)roi1_x.Value, (int)roi1_y.Value, (int)roi1_width.Value, (int)roi1_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 (!(roi1.Value is OpenCVForUnityPlayMakerActions.Rect))
            {
                LogError("roi1 is not initialized. Add Action \"newRect\".");
                return;
            }
            OpenCVForUnity.CoreModule.Rect wrapped_roi1 = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.Rect, OpenCVForUnity.CoreModule.Rect>(roi1);

            wrapped_owner.setROI1(wrapped_roi1);
        }