Package boofcv.alg.disparity.block.score
Class DisparityScoreBMBestFive_F32<DI extends ImageGray<DI>>
java.lang.Object
boofcv.alg.disparity.DisparityBlockMatchRowFormat<I,DI>
boofcv.alg.disparity.DisparityBlockMatchBestFive<GrayF32,DI>
boofcv.alg.disparity.block.score.DisparityScoreBMBestFive_F32<DI>
public class DisparityScoreBMBestFive_F32<DI extends ImageGray<DI>>
extends DisparityBlockMatchBestFive<GrayF32,DI>
Implementation of DisparityBlockMatchBestFive
for processing
images of type GrayF32
.
-
Field Summary
Fields inherited from class boofcv.alg.disparity.DisparityBlockMatchRowFormat
catastrophicReset, disparityMax, disparityMin, disparityRange, growBorderL, growBorderR, radiusX, radiusY, regionHeight, regionWidth, widthDisparityBlock
-
Constructor Summary
ConstructorDescriptionDisparityScoreBMBestFive_F32
(int regionRadiusX, int regionRadiusY, BlockRowScore<GrayF32, float[], float[]> scoreRows, DisparitySelect<float[], DI> computeDisparity) -
Method Summary
Modifier and TypeMethodDescriptionvoid
Inner function that computes the disparity.protected void
computeScoreFive
(float[] top, float[] middle, float[] bottom, float[] score, int width, Compare_F32 compare) Compute the final score by sampling the 5 regions.protected int
int
The maximum possible error for the regionvoid
setBorder
(ImageBorder<GrayF32> border) Methods inherited from class boofcv.alg.disparity.DisparityBlockMatchBestFive
getBorderX, getBorderY
Methods inherited from class boofcv.alg.disparity.DisparityBlockMatchRowFormat
configure, process
-
Constructor Details
-
DisparityScoreBMBestFive_F32
public DisparityScoreBMBestFive_F32(int regionRadiusX, int regionRadiusY, BlockRowScore<GrayF32, float[], float[]> scoreRows, DisparitySelect<float[], DI> computeDisparity)
-
-
Method Details
-
setBorder
-
_process
Description copied from class:DisparityBlockMatchRowFormat
Inner function that computes the disparity. -
computeScoreFive
protected void computeScoreFive(float[] top, float[] middle, float[] bottom, float[] score, int width, Compare_F32 compare) Compute the final score by sampling the 5 regions. Four regions are sampled around the center region. Out of those four only the two with the smallest score are used. -
getInputType
- Specified by:
getInputType
in classDisparityBlockMatchRowFormat<GrayF32,
DI extends ImageGray<DI>>
-
getDisparityType
- Specified by:
getDisparityType
in classDisparityBlockMatchRowFormat<GrayF32,
DI extends ImageGray<DI>>
-
getMaxRegionError
public int getMaxRegionError()Description copied from class:DisparityBlockMatchRowFormat
The maximum possible error for the region- Overrides:
getMaxRegionError
in classDisparityBlockMatchRowFormat<GrayF32,
DI extends ImageGray<DI>>
-
getMaxPerPixelError
protected int getMaxPerPixelError()- Specified by:
getMaxPerPixelError
in classDisparityBlockMatchRowFormat<GrayF32,
DI extends ImageGray<DI>>
-