Package boofcv.abst.disparity
Class WrapBaseBlockMatch<In extends ImageGray<In>,T extends ImageGray<T>,DI extends ImageGray<DI>>
java.lang.Object
boofcv.abst.disparity.WrapBaseBlockMatch<In,T,DI>
- All Implemented Interfaces:
StereoDisparity<In,DI>
- Direct Known Subclasses:
DisparityBlockMatchCorrelation,WrapDisparityBlockMatchCensus,WrapDisparityBlockMatchRowFormat
public abstract class WrapBaseBlockMatch<In extends ImageGray<In>,T extends ImageGray<T>,DI extends ImageGray<DI>>
extends Object
implements StereoDisparity<In,DI>
Base class for wrapped block matching algorithms.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract voidgetAlg()intBorder around the image's x-axis which is not processed.intBorder around the image's y-axis which is not processed.Return the computed disparity image.intThe minimum disparity which will be checked for.intThe number of possible disparity values.@Nullable GrayF32Returns a score that represents the goodness of fit for the selected value.Type of disparity image it can write to.intSpecifies the value that pixels with no valid disparity estimate will be filled in with.voidComputes stereo disparity.voidsetScoreEnabled(boolean enabled) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface boofcv.abst.disparity.StereoDisparity
getInputType
-
Constructor Details
-
WrapBaseBlockMatch
-
-
Method Details
-
process
Description copied from interface:StereoDisparityComputes stereo disparity. -
_process
-
setScoreEnabled
public void setScoreEnabled(boolean enabled) -
getDisparity
Description copied from interface:StereoDisparityReturn the computed disparity image. See comments in class description on disparity image format.- Specified by:
getDisparityin interfaceStereoDisparity<In extends ImageGray<In>,T extends ImageGray<T>> - Returns:
- Output disparity from left to right image.
-
getDisparityScore
Description copied from interface:StereoDisparityReturns a score that represents the goodness of fit for the selected value. Meaning of the score is cost function dependent. If null is returned that means the score was not saved. This can be- Specified by:
getDisparityScorein interfaceStereoDisparity<In extends ImageGray<In>,T extends ImageGray<T>>
-
getBorderX
public int getBorderX()Description copied from interface:StereoDisparityBorder around the image's x-axis which is not processed.- Specified by:
getBorderXin interfaceStereoDisparity<In extends ImageGray<In>,T extends ImageGray<T>> - Returns:
- border x-axis
-
getBorderY
public int getBorderY()Description copied from interface:StereoDisparityBorder around the image's y-axis which is not processed.- Specified by:
getBorderYin interfaceStereoDisparity<In extends ImageGray<In>,T extends ImageGray<T>> - Returns:
- border y-axis
-
getDisparityMin
public int getDisparityMin()Description copied from interface:StereoDisparityThe minimum disparity which will be checked for.- Specified by:
getDisparityMinin interfaceStereoDisparity<In extends ImageGray<In>,T extends ImageGray<T>> - Returns:
- Minimum disparity.
-
getDisparityRange
public int getDisparityRange()Description copied from interface:StereoDisparityThe number of possible disparity values. The maximum value (inclusive) is min + range -1.- Specified by:
getDisparityRangein interfaceStereoDisparity<In extends ImageGray<In>,T extends ImageGray<T>> - Returns:
- Maximum disparity.
-
getInvalidValue
public int getInvalidValue()Description copied from interface:StereoDisparitySpecifies the value that pixels with no valid disparity estimate will be filled in with. This is always range, but any value >= range should be considered invalid.- Specified by:
getInvalidValuein interfaceStereoDisparity<In extends ImageGray<In>,T extends ImageGray<T>>
-
getDisparityType
Description copied from interface:StereoDisparityType of disparity image it can write to.- Specified by:
getDisparityTypein interfaceStereoDisparity<In extends ImageGray<In>,T extends ImageGray<T>> - Returns:
- Output image type
-
getAlg
-