public class VisOdomPixelDepthPnP_to_DepthVisualOdometry<Vis extends boofcv.struct.image.ImageBase<Vis>,Depth extends boofcv.struct.image.ImageGray<Depth>> extends java.lang.Object implements DepthVisualOdometry<Vis,Depth>, AccessPointTracks3D
VisOdomPixelDepthPnP for DepthVisualOdometry.| Constructor and Description |
|---|
VisOdomPixelDepthPnP_to_DepthVisualOdometry(DepthSparse3D<Depth> sparse3D,
VisOdomPixelDepthPnP<Vis> alg,
boofcv.alg.geo.DistanceFromModelMultiView<georegression.struct.se.Se3_F64,boofcv.struct.geo.Point2D3D> distance,
boofcv.struct.image.ImageType<Vis> visualType,
java.lang.Class<Depth> depthType) |
| 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.
|
java.lang.Class<Depth> |
getDepthType()
Type of depth 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.
|
boofcv.struct.image.ImageType<Vis> |
getVisualType()
Type of visual images it can process.
|
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(Vis visual,
Depth depth)
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.CameraPinholeRadial paramVisual,
boofcv.struct.distort.Point2Transform2_F32 visToDepth)
Specifies the intrinsic parameters for the visual camera and the transform from visual to depth pixels.
|
public VisOdomPixelDepthPnP_to_DepthVisualOdometry(DepthSparse3D<Depth> sparse3D, VisOdomPixelDepthPnP<Vis> alg, boofcv.alg.geo.DistanceFromModelMultiView<georegression.struct.se.Se3_F64,boofcv.struct.geo.Point2D3D> distance, boofcv.struct.image.ImageType<Vis> visualType, java.lang.Class<Depth> depthType)
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.CameraPinholeRadial paramVisual,
boofcv.struct.distort.Point2Transform2_F32 visToDepth)
DepthVisualOdometrysetCalibration in interface DepthVisualOdometry<Vis extends boofcv.struct.image.ImageBase<Vis>,Depth extends boofcv.struct.image.ImageGray<Depth>>paramVisual - Intrinsic parameters for visual cameravisToDepth - Transform from visual camera pixels into depth camera pixelspublic boolean process(Vis visual, Depth depth)
DepthVisualOdometryVisualOdometry.isFault()
also needs to be checked to see if the pose estimate has been reset.process in interface DepthVisualOdometry<Vis extends boofcv.struct.image.ImageBase<Vis>,Depth extends boofcv.struct.image.ImageGray<Depth>>visual - Image from visual cameradepth - Image from depth sensorpublic 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>public boofcv.struct.image.ImageType<Vis> getVisualType()
DepthVisualOdometrygetVisualType in interface DepthVisualOdometry<Vis extends boofcv.struct.image.ImageBase<Vis>,Depth extends boofcv.struct.image.ImageGray<Depth>>public java.lang.Class<Depth> getDepthType()
DepthVisualOdometrygetDepthType in interface DepthVisualOdometry<Vis extends boofcv.struct.image.ImageBase<Vis>,Depth extends boofcv.struct.image.ImageGray<Depth>>