OpenCV for Unity 3.0.5
Enox Software / Please refer to OpenCV official document ( http://docs.opencv.org/5.0/index.html ) for the details of the argument of the method.
Loading...
Searching...
No Matches
OpenCVForUnity.PtcloudModule.VisualOdometry Class Reference

Monocular visual odometry pipeline. More...

Public Member Functions

IntPtr getNativeObjAddr ()
 
int getNumKeyframes ()
 
int getNumMapPoints ()
 
OdometryParams getParams ()
 
bool processFrame (Mat image)
 Feed one image. Returns true if a pose was emitted.
 
void reset ()
 Reset to NOT_INITIALIZED, clearing map and trajectory.
 
void setParams (OdometryParams _params)
 
- Public Member Functions inherited from OpenCVForUnity.DisposableObject
void Dispose ()
 Releases resources used by this object.
 
void ThrowIfDisposed ()
 Throws ObjectDisposedException if this object has been disposed.
 

Static Public Member Functions

static VisualOdometry __fromPtr__ (IntPtr addr)
 
static VisualOdometry create (Feature2D detector, DescriptorMatcher matcher, Mat cameraMatrix)
 
static VisualOdometry create (Feature2D detector, DescriptorMatcher matcher, Mat cameraMatrix, Mat distCoeffs)
 
static VisualOdometry create (Feature2D detector, DescriptorMatcher matcher, Mat cameraMatrix, Mat distCoeffs, OdometryParams _params)
 
- Static Public Member Functions inherited from OpenCVForUnity.DisposableObject
static IntPtr ThrowIfNullIntPtr (IntPtr ptr)
 Returns the native pointer, or throws CoreModule.CvException if it is zero.
 

Protected Member Functions

override void Dispose (bool disposing)
 
- Protected Member Functions inherited from OpenCVForUnity.DisposableOpenCVObject
 DisposableOpenCVObject ()
 Initializes a new instance with a zero native pointer and dispose enabled.
 
 DisposableOpenCVObject (bool isEnabledDispose)
 Initializes a new instance with a zero native pointer.
 
 DisposableOpenCVObject (IntPtr ptr)
 Initializes a new instance with the specified native pointer and dispose enabled.
 
 DisposableOpenCVObject (IntPtr ptr, bool isEnabledDispose)
 Initializes a new instance with the specified native pointer.
 
- Protected Member Functions inherited from OpenCVForUnity.DisposableObject
 DisposableObject ()
 Initializes a new instance with dispose enabled.
 
 DisposableObject (bool isEnabledDispose)
 Initializes a new instance.
 

Additional Inherited Members

- Package Attributes inherited from OpenCVForUnity.DisposableOpenCVObject
- Properties inherited from OpenCVForUnity.DisposableObject
bool IsDisposed [get, protected set]
 
bool IsEnabledDispose [get, set]
 

Detailed Description

Monocular visual odometry pipeline.

State machine: NOT_INITIALIZED → INITIALIZING (H/F two-view bootstrap) → TRACKING (per-frame PnP + local-map refinement). Tracking failure rewinds to INITIALIZING.

Purely in-memory: feed images with processFrame and read back the trajectory and map with getTrajectory / getMap. See samples/slam for driving this from a directory of images and writing the result to disk (e.g. COLMAP format).

Member Function Documentation

◆ __fromPtr__()

static VisualOdometry OpenCVForUnity.PtcloudModule.VisualOdometry.__fromPtr__ ( IntPtr addr)
static

◆ create() [1/3]

static VisualOdometry OpenCVForUnity.PtcloudModule.VisualOdometry.create ( Feature2D detector,
DescriptorMatcher matcher,
Mat cameraMatrix )
static

◆ create() [2/3]

static VisualOdometry OpenCVForUnity.PtcloudModule.VisualOdometry.create ( Feature2D detector,
DescriptorMatcher matcher,
Mat cameraMatrix,
Mat distCoeffs )
static

◆ create() [3/3]

static VisualOdometry OpenCVForUnity.PtcloudModule.VisualOdometry.create ( Feature2D detector,
DescriptorMatcher matcher,
Mat cameraMatrix,
Mat distCoeffs,
OdometryParams _params )
static

◆ Dispose()

override void OpenCVForUnity.PtcloudModule.VisualOdometry.Dispose ( bool disposing)
protectedvirtual

◆ getNativeObjAddr()

IntPtr OpenCVForUnity.PtcloudModule.VisualOdometry.getNativeObjAddr ( )

◆ getNumKeyframes()

int OpenCVForUnity.PtcloudModule.VisualOdometry.getNumKeyframes ( )

◆ getNumMapPoints()

int OpenCVForUnity.PtcloudModule.VisualOdometry.getNumMapPoints ( )

◆ getParams()

OdometryParams OpenCVForUnity.PtcloudModule.VisualOdometry.getParams ( )

◆ processFrame()

bool OpenCVForUnity.PtcloudModule.VisualOdometry.processFrame ( Mat image)

Feed one image. Returns true if a pose was emitted.

◆ reset()

void OpenCVForUnity.PtcloudModule.VisualOdometry.reset ( )

Reset to NOT_INITIALIZED, clearing map and trajectory.

◆ setParams()

void OpenCVForUnity.PtcloudModule.VisualOdometry.setParams ( OdometryParams _params)

The documentation for this class was generated from the following file: