Exemple #1
0
        //javadoc: StereoBM::create()
        public static StereoBM create()
        {
#if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
            StereoBM retVal = StereoBM.__fromPtr__(calib3d_StereoBM_create_12());

            return(retVal);
#else
            return(null);
#endif
        }
Exemple #2
0
        //
        // C++: static Ptr_StereoBM cv::StereoBM::create(int numDisparities = 0, int blockSize = 21)
        //

        //javadoc: StereoBM::create(numDisparities, blockSize)
        public static StereoBM create(int numDisparities, int blockSize)
        {
#if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
            StereoBM retVal = StereoBM.__fromPtr__(calib3d_StereoBM_create_10(numDisparities, blockSize));

            return(retVal);
#else
            return(null);
#endif
        }
        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.setPreFilterCap(preFilterCap.Value);
        }
        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));
        }
        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);

            storeResult.Value = wrapped_owner.getUniquenessRatio();
        }
Exemple #6
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 (!(storeResult.Value is OpenCVForUnityPlayMakerActions.Rect))
            {
                storeResult.Value = new OpenCVForUnityPlayMakerActions.Rect();
            }
            ((OpenCVForUnityPlayMakerActions.Rect)storeResult.Value).wrappedObject = wrapped_owner.getROI1();
        }
Exemple #7
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);
        }
Exemple #8
0
 /**
  * Creates StereoBM object
  *
  *     param numDisparities the disparity search range. For each pixel algorithm will find the best
  *     disparity from 0 (default minimum disparity) to numDisparities. The search range can then be
  *     shifted by changing the minimum disparity.
  *     (as the block is centered at the current pixel). Larger block size implies smoother, though less
  *     accurate disparity map. Smaller block size gives more detailed disparity map, but there is higher
  *     chance for algorithm to find a wrong correspondence.
  *
  *     The function create StereoBM object. You can then call StereoBM::compute() to compute disparity for
  *     a specific stereo pair.
  * return automatically generated
  */
 public static StereoBM create(int numDisparities)
 {
     return(StereoBM.__fromPtr__(calib3d_StereoBM_create_11(numDisparities)));
 }
Exemple #9
0
        //
        // C++: static Ptr_StereoBM cv::StereoBM::create(int numDisparities = 0, int blockSize = 21)
        //

        /**
         * Creates StereoBM object
         *
         *     param numDisparities the disparity search range. For each pixel algorithm will find the best
         *     disparity from 0 (default minimum disparity) to numDisparities. The search range can then be
         *     shifted by changing the minimum disparity.
         *     param blockSize the linear size of the blocks compared by the algorithm. The size should be odd
         *     (as the block is centered at the current pixel). Larger block size implies smoother, though less
         *     accurate disparity map. Smaller block size gives more detailed disparity map, but there is higher
         *     chance for algorithm to find a wrong correspondence.
         *
         *     The function create StereoBM object. You can then call StereoBM::compute() to compute disparity for
         *     a specific stereo pair.
         * return automatically generated
         */
        public static StereoBM create(int numDisparities, int blockSize)
        {
            return(StereoBM.__fromPtr__(calib3d_StereoBM_create_10(numDisparities, blockSize)));
        }
Exemple #10
0
 /**
  * Creates StereoBM object
  *
  *     disparity from 0 (default minimum disparity) to numDisparities. The search range can then be
  *     shifted by changing the minimum disparity.
  *     (as the block is centered at the current pixel). Larger block size implies smoother, though less
  *     accurate disparity map. Smaller block size gives more detailed disparity map, but there is higher
  *     chance for algorithm to find a wrong correspondence.
  *
  *     The function create StereoBM object. You can then call StereoBM::compute() to compute disparity for
  *     a specific stereo pair.
  * return automatically generated
  */
 public static StereoBM create()
 {
     return(StereoBM.__fromPtr__(calib3d_StereoBM_create_12()));
 }
 public StereoBM(OpenCVForUnity.Calib3dModule.StereoBM nativeObj) : base(nativeObj)
 {
 }