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
ModifierConstructorDescriptionprotected
-
Method Summary
Modifier and TypeMethodDescriptionprotected abstract void
getAlg()
int
Border around the image's x-axis which is not processed.int
Border around the image's y-axis which is not processed.Return the computed disparity image.int
The minimum disparity which will be checked for.int
The number of possible disparity values.@Nullable GrayF32
Returns a score that represents the goodness of fit for the selected value.Type of disparity image it can write to.int
Specifies the value that pixels with no valid disparity estimate will be filled in with.void
Computes stereo disparity.void
setScoreEnabled
(boolean enabled) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface boofcv.abst.disparity.StereoDisparity
getInputType
-
Constructor Details
-
WrapBaseBlockMatch
-
-
Method Details
-
process
Description copied from interface:StereoDisparity
Computes stereo disparity. -
_process
-
setScoreEnabled
public void setScoreEnabled(boolean enabled) -
getDisparity
Description copied from interface:StereoDisparity
Return the computed disparity image. See comments in class description on disparity image format.- Specified by:
getDisparity
in interfaceStereoDisparity<In extends ImageGray<In>,
T extends ImageGray<T>> - Returns:
- Output disparity from left to right image.
-
getDisparityScore
Description copied from interface:StereoDisparity
Returns 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:
getDisparityScore
in interfaceStereoDisparity<In extends ImageGray<In>,
T extends ImageGray<T>>
-
getBorderX
public int getBorderX()Description copied from interface:StereoDisparity
Border around the image's x-axis which is not processed.- Specified by:
getBorderX
in interfaceStereoDisparity<In extends ImageGray<In>,
T extends ImageGray<T>> - Returns:
- border x-axis
-
getBorderY
public int getBorderY()Description copied from interface:StereoDisparity
Border around the image's y-axis which is not processed.- Specified by:
getBorderY
in interfaceStereoDisparity<In extends ImageGray<In>,
T extends ImageGray<T>> - Returns:
- border y-axis
-
getDisparityMin
public int getDisparityMin()Description copied from interface:StereoDisparity
The minimum disparity which will be checked for.- Specified by:
getDisparityMin
in interfaceStereoDisparity<In extends ImageGray<In>,
T extends ImageGray<T>> - Returns:
- Minimum disparity.
-
getDisparityRange
public int getDisparityRange()Description copied from interface:StereoDisparity
The number of possible disparity values. The maximum value (inclusive) is min + range -1.- Specified by:
getDisparityRange
in interfaceStereoDisparity<In extends ImageGray<In>,
T extends ImageGray<T>> - Returns:
- Maximum disparity.
-
getInvalidValue
public int getInvalidValue()Description copied from interface:StereoDisparity
Specifies 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:
getInvalidValue
in interfaceStereoDisparity<In extends ImageGray<In>,
T extends ImageGray<T>>
-
getDisparityType
Description copied from interface:StereoDisparity
Type of disparity image it can write to.- Specified by:
getDisparityType
in interfaceStereoDisparity<In extends ImageGray<In>,
T extends ImageGray<T>> - Returns:
- Output image type
-
getAlg
-