Class StereoMatcher

  • Direct Known Subclasses:
    StereoBM, StereoSGBM

    public class StereoMatcher
    extends Algorithm
    The base class for stereo correspondence algorithms.
    • Constructor Detail

      • StereoMatcher

        protected StereoMatcher​(long addr)
    • Method Detail

      • __fromPtr__

        public static StereoMatcher __fromPtr__​(long addr)
      • compute

        public void compute​(Mat left,
                            Mat right,
                            Mat disparity)
        Computes disparity map for the specified stereo pair
        Parameters:
        left - Left 8-bit single-channel image.
        right - Right image of the same size and the same type as the left one.
        disparity - Output disparity map. It has the same size as the input images. Some algorithms, like StereoBM or StereoSGBM compute 16-bit fixed-point disparity map (where each disparity value has 4 fractional bits), whereas other algorithms output 32-bit floating-point disparity map.
      • getMinDisparity

        public int getMinDisparity()
      • setMinDisparity

        public void setMinDisparity​(int minDisparity)
      • getNumDisparities

        public int getNumDisparities()
      • setNumDisparities

        public void setNumDisparities​(int numDisparities)
      • getBlockSize

        public int getBlockSize()
      • setBlockSize

        public void setBlockSize​(int blockSize)
      • getSpeckleWindowSize

        public int getSpeckleWindowSize()
      • setSpeckleWindowSize

        public void setSpeckleWindowSize​(int speckleWindowSize)
      • getSpeckleRange

        public int getSpeckleRange()
      • setSpeckleRange

        public void setSpeckleRange​(int speckleRange)
      • getDisp12MaxDiff

        public int getDisp12MaxDiff()
      • setDisp12MaxDiff

        public void setDisp12MaxDiff​(int disp12MaxDiff)