Interface StereoDisparitySparse<Image extends ImageGray>

All Known Implementing Classes:
WrapDisparitySparseRectifiedBM

public interface StereoDisparitySparse<Image extends ImageGray>

Computes the disparity between two rectified images at specified points only.

NOTE: Unlike for dense images, the returned disparity is the actual disparity. No need to add minDisparity to the returned value.

See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Border around the image's x-axis which is not processed.
    int
    Border around the image's y-axis which is not processed.
    double
    The found disparity at the selected point
    Type of input images it can process
    int
    The maximum disparity which will be checked for.
    int
    The minimum disparity which will be checked for.
    boolean
    process(int x, int y)
    Calculates the disparity at the specified point.
    void
    setImages(Image imageLeft, Image imageRight)
    Sets the input images that are to be processed.
  • Method Details

    • setImages

      void setImages(Image imageLeft, Image imageRight)
      Sets the input images that are to be processed.
      Parameters:
      imageLeft - Input left rectified image.
      imageRight - Input right rectified image.
    • process

      boolean process(int x, int y)
      Calculates the disparity at the specified point. Returns true if a valid correspondence was found between the two images.
      Parameters:
      x - center of region x-axis
      y - center of region y-axis
      Returns:
      true if a correspondence was found
    • getDisparity

      double getDisparity()
      The found disparity at the selected point
      Returns:
      disparity.
    • getBorderX

      int getBorderX()
      Border around the image's x-axis which is not processed.
      Returns:
      border x-axis
    • getBorderY

      int getBorderY()
      Border around the image's y-axis which is not processed.
      Returns:
      border y-axis
    • getMinDisparity

      int getMinDisparity()
      The minimum disparity which will be checked for.
      Returns:
      Minimum disparity.
    • getMaxDisparity

      int getMaxDisparity()
      The maximum disparity which will be checked for.
      Returns:
      Maximum disparity.
    • getInputType

      Class<Image> getInputType()
      Type of input images it can process
      Returns:
      Input image type