Package boofcv.abst.disparity
Class WrapDisparitySparseRectifiedBM<ArrayData,T extends ImageGray<T>>
java.lang.Object
boofcv.abst.disparity.WrapDisparitySparseRectifiedBM<ArrayData,T>
- All Implemented Interfaces:
StereoDisparitySparse<T>
public class WrapDisparitySparseRectifiedBM<ArrayData,T extends ImageGray<T>>
extends Object
implements StereoDisparitySparse<T>
Wrapper around
DisparitySparseRectifiedScoreBM
for StereoDisparitySparse
-
Constructor Summary
ConstructorDescriptionWrapDisparitySparseRectifiedBM
(DisparitySparseRectifiedScoreBM<ArrayData, T> computeScore, DisparitySparseSelect<ArrayData> select) -
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.double
The found disparity at the selected pointType of input images it can processint
The maximum disparity which will be checked for.int
The minimum disparity which will be checked for.boolean
process
(int x, int y) Calculates the disparity at the specified point.void
Sets the input images that are to be processed.
-
Constructor Details
-
WrapDisparitySparseRectifiedBM
public WrapDisparitySparseRectifiedBM(DisparitySparseRectifiedScoreBM<ArrayData, T> computeScore, DisparitySparseSelect<ArrayData> select)
-
-
Method Details
-
setImages
Description copied from interface:StereoDisparitySparse
Sets the input images that are to be processed.- Specified by:
setImages
in interfaceStereoDisparitySparse<ArrayData>
- Parameters:
imageLeft
- Input left rectified image.imageRight
- Input right rectified image.
-
getDisparity
public double getDisparity()Description copied from interface:StereoDisparitySparse
The found disparity at the selected point- Specified by:
getDisparity
in interfaceStereoDisparitySparse<ArrayData>
- Returns:
- disparity.
-
process
public boolean process(int x, int y) Description copied from interface:StereoDisparitySparse
Calculates the disparity at the specified point. Returns true if a valid correspondence was found between the two images.- Specified by:
process
in interfaceStereoDisparitySparse<ArrayData>
- Parameters:
x
- center of region x-axisy
- center of region y-axis- Returns:
- true if a correspondence was found
-
getBorderX
public int getBorderX()Description copied from interface:StereoDisparitySparse
Border around the image's x-axis which is not processed.- Specified by:
getBorderX
in interfaceStereoDisparitySparse<ArrayData>
- Returns:
- border x-axis
-
getBorderY
public int getBorderY()Description copied from interface:StereoDisparitySparse
Border around the image's y-axis which is not processed.- Specified by:
getBorderY
in interfaceStereoDisparitySparse<ArrayData>
- Returns:
- border y-axis
-
getMinDisparity
public int getMinDisparity()Description copied from interface:StereoDisparitySparse
The minimum disparity which will be checked for.- Specified by:
getMinDisparity
in interfaceStereoDisparitySparse<ArrayData>
- Returns:
- Minimum disparity.
-
getMaxDisparity
public int getMaxDisparity()Description copied from interface:StereoDisparitySparse
The maximum disparity which will be checked for.- Specified by:
getMaxDisparity
in interfaceStereoDisparitySparse<ArrayData>
- Returns:
- Maximum disparity.
-
getInputType
Description copied from interface:StereoDisparitySparse
Type of input images it can process- Specified by:
getInputType
in interfaceStereoDisparitySparse<ArrayData>
- Returns:
- Input image type
-