Class ConfigDisparitySGM

All Implemented Interfaces:
Configuration, Serializable

public class ConfigDisparitySGM
extends Object
implements Configuration
Configuration for Semi Global Matching
See Also:
Serialized Form
  • Field Details

    • disparityMin

      public int disparityMin
      Minimum disparity that it will check. Must be ≥ 0 and < maxDisparity
    • disparityRange

      public int disparityRange
      Number of disparity values considered. Must be > 0. Maximum number is 255 for 8-bit disparity images.
    • maxError

      public int maxError
      Maximum allowed error for a single pixel. Set to a value less than 0 to disable. Has a range from 0 to SgmDisparityCost.MAX_COST
    • validateRtoL

      public int validateRtoL
      Tolerance for how difference the left to right associated values can be. Try 1. Disable with -1
    • texture

      public double texture
      Tolerance for how similar optimal region is to other region. Closer to zero is more tolerant. Try 0.1 for SAD or 0.7 for NCC. Disable with a value ≤ 0
    • subpixel

      public boolean subpixel
      If subpixel should be used to find disparity or not. If on then output disparity image needs to me GrayF32. If false then GrayU8.
    • penaltySmallChange

      public int penaltySmallChange
      The penalty applied to a small change in disparity. 0 ≤ x ≤ SgmDisparityCost.MAX_COST and must be less than penaltyLargeChange.
    • penaltyLargeChange

      public int penaltyLargeChange
      The penalty applied to a large change in disparity. 0 ≤ x ≤ SgmDisparityCost.MAX_COST
    • paths

      Number of paths it should consider. 4 or 8 is most common. More paths slower it will run.
    • errorType

      public DisparitySgmError errorType
      Which error model should it use
    • useBlocks

      public boolean useBlocks
      If true it will use block variants of errors.
    • configCensus

      public ConfigDisparityError.Census configCensus
      Used if error type is Census
    • configHMI

      public ConfigDisparityError.HMI configHMI
      Used if error type is HMI
    • configBlockMatch

      The error can be computed using code taken from block matching
    • border

      public BorderType border
      Specifies how the image border is handled. In general you want to avoid an approach which would bias the error to prefer a region with lots of pixels outside the image border.
  • Constructor Details

    • ConfigDisparitySGM

      public ConfigDisparitySGM()
  • Method Details