Package boofcv.alg.disparity.block
Class SparseScoreRectifiedCensus.Census<In extends ImageGray<In>,Out extends ImageGray<Out>>
java.lang.Object
boofcv.alg.disparity.block.score.DisparitySparseRectifiedScoreBM<int[],T>
boofcv.alg.disparity.block.score.DisparitySparseRectifiedScoreBM_S32<In>
boofcv.alg.disparity.block.SparseScoreRectifiedCensus.Census<In,Out>
- Direct Known Subclasses:
SparseScoreRectifiedCensus.S32
,SparseScoreRectifiedCensus.S64
,SparseScoreRectifiedCensus.U8
- Enclosing interface:
- SparseScoreRectifiedCensus
public abstract static class SparseScoreRectifiedCensus.Census<In extends ImageGray<In>,Out extends ImageGray<Out>>
extends DisparitySparseRectifiedScoreBM_S32<In>
Applies a census transform to the input image and creates a new transformed image patch for later processing
-
Field Summary
Fields inherited from class boofcv.alg.disparity.block.score.DisparitySparseRectifiedScoreBM_S32
scoreLtoR, scoreRtoL
Fields inherited from class boofcv.alg.disparity.block.score.DisparitySparseRectifiedScoreBM
blockHeight, blockWidth, border, disparityMax, disparityMin, disparityRange, inputType, left, localRangeLtoR, localRangeRtoL, patchCompare, patchTemplate, radiusX, radiusY, right, sampledHeight, sampledWidth, sampleRadiusX, sampleRadiusY
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
configure
(int disparityMin, int disparityRange) Configures the disparity searchprotected abstract void
scoreCensus
(int disparityRange, boolean leftToRight) protected void
scoreDisparity
(int disparityRange, boolean leftToRight) Scores the disparity using image patches.Methods inherited from class boofcv.alg.disparity.block.score.DisparitySparseRectifiedScoreBM
copy, getScoreLtoR, getScoreRtoL, processLeftToRight, processRightToLeft, setBorder, setImages, setSampleRegion
-
Constructor Details
-
Census
protected Census(int radiusX, int radiusY, FilterCensusTransform<In, Out> censusTran, Class<In> imageType)
-
-
Method Details
-
configure
public void configure(int disparityMin, int disparityRange) Description copied from class:DisparitySparseRectifiedScoreBM
Configures the disparity search- Overrides:
configure
in classDisparitySparseRectifiedScoreBM_S32<In extends ImageGray<In>>
- Parameters:
disparityMin
- Minimum disparity that it will check. Must be ≥ 0 and < disparityMaxdisparityRange
- Number of possible disparity values estimated. The max possible disparity is min+range-1.
-
scoreDisparity
protected void scoreDisparity(int disparityRange, boolean leftToRight) Description copied from class:DisparitySparseRectifiedScoreBM
Scores the disparity using image patches.- Specified by:
scoreDisparity
in classDisparitySparseRectifiedScoreBM<int[],
In extends ImageGray<In>> - Parameters:
disparityRange
- The local range for disparityleftToRight
- If true then the disparity is being from in left to right direction (the typical)
-
scoreCensus
protected abstract void scoreCensus(int disparityRange, boolean leftToRight)
-