Class SelectErrorWithChecks_S32<DI extends ImageGray<DI>>
java.lang.Object
boofcv.alg.disparity.block.SelectDisparityWithChecksWta<int[],DI>
boofcv.alg.disparity.block.select.SelectErrorWithChecks_S32<DI>
- All Implemented Interfaces:
DisparitySelect<int[],
,DI> Compare_S32
- Direct Known Subclasses:
SelectErrorSubpixel.S32_F32
,SelectErrorWithChecks_S32.DispU8
public abstract class SelectErrorWithChecks_S32<DI extends ImageGray<DI>>
extends SelectDisparityWithChecksWta<int[],DI>
implements Compare_S32
Implementation of SelectDisparityWithChecksWta
as a base class for arrays of type S32.
Extend for different output image types.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Implementation for disparity images of type GrayU8Nested classes/interfaces inherited from class boofcv.alg.disparity.block.SelectDisparityWithChecksWta
SelectDisparityWithChecksWta.SaveScore
-
Field Summary
Modifier and TypeFieldDescriptionprotected static final int
protected int
Fields inherited from class boofcv.alg.disparity.block.SelectDisparityWithChecksWta
DISCRETIZER, disparityMax, disparityMin, disparityRange, disparityType, funcSaveScore, imageDisparity, imageScore, invalidDisparity, localRange, maxError, radiusX, regionWidth, rightToLeftTolerance
-
Constructor Summary
ModifierConstructorDescriptionprotected
SelectErrorWithChecks_S32
(int maxError, int rightToLeftTolerance, double texture, Class<DI> disparityType) protected
SelectErrorWithChecks_S32
(SelectErrorWithChecks_S32<DI> original) -
Method Summary
Modifier and TypeMethodDescriptionint
compare
(int scoreA, int scoreB) 1 = scoreA is better than scoreB 0 = scoreA is equivalent than scoreB -1 = scoreA is worse than scoreBvoid
configure
(DI imageDisparity, @Nullable GrayF32 imageScore, int disparityMin, int disparityMax, int radiusX) Specifies the output and algorithmic configuration.void
process
(int row, int[] scores) Processes the array of scores.void
setTexture
(double threshold) Methods inherited from class boofcv.alg.disparity.block.SelectDisparityWithChecksWta
disparityMaxAtColumnL2R, getDisparityType, setDisparity, setDisparityInvalid, setLocalDisparityMax
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.DisparitySelect
concurrentCopy
-
Field Details
-
textureThreshold
protected int textureThreshold -
discretizer
protected static final int discretizer- See Also:
-
-
Constructor Details
-
SelectErrorWithChecks_S32
-
SelectErrorWithChecks_S32
-
-
Method Details
-
setTexture
public void setTexture(double threshold) - Specified by:
setTexture
in classSelectDisparityWithChecksWta<int[],
DI extends ImageGray<DI>>
-
configure
public void configure(DI imageDisparity, @Nullable @Nullable GrayF32 imageScore, int disparityMin, int disparityMax, int radiusX) Description copied from interface:DisparitySelect
Specifies the output and algorithmic configuration.- Specified by:
configure
in interfaceDisparitySelect<int[],
DI extends ImageGray<DI>> - Overrides:
configure
in classSelectDisparityWithChecksWta<int[],
DI extends ImageGray<DI>> - Parameters:
imageDisparity
- Output disparity image.imageScore
- If not null, then the score for best fit disparity will be stored here.disparityMin
- Minimum disparity that can be computeddisparityMax
- Maximum disparity that is calculatedradiusX
- Radius of the rectangular region being matched along x-axis.
-
process
public void process(int row, int[] scores) Description copied from interface:DisparitySelect
Processes the array of scores. The score format is described inDisparityBlockMatch
. The results are written directly into the disparity image passed to it inDisparitySelect.configure(T, boofcv.struct.image.GrayF32, int, int, int)
.- Specified by:
process
in interfaceDisparitySelect<int[],
DI extends ImageGray<DI>> - Parameters:
row
- Image row the scores are from.scores
- Array containing scores. (int[] or float[])
-
compare
public int compare(int scoreA, int scoreB) Description copied from interface:Compare_S32
- 1 = scoreA is better than scoreB
- 0 = scoreA is equivalent than scoreB
- -1 = scoreA is worse than scoreB
- Specified by:
compare
in interfaceCompare_S32
-