boofcv.abst.sfm.d3
Class MonoPlaneInfinity_to_MonocularPlaneVisualOdometry<T extends ImageBase>
- java.lang.Object
-
- boofcv.abst.sfm.d3.MonoPlaneInfinity_to_MonocularPlaneVisualOdometry<T>
-
- All Implemented Interfaces:
- AccessPointTracks, AccessPointTracks3D, MonocularPlaneVisualOdometry<T>, VisualOdometry<Se3_F64>
public class MonoPlaneInfinity_to_MonocularPlaneVisualOdometry<T extends ImageBase> extends java.lang.Object implements MonocularPlaneVisualOdometry<T>, AccessPointTracks3D
Wrapper aroundVisOdomMonoPlaneInfinityforMonocularPlaneVisualOdometry.
-
-
Constructor Summary
Constructors Constructor and Description MonoPlaneInfinity_to_MonocularPlaneVisualOdometry(VisOdomMonoPlaneInfinity<T> alg, DistancePlane2DToPixelSq distance, GenerateSe2_PlanePtPixel generator, ImageType<T> imageType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description java.util.List<Point2D_F64>getAllTracks()All the points being actively tracked in pixel coordinates.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.longgetTrackId(int index)Used to get the track ID of an active TrackPoint3D_F64getTrackLocation(int index)Returns the 3D location of the active track.booleanisFault()If a fatal error occurred while updating its state then this function will return true.booleanisInlier(int index)True if the specified track is an inlier used in motion estimationbooleanisNew(int index)True if the specified track was just spawnedbooleanprocess(T input)Process the new image and update the motion estimate.voidreset()Forget past history and tracking results, returning it to its initial state.voidsetCalibration(MonoPlaneParameters param)Specifies the camera's intrinsic and extrinsic parameters.
-
-
-
Constructor Detail
-
MonoPlaneInfinity_to_MonocularPlaneVisualOdometry
public MonoPlaneInfinity_to_MonocularPlaneVisualOdometry(VisOdomMonoPlaneInfinity<T> alg, DistancePlane2DToPixelSq distance, GenerateSe2_PlanePtPixel generator, ImageType<T> imageType)
-
-
Method Detail
-
setCalibration
public void setCalibration(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 ImageBase>- Parameters:
param- Camera calibration parameters
-
process
public boolean process(T input)
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 ImageBase>- Parameters:
input- Next image in the sequence.- Returns:
- If the motion estimate has been updated or not
-
getImageType
public ImageType<T> getImageType()
Description copied from interface:MonocularPlaneVisualOdometryType of input images it can process.- Specified by:
getImageTypein interfaceMonocularPlaneVisualOdometry<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.
-
getTrackLocation
public Point3D_F64 getTrackLocation(int index)
Description copied from interface:AccessPointTracks3DReturns the 3D location of the active track. If there is no location estimate yet then return null.- Specified by:
getTrackLocationin interfaceAccessPointTracks3D- Parameters:
index- The track's index in the active list- Returns:
- Location of the track or null otherwise
-
getTrackId
public long getTrackId(int index)
Description copied from interface:AccessPointTracksUsed to get the track ID of an active Track- Specified by:
getTrackIdin interfaceAccessPointTracks- Parameters:
index- which track- Returns:
- The track's ID
-
getAllTracks
public java.util.List<Point2D_F64> getAllTracks()
Description copied from interface:AccessPointTracksAll the points being actively tracked in pixel coordinates.- Specified by:
getAllTracksin interfaceAccessPointTracks- Returns:
- all active tracks in pixel coordinates
-
isInlier
public boolean isInlier(int index)
Description copied from interface:AccessPointTracksTrue if the specified track is an inlier used in motion estimation- Specified by:
isInlierin interfaceAccessPointTracks- Parameters:
index- The index in all- Returns:
- if it is an inlier or not
-
isNew
public boolean isNew(int index)
Description copied from interface:AccessPointTracksTrue if the specified track was just spawned- Specified by:
isNewin interfaceAccessPointTracks- Parameters:
index- The index in all- Returns:
- if it is new or not
-
-
DataMelt 3.0 © DataMelt by jWork.ORG