Package boofcv.abst.disparity
Class WrapDisparitySgm<DI extends ImageGray<DI>>
java.lang.Object
boofcv.abst.disparity.WrapDisparitySgm<DI>
- All Implemented Interfaces:
StereoDisparity<GrayU8,
DI>
public class WrapDisparitySgm<DI extends ImageGray<DI>>
extends Object
implements StereoDisparity<GrayU8,DI>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
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.Type of input images it can processint
Specifies the value that pixels with no valid disparity estimate will be filled in with.void
Computes stereo disparity.
-
Constructor Details
-
WrapDisparitySgm
-
-
Method Details
-
process
Description copied from interface:StereoDisparity
Computes stereo disparity. -
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<GrayU8,
DI extends ImageGray<DI>> - 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<GrayU8,
DI extends ImageGray<DI>>
-
getDisparityMin
public int getDisparityMin()Description copied from interface:StereoDisparity
The minimum disparity which will be checked for.- Specified by:
getDisparityMin
in interfaceStereoDisparity<GrayU8,
DI extends ImageGray<DI>> - 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<GrayU8,
DI extends ImageGray<DI>> - 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<GrayU8,
DI extends ImageGray<DI>>
-
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<GrayU8,
DI extends ImageGray<DI>> - 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<GrayU8,
DI extends ImageGray<DI>> - Returns:
- border y-axis
-
getInputType
Description copied from interface:StereoDisparity
Type of input images it can process- Specified by:
getInputType
in interfaceStereoDisparity<GrayU8,
DI extends ImageGray<DI>> - Returns:
- Input image type
-
getDisparityType
Description copied from interface:StereoDisparity
Type of disparity image it can write to.- Specified by:
getDisparityType
in interfaceStereoDisparity<GrayU8,
DI extends ImageGray<DI>> - Returns:
- Output image type
-
getAlgorithm
-