Package boofcv.abst.sfm.d3
Class MonocularPlaneVisualOdometryScaleInput<T extends boofcv.struct.image.ImageBase<T>>
- java.lang.Object
-
- boofcv.abst.sfm.d3.MonocularPlaneVisualOdometryScaleInput<T>
-
- All Implemented Interfaces:
MonocularPlaneVisualOdometry<T>,VisualOdometry<georegression.struct.se.Se3_F64>,org.ddogleg.struct.VerbosePrint
public class MonocularPlaneVisualOdometryScaleInput<T extends boofcv.struct.image.ImageBase<T>> extends java.lang.Object implements MonocularPlaneVisualOdometry<T>
* Wrapper aroundMonocularPlaneVisualOdometrywhich scales the input images.
-
-
Field Summary
-
Fields inherited from interface boofcv.abst.sfm.d3.VisualOdometry
VERBOSE_RUNTIME, VERBOSE_TRACKING
-
-
Constructor Summary
Constructors Constructor Description MonocularPlaneVisualOdometryScaleInput(MonocularPlaneVisualOdometry<T> alg, double scaleFactor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description georegression.struct.se.Se3_F64getCameraToWorld()Returns the estimated motion relative to the first frame in which a fatal error does not happen.longgetFrameID()Returns the ID of the most recently processed frame.boofcv.struct.image.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)Process the new image and update the motion estimate.voidreset()Forget past history and tracking results, returning it to its initial state.voidsetCalibration(boofcv.struct.calib.MonoPlaneParameters param)Specifies the camera's intrinsic and extrinsic parameters.voidsetVerbose(java.io.PrintStream out, java.util.Set<java.lang.String> configuration)
-
-
-
Constructor Detail
-
MonocularPlaneVisualOdometryScaleInput
public MonocularPlaneVisualOdometryScaleInput(MonocularPlaneVisualOdometry<T> alg, double scaleFactor)
-
-
Method Detail
-
setCalibration
public void setCalibration(boofcv.struct.calib.MonoPlaneParameters param)
Description copied from interface:MonocularPlaneVisualOdometrySpecifies the camera's intrinsic and extrinsic parameters. Can be changed at any time.- Specified by:
setCalibrationin interfaceMonocularPlaneVisualOdometry<T extends boofcv.struct.image.ImageBase<T>>- Parameters:
param- Camera calibration parameters
-
process
public boolean process(T leftImage)
Description copied from interface:MonocularPlaneVisualOdometryProcess 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 interfaceMonocularPlaneVisualOdometry<T extends boofcv.struct.image.ImageBase<T>>- Parameters:
leftImage- Next image in the sequence.- Returns:
- If the motion estimate has been updated or not
-
getImageType
public boofcv.struct.image.ImageType<T> getImageType()
Description copied from interface:MonocularPlaneVisualOdometryType of input images it can process.- Specified by:
getImageTypein interfaceMonocularPlaneVisualOdometry<T extends boofcv.struct.image.ImageBase<T>>- 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<T extends boofcv.struct.image.ImageBase<T>>
-
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<T extends boofcv.struct.image.ImageBase<T>>- Returns:
- true if a fatal error has occurred.
-
getCameraToWorld
public georegression.struct.se.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<T extends boofcv.struct.image.ImageBase<T>>- Returns:
- Found pose.
-
getFrameID
public long getFrameID()
Description copied from interface:VisualOdometryReturns the ID of the most recently processed frame. Starts at zero and increments with each call to process.- Specified by:
getFrameIDin interfaceVisualOdometry<T extends boofcv.struct.image.ImageBase<T>>
-
setVerbose
public void setVerbose(@Nullable java.io.PrintStream out, @Nullable java.util.Set<java.lang.String> configuration)- Specified by:
setVerbosein interfaceorg.ddogleg.struct.VerbosePrint
-
-