Class StereoBM


  • public class StereoBM
    extends StereoMatcher
    Class for computing stereo correspondence using the block matching algorithm, introduced and contributed to OpenCV by K. Konolige.
    • Constructor Detail

      • StereoBM

        protected StereoBM​(long addr)
    • Method Detail

      • create

        public static StereoBM create​(int numDisparities,
                                      int blockSize)
        Creates StereoBM object
        Parameters:
        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.
        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.
        Returns:
        automatically generated
      • create

        public static StereoBM create​(int numDisparities)
        Creates StereoBM object
        Parameters:
        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.
        Returns:
        automatically generated
      • create

        public static StereoBM create()
        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.
        Returns:
        automatically generated