Package boofcv.alg.sfm
Class StereoSparse3D<T extends boofcv.struct.image.ImageGray<T>>
- java.lang.Object
-
- boofcv.alg.sfm.StereoProcessingBase<T>
-
- boofcv.alg.sfm.StereoSparse3D<T>
-
- All Implemented Interfaces:
ImagePixelTo3D
public class StereoSparse3D<T extends boofcv.struct.image.ImageGray<T>> extends StereoProcessingBase<T> implements ImagePixelTo3D
Computes stereo disparity on a per pixel basis as requested.
-
-
Field Summary
-
Fields inherited from class boofcv.alg.sfm.StereoProcessingBase
baseline, cx, cy, fx, fy, imageLeftRect, imageRightRect, pointRect, rect1, rect2, rectK, rectR
-
-
Constructor Summary
Constructors Constructor Description StereoSparse3D(boofcv.abst.feature.disparity.StereoDisparitySparse<T> disparity, java.lang.Class<T> imageType)Configures and declares internal data
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description doublegetW()Found w-coordinate of point in camera coordinate system.doublegetX()Found x-coordinate of point in camera coordinate system.doublegetY()Found y-coordinate of point in camera coordinate system.doublegetZ()Found z-coordinate of point in camera coordinate system.booleanprocess(double x, double y)Takes in pixel coordinates from the left camera in the original image coordinate systemvoidsetCalibration(boofcv.struct.calib.StereoParameters stereoParam)Specifies stereo parametersvoidsetImages(T leftImage, T rightImage)Sets the input images.-
Methods inherited from class boofcv.alg.sfm.StereoProcessingBase
computeHomo3D, getImageLeftRect, getImageRightRect, getRect1, getRect2, getRectK, initialize
-
-
-
-
Method Detail
-
setCalibration
public void setCalibration(boofcv.struct.calib.StereoParameters stereoParam)
Description copied from class:StereoProcessingBaseSpecifies stereo parameters- Overrides:
setCalibrationin classStereoProcessingBase<T extends boofcv.struct.image.ImageGray<T>>- Parameters:
stereoParam- stereo parameters
-
setImages
public void setImages(T leftImage, T rightImage)
Description copied from class:StereoProcessingBaseSets the input images. Processing is delayed untilStereoProcessingBase.initialize()has been called.- Overrides:
setImagesin classStereoProcessingBase<T extends boofcv.struct.image.ImageGray<T>>- Parameters:
leftImage- Left imagerightImage- Right image
-
process
public boolean process(double x, double y)Takes in pixel coordinates from the left camera in the original image coordinate system- Specified by:
processin interfaceImagePixelTo3D- Parameters:
x- x-coordinate of the pixely- y-coordinate of the pixel- Returns:
- true if successful
-
getX
public double getX()
Description copied from interface:ImagePixelTo3DFound x-coordinate of point in camera coordinate system.- Specified by:
getXin interfaceImagePixelTo3D- Returns:
- x-coordinate
-
getY
public double getY()
Description copied from interface:ImagePixelTo3DFound y-coordinate of point in camera coordinate system.- Specified by:
getYin interfaceImagePixelTo3D- Returns:
- y-coordinate
-
getZ
public double getZ()
Description copied from interface:ImagePixelTo3DFound z-coordinate of point in camera coordinate system.- Specified by:
getZin interfaceImagePixelTo3D- Returns:
- z-coordinate
-
getW
public double getW()
Description copied from interface:ImagePixelTo3DFound w-coordinate of point in camera coordinate system. If a point is at infinity then this value will be zero.- Specified by:
getWin interfaceImagePixelTo3D- Returns:
- w-coordinate
-
-