Package boofcv.alg.disparity.block.score
Class DisparityScoreBMBestFive_S32<T extends ImageBase<T>,DI extends ImageGray<DI>>
java.lang.Object
boofcv.alg.disparity.DisparityBlockMatchRowFormat<I,DI>
boofcv.alg.disparity.DisparityBlockMatchBestFive<T,DI>
boofcv.alg.disparity.block.score.DisparityScoreBMBestFive_S32<T,DI>
public class DisparityScoreBMBestFive_S32<T extends ImageBase<T>,DI extends ImageGray<DI>>
extends DisparityBlockMatchBestFive<T,DI>
Implementation of DisparityBlockMatchBestFive
for processing
images of type GrayU8
.
-
Field Summary
Fields inherited from class boofcv.alg.disparity.DisparityBlockMatchRowFormat
catastrophicReset, disparityMax, disparityMin, disparityRange, growBorderL, growBorderR, radiusX, radiusY, regionHeight, regionWidth, widthDisparityBlock
-
Constructor Summary
ConstructorDescriptionDisparityScoreBMBestFive_S32
(int regionRadiusX, int regionRadiusY, BlockRowScore<T, int[], Object> scoreRows, DisparitySelect<int[], DI> computeDisparity, ImageType<T> imageType) -
Method Summary
Modifier and TypeMethodDescriptionvoid
Inner function that computes the disparity.protected void
computeScoreFive
(int[] top, int[] middle, int[] bottom, int[] score, int width, Compare_S32 compare) Compute the final score by sampling the 5 regions.protected int
int
The maximum possible error for the regionvoid
setBorder
(ImageBorder<T> border) Methods inherited from class boofcv.alg.disparity.DisparityBlockMatchBestFive
getBorderX, getBorderY
Methods inherited from class boofcv.alg.disparity.DisparityBlockMatchRowFormat
configure, process
-
Constructor Details
-
DisparityScoreBMBestFive_S32
public DisparityScoreBMBestFive_S32(int regionRadiusX, int regionRadiusY, BlockRowScore<T, int[], Object> scoreRows, DisparitySelect<int[], DI> computeDisparity, ImageType<T> imageType)
-
-
Method Details
-
setBorder
-
_process
Description copied from class:DisparityBlockMatchRowFormat
Inner function that computes the disparity. -
computeScoreFive
protected void computeScoreFive(int[] top, int[] middle, int[] bottom, int[] score, int width, Compare_S32 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<T extends ImageBase<T>,
DI extends ImageGray<DI>>
-
getDisparityType
- Specified by:
getDisparityType
in classDisparityBlockMatchRowFormat<T extends ImageBase<T>,
DI extends ImageGray<DI>>
-
getMaxRegionError
public int getMaxRegionError()Description copied from class:DisparityBlockMatchRowFormat
The maximum possible error for the region- Overrides:
getMaxRegionError
in classDisparityBlockMatchRowFormat<T extends ImageBase<T>,
DI extends ImageGray<DI>>
-
getMaxPerPixelError
protected int getMaxPerPixelError()- Specified by:
getMaxPerPixelError
in classDisparityBlockMatchRowFormat<T extends ImageBase<T>,
DI extends ImageGray<DI>>
-