boofcv.abst.sfm.d3
Class StereoVisualOdometryScaleInput<T extends ImageBase>
- java.lang.Object
-
- boofcv.abst.sfm.d3.StereoVisualOdometryScaleInput<T>
-
- All Implemented Interfaces:
- StereoVisualOdometry<T>, VisualOdometry<Se3_F64>
public class StereoVisualOdometryScaleInput<T extends ImageBase> extends java.lang.Object implements StereoVisualOdometry<T>
Wrapper aroundStereoVisualOdometrywhich scales the input images.
-
-
Constructor Summary
Constructors Constructor and Description StereoVisualOdometryScaleInput(StereoVisualOdometry<T> alg, double scaleFactor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description Se3_F64getCameraToWorld()Returns the estimated motion relative to the first frame in which a fatal error does not happen.ImageType<T>getImageType()Type of input images it can process.booleanisFault()If a fatal error occurred while updating its state then this function will return true.booleanprocess(T leftImage, T rightImage)Process the new image and update the motion estimate.voidreset()Forget past history and tracking results, returning it to its initial state.voidsetCalibration(StereoParameters parameters)Specifies intrinsic and extrinsic parameters for the stereo camera system.
-
-
-
Constructor Detail
-
StereoVisualOdometryScaleInput
public StereoVisualOdometryScaleInput(StereoVisualOdometry<T> alg, double scaleFactor)
-
-
Method Detail
-
setCalibration
public void setCalibration(StereoParameters parameters)
Description copied from interface:StereoVisualOdometrySpecifies intrinsic and extrinsic parameters for the stereo camera system. Can be called at any time, but must be called at least once beforeStereoVisualOdometry.process(T, T)can be called.- Specified by:
setCalibrationin interfaceStereoVisualOdometry<T extends ImageBase>- Parameters:
parameters- stereo calibration
-
process
public boolean process(T leftImage, T rightImage)
Description copied from interface:StereoVisualOdometryProcess the new image and update the motion estimate. The return value must be checked to see if the estimate was actually updated. If false is returned thenVisualOdometry.isFault()also needs to be checked to see if the pose estimate has been reset.- Specified by:
processin interfaceStereoVisualOdometry<T extends ImageBase>- Returns:
- true if the motion estimate has been updated and false if not
-
getImageType
public ImageType<T> getImageType()
Description copied from interface:StereoVisualOdometryType of input images it can process.- Specified by:
getImageTypein interfaceStereoVisualOdometry<T extends ImageBase>- Returns:
- The image type
-
reset
public void reset()
Description copied from interface:VisualOdometryForget past history and tracking results, returning it to its initial state.- Specified by:
resetin interfaceVisualOdometry<Se3_F64>
-
isFault
public boolean isFault()
Description copied from interface:VisualOdometryIf a fatal error occurred while updating its state then this function will return true. Before more images can be processedVisualOdometry.reset()must be called. Only needs to be called if process returns false.- Specified by:
isFaultin interfaceVisualOdometry<Se3_F64>- Returns:
- true if a fatal error has occurred.
-
getCameraToWorld
public Se3_F64 getCameraToWorld()
Description copied from interface:VisualOdometryReturns the estimated motion relative to the first frame in which a fatal error does not happen.- Specified by:
getCameraToWorldin interfaceVisualOdometry<Se3_F64>- Returns:
- Found pose.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG