Package boofcv.factory.disparity
Class ConfigDisparityBM
java.lang.Object
boofcv.factory.disparity.ConfigDisparityBM
- All Implemented Interfaces:
Configuration,Serializable
- Direct Known Subclasses:
ConfigDisparityBMBest5
Configuration for the basic block matching stereo algorithm that employs a greedy winner takes all strategy.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionSpecifies how the image border is handled.intThis recomputes from scratch the disparity score every N rows.Used if error type is CensusUsed if error type is NCCintMinimum disparity that it will check.intNumber of disparity values considered.How the error is computed for each blockdoubleMaximum allowed error in a region per pixel.intRadius of the rectangular region along x-axis.intRadius of the rectangular region along y-axis.booleanIf true it will save the disparity score for each pixelbooleanIf subpixel should be used to find disparity or not.doubleTolerance for how similar optimal region is to other region.intTolerance for how difference the left to right associated values can be. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidChecks to see if the configuration is valid.setTo(ConfigDisparityBM src) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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. -
saveScore
public boolean saveScoreIf true it will save the disparity score for each pixel -
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. -
catastrophicReset
public int catastrophicResetThis recomputes from scratch the disparity score every N rows. If this is not done then large errors can build up resulting in inaccurate range estimates. This is hardly noticeable in most stereo benchmarks as everything is up close. Set to 1 to maximize numerical stability and set toInteger.MAX_VALUEto disable.
-
-
Constructor Details
-
ConfigDisparityBM
public ConfigDisparityBM()
-
-
Method Details
-
getBlockSize
-
setTo
-
checkValidity
public void checkValidity()Description copied from interface:ConfigurationChecks to see if the configuration is valid. If it is invalid, throw an exception explaining what is incorrect.- Specified by:
checkValidityin interfaceConfiguration
-