Package boofcv.factory.disparity
Class ConfigDisparityBM
java.lang.Object
boofcv.factory.disparity.ConfigDisparityBM
- All Implemented Interfaces:
Configuration
,Serializable
- Direct Known Subclasses:
ConfigDisparityBMBest5
public class ConfigDisparityBM extends Object implements Configuration
Configuration for the basic block matching stereo algorithm that employs a greedy winner takes all strategy.
- See Also:
DisparityBlockMatch
, Serialized Form
-
Field Summary
Fields Modifier and Type Field Description BorderType
border
Specifies how the image border is handled.ConfigDisparityError.Census
configCensus
Used if error type is CensusConfigDisparityError.NCC
configNCC
Used if error type is NCCint
disparityMin
Minimum disparity that it will check.int
disparityRange
Number of disparity values considered.DisparityError
errorType
How the error is computed for each blockdouble
maxPerPixelError
Maximum allowed error in a region per pixel.int
regionRadiusX
Radius of the rectangular region along x-axis.int
regionRadiusY
Radius of the rectangular region along y-axis.boolean
subpixel
If subpixel should be used to find disparity or not.double
texture
Tolerance for how similar optimal region is to other region.int
validateRtoL
Tolerance for how difference the left to right associated values can be. -
Constructor Summary
Constructors Constructor Description ConfigDisparityBM()
-
Method Summary
Modifier and Type Method Description void
checkValidity()
Checks to see if the configuration is valid.ConfigDisparityBM
setTo(ConfigDisparityBM src)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface boofcv.struct.Configuration
serializeActiveFields, serializeInitialize
-
Field Details
-
disparityMin
public int disparityMinMinimum disparity that it will check. Must be ≥ 0 and < maxDisparity -
disparityRange
public int disparityRangeNumber of disparity values considered. Must be > 0 -
regionRadiusX
public int regionRadiusXRadius of the rectangular region along x-axis. -
regionRadiusY
public int regionRadiusYRadius of the rectangular region along y-axis. -
maxPerPixelError
public double maxPerPixelErrorMaximum allowed error in a region per pixel. Only used by "error" based measures, e.g. NCC does not use this value. Set to < 0 to disable. -
validateRtoL
public int validateRtoLTolerance for how difference the left to right associated values can be. Try 1. Disable with -1 -
texture
public double textureTolerance for how similar optimal region is to other region. Closer to zero is more tolerant. Try 0.15 unless NCC then 0.005. Disable with a value ≤ 0 -
subpixel
public boolean subpixelIf subpixel should be used to find disparity or not. If on then output disparity image needs to me GrayF32. If false then GrayU8. -
errorType
How the error is computed for each block -
configCensus
Used if error type is Census -
configNCC
Used if error type is NCC -
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
-
ConfigDisparityBM
public ConfigDisparityBM()
-
-
Method Details
-
setTo
-
checkValidity
public void checkValidity()Description copied from interface:Configuration
Checks to see if the configuration is valid. If it is invalid, throw an exception explaining what is incorrect.- Specified by:
checkValidity
in interfaceConfiguration
-