Package boofcv.alg.disparity.sgm
Class SgmDisparitySelector
java.lang.Object
boofcv.alg.disparity.sgm.SgmDisparitySelector
- Direct Known Subclasses:
SgmDisparitySelector_MT
Selects the best disparity for each pixel from aggregated SGM cost. If no valid match is or can be found then
it is set to
invalidDisparity
.-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
int
int
int
double
static int
invalidGivenRange
(int disparityRange) Convenience function to make it clear what the value assigned to an invalid disparity is.void
Given the aggregated cost compute the best disparity to pixel level accuracy for all pixelsvoid
setDisparityMin
(int disparityMin) void
setMaxError
(int maxError) void
setRightToLeftTolerance
(int rightToLeftTolerance) void
setTextureThreshold
(double textureThreshold)
-
Field Details
-
helper
-
rightToLeftTolerance
protected int rightToLeftTolerance
-
-
Constructor Details
-
SgmDisparitySelector
public SgmDisparitySelector()
-
-
Method Details
-
select
Given the aggregated cost compute the best disparity to pixel level accuracy for all pixels- Parameters:
aggregatedYXD
- (Input) Aggregated disparity cost for each pixeldisparity
- (output) selected disparity
-
getRightToLeftTolerance
public int getRightToLeftTolerance() -
setRightToLeftTolerance
public void setRightToLeftTolerance(int rightToLeftTolerance) -
getMaxError
public int getMaxError() -
setMaxError
public void setMaxError(int maxError) -
getDisparityMin
public int getDisparityMin() -
setDisparityMin
public void setDisparityMin(int disparityMin) -
getInvalidDisparity
public int getInvalidDisparity() -
getTextureThreshold
public double getTextureThreshold() -
setTextureThreshold
public void setTextureThreshold(double textureThreshold) -
invalidGivenRange
public static int invalidGivenRange(int disparityRange) Convenience function to make it clear what the value assigned to an invalid disparity is. Any value
-