Package boofcv.alg.disparity.block
Class SelectSparseStandardWta<ArrayType>
java.lang.Object
boofcv.alg.disparity.block.SelectSparseStandardWta<ArrayType>
- All Implemented Interfaces:
DisparitySparseSelect<ArrayType>
- Direct Known Subclasses:
SelectSparseCorrelationWithChecksWta_F32
,SelectSparseErrorWithChecksWta_F32
,SelectSparseErrorWithChecksWta_S32
public abstract class SelectSparseStandardWta<ArrayType>
extends Object
implements DisparitySparseSelect<ArrayType>
Selects the disparity the smallest error and optionally applies several different types of validation to remove false
positives. The two validations it can apply are maxError and texture based.
See SelectDisparityWithChecksWta
for more details on validation checks.
-
Field Summary
Modifier and TypeFieldDescriptionprotected double
protected int
protected int
-
Constructor Summary
ModifierConstructorDescriptionprotected
SelectSparseStandardWta
(int maxError, double texture, int tolRightToLeft) -
Method Summary
Modifier and TypeMethodDescriptiondouble
Returns the found disparityprotected abstract void
setTexture
(double texture) Sets the texture threshold.protected void
setValidateRtoL
(int maxError) Specifies tolerance for right to left validation.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface boofcv.alg.disparity.block.DisparitySparseSelect
select
-
Field Details
-
disparity
protected double disparity -
maxError
protected int maxError -
tolRightToLeft
protected int tolRightToLeft
-
-
Constructor Details
-
SelectSparseStandardWta
protected SelectSparseStandardWta(int maxError, double texture, int tolRightToLeft) - Parameters:
maxError
- Maximum allowed error. See comments above.texture
- Texture threshold. See comments above.
-
-
Method Details
-
setTexture
protected abstract void setTexture(double texture) Sets the texture threshold.- Parameters:
texture
- Texture threshold.
-
setValidateRtoL
protected void setValidateRtoL(int maxError) Specifies tolerance for right to left validation.- Parameters:
maxError
- Maximum number of pixels different for right to left validation. If error is < 0 then disabled.
-
getDisparity
public double getDisparity()Description copied from interface:DisparitySparseSelect
Returns the found disparity- Specified by:
getDisparity
in interfaceDisparitySparseSelect<ArrayType>
- Returns:
- disparity
-