public class WrapVisOdomPixelDepthPnP<T extends boofcv.struct.image.ImageSingleBand> extends java.lang.Object implements StereoVisualOdometry<T>, AccessPointTracks3D
| Constructor and Description |
|---|
WrapVisOdomPixelDepthPnP(VisOdomPixelDepthPnP<T> alg,
StereoSparse3D<T> stereo,
boofcv.alg.geo.DistanceModelMonoPixels<georegression.struct.se.Se3_F64,boofcv.struct.geo.Point2D3D> distance,
java.lang.Class<T> imageType) |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<georegression.struct.point.Point2D_F64> |
getAllTracks()
All the points being actively tracked in pixel coordinates.
|
georegression.struct.se.Se3_F64 |
getCameraToWorld()
Returns the estimated motion relative to the first frame in which a fatal error
does not happen.
|
boofcv.struct.image.ImageType<T> |
getImageType()
Type of input images it can process.
|
long |
getTrackId(int index)
Used to get the track ID of an active Track
|
georegression.struct.point.Point3D_F64 |
getTrackLocation(int index)
Returns the 3D location of the active track.
|
boolean |
isFault()
If a fatal error occurred while updating its state then this function will return true.
|
boolean |
isInlier(int index)
True if the specified track is an inlier used in motion estimation
|
boolean |
isNew(int index)
True if the specified track was just spawned
|
boolean |
process(T leftImage,
T rightImage)
Process the new image and update the motion estimate.
|
void |
reset()
Forget past history and tracking results, returning it to its initial state.
|
void |
setCalibration(boofcv.struct.calib.StereoParameters parameters)
Specifies intrinsic and extrinsic parameters for the stereo camera system.
|
public WrapVisOdomPixelDepthPnP(VisOdomPixelDepthPnP<T> alg, StereoSparse3D<T> stereo, boofcv.alg.geo.DistanceModelMonoPixels<georegression.struct.se.Se3_F64,boofcv.struct.geo.Point2D3D> distance, java.lang.Class<T> imageType)
public georegression.struct.point.Point3D_F64 getTrackLocation(int index)
AccessPointTracks3DgetTrackLocation in interface AccessPointTracks3Dindex - The track's index in the active listpublic long getTrackId(int index)
AccessPointTracksgetTrackId in interface AccessPointTracksindex - which trackpublic java.util.List<georegression.struct.point.Point2D_F64> getAllTracks()
AccessPointTracksgetAllTracks in interface AccessPointTrackspublic boolean isInlier(int index)
AccessPointTracksisInlier in interface AccessPointTracksindex - The index in allpublic boolean isNew(int index)
AccessPointTracksisNew in interface AccessPointTracksindex - The index in allpublic void setCalibration(boofcv.struct.calib.StereoParameters parameters)
StereoVisualOdometryStereoVisualOdometry.process(T, T) can be called.setCalibration in interface StereoVisualOdometry<T extends boofcv.struct.image.ImageSingleBand>parameters - stereo calibrationpublic boolean process(T leftImage, T rightImage)
StereoVisualOdometryVisualOdometry.isFault()
also needs to be checked to see if the pose estimate has been reset.process in interface StereoVisualOdometry<T extends boofcv.struct.image.ImageSingleBand>public boofcv.struct.image.ImageType<T> getImageType()
StereoVisualOdometrygetImageType in interface StereoVisualOdometry<T extends boofcv.struct.image.ImageSingleBand>public void reset()
VisualOdometryreset in interface VisualOdometry<georegression.struct.se.Se3_F64>public boolean isFault()
VisualOdometryVisualOdometry.reset() must be called. Only needs to be
called if process returns false.isFault in interface VisualOdometry<georegression.struct.se.Se3_F64>public georegression.struct.se.Se3_F64 getCameraToWorld()
VisualOdometrygetCameraToWorld in interface VisualOdometry<georegression.struct.se.Se3_F64>