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
Constructors Modifier Constructor Description protected
WrapBaseBlockMatch(DisparityBlockMatchRowFormat<T,DI> alg)
-
Method Summary
Modifier and Type Method Description protected abstract void
_process(In imageLeft, In imageRight)
DisparityBlockMatchRowFormat<T,DI>
getAlg()
int
getBorderX()
Border around the image's x-axis which is not processed.int
getBorderY()
Border around the image's y-axis which is not processed.DI
getDisparity()
Return the computed disparity image.int
getDisparityMin()
The minimum disparity which will be checked for.int
getDisparityRange()
The number of possible disparity values.Class<DI>
getDisparityType()
Type of disparity image it can write to.int
getInvalidValue()
Specifies the value that pixels with no valid disparity estimate will be filled in with.void
process(In imageLeft, In imageRight)
Computes stereo disparity.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
-
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.
-
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
-