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
ConstructorsConstructorDescriptionDisparityScoreBMBestFive_S32(int regionRadiusX, int regionRadiusY, BlockRowScore<T, int[], Object> scoreRows, DisparitySelect<int[], DI> computeDisparity, ImageType<T> imageType) -
Method Summary
Modifier and TypeMethodDescriptionvoidInner function that computes the disparity.protected voidcomputeScoreFive(int[] top, int[] middle, int[] bottom, int[] score, int width, Compare_S32 compare) Compute the final score by sampling the 5 regions.protected intintThe maximum possible error for the regionvoidsetBorder(ImageBorder<T> border) Methods inherited from class boofcv.alg.disparity.DisparityBlockMatchBestFive
getBorderX, getBorderYMethods 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:DisparityBlockMatchRowFormatInner 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:
getInputTypein classDisparityBlockMatchRowFormat<T extends ImageBase<T>,DI extends ImageGray<DI>>
-
getDisparityType
- Specified by:
getDisparityTypein classDisparityBlockMatchRowFormat<T extends ImageBase<T>,DI extends ImageGray<DI>>
-
getMaxRegionError
public int getMaxRegionError()Description copied from class:DisparityBlockMatchRowFormatThe maximum possible error for the region- Overrides:
getMaxRegionErrorin classDisparityBlockMatchRowFormat<T extends ImageBase<T>,DI extends ImageGray<DI>>
-
getMaxPerPixelError
protected int getMaxPerPixelError()- Specified by:
getMaxPerPixelErrorin classDisparityBlockMatchRowFormat<T extends ImageBase<T>,DI extends ImageGray<DI>>
-