boofcv.abst.feature.disparity
Class WrapDisparitySparseSadRect<ArrayData,T extends ImageGray>
- java.lang.Object
-
- boofcv.abst.feature.disparity.WrapDisparitySparseSadRect<ArrayData,T>
-
- All Implemented Interfaces:
- StereoDisparitySparse<T>
public class WrapDisparitySparseSadRect<ArrayData,T extends ImageGray> extends java.lang.Object implements StereoDisparitySparse<T>
-
-
Constructor Summary
Constructors Constructor and Description WrapDisparitySparseSadRect(DisparitySparseScoreSadRect<ArrayData,T> computeScore, DisparitySparseSelect<ArrayData> select)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description intgetBorderX()Border around the image's x-axis which is not processed.intgetBorderY()Border around the image's y-axis which is not processed.doublegetDisparity()The found disparity at the selected pointjava.lang.Class<T>getInputType()Type of input images it can processintgetMaxDisparity()The maximum disparity which will be checked for.intgetMinDisparity()The minimum disparity which will be checked for.booleanprocess(int x, int y)Calculates the disparity at the specified point.voidsetImages(T imageLeft, T imageRight)Sets the input images that are to be processed.
-
-
-
Constructor Detail
-
WrapDisparitySparseSadRect
public WrapDisparitySparseSadRect(DisparitySparseScoreSadRect<ArrayData,T> computeScore, DisparitySparseSelect<ArrayData> select)
-
-
Method Detail
-
setImages
public void setImages(T imageLeft, T imageRight)
Description copied from interface:StereoDisparitySparseSets the input images that are to be processed.- Specified by:
setImagesin interfaceStereoDisparitySparse<T extends ImageGray>- Parameters:
imageLeft- Input left rectified image.imageRight- Input right rectified image.
-
getDisparity
public double getDisparity()
Description copied from interface:StereoDisparitySparseThe found disparity at the selected point- Specified by:
getDisparityin interfaceStereoDisparitySparse<T extends ImageGray>- Returns:
- disparity.
-
process
public boolean process(int x, int y)Description copied from interface:StereoDisparitySparseCalculates the disparity at the specified point. Returns true if a valid correspondence was found between the two images.- Specified by:
processin interfaceStereoDisparitySparse<T extends ImageGray>- 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:StereoDisparitySparseBorder around the image's x-axis which is not processed.- Specified by:
getBorderXin interfaceStereoDisparitySparse<T extends ImageGray>- Returns:
- border x-axis
-
getBorderY
public int getBorderY()
Description copied from interface:StereoDisparitySparseBorder around the image's y-axis which is not processed.- Specified by:
getBorderYin interfaceStereoDisparitySparse<T extends ImageGray>- Returns:
- border y-axis
-
getMinDisparity
public int getMinDisparity()
Description copied from interface:StereoDisparitySparseThe minimum disparity which will be checked for.- Specified by:
getMinDisparityin interfaceStereoDisparitySparse<T extends ImageGray>- Returns:
- Minimum disparity.
-
getMaxDisparity
public int getMaxDisparity()
Description copied from interface:StereoDisparitySparseThe maximum disparity which will be checked for.- Specified by:
getMaxDisparityin interfaceStereoDisparitySparse<T extends ImageGray>- Returns:
- Maximum disparity.
-
getInputType
public java.lang.Class<T> getInputType()
Description copied from interface:StereoDisparitySparseType of input images it can process- Specified by:
getInputTypein interfaceStereoDisparitySparse<T extends ImageGray>- Returns:
- Input image type
-
-
DataMelt 3.0 © DataMelt by jWork.ORG