Class Odometry
- Namespace
- OpenCvSharp
- Assembly
- OpenCvSharp.dll
Odometry algorithm that computes the rigid transformation between two frames.
public class Odometry : CvObject, IDisposable
- Inheritance
-
Odometry
- Implements
- Inherited Members
Constructors
Odometry()
Creates an Odometry object with default settings.
public Odometry()
Odometry(OdometryType)
Creates an Odometry object of the given type.
public Odometry(OdometryType otype)
Parameters
otypeOdometryTypeodometry type.
Odometry(OdometryType, OdometrySettings, OdometryAlgoType)
Creates an Odometry object of the given type with custom settings.
public Odometry(OdometryType otype, OdometrySettings settings, OdometryAlgoType algtype)
Parameters
otypeOdometryTypeodometry type.
settingsOdometrySettingsodometry settings.
algtypeOdometryAlgoTypeodometry algorithm type.
Methods
Compute(InputArray, InputArray, InputArray, InputArray, OutputArray)
Computes the rigid transformation between two RGB-D frames so that Rt * src = dst.
public bool Compute(InputArray srcDepth, InputArray srcRGB, InputArray dstDepth, InputArray dstRGB, OutputArray Rt)
Parameters
srcDepthInputArraysource depth ("original" image).
srcRGBInputArraysource RGB.
dstDepthInputArraydestination depth ("rotated" image).
dstRGBInputArraydestination RGB.
RtOutputArrayRigid transformation output (4x4).
Returns
- bool
true on success, false if failed to find the transformation.
Compute(InputArray, InputArray, OutputArray)
Computes the rigid transformation between two depth images so that Rt * src = dst.
public bool Compute(InputArray srcDepth, InputArray dstDepth, OutputArray Rt)
Parameters
srcDepthInputArraysource depth ("original" image).
dstDepthInputArraydestination depth ("rotated" image).
RtOutputArrayRigid transformation output (4x4).
Returns
- bool
true on success, false if failed to find the transformation.
Compute(OdometryFrame, OdometryFrame, OutputArray)
Computes the rigid transformation between two prepared frames so that Rt * src = dst.
public bool Compute(OdometryFrame srcFrame, OdometryFrame dstFrame, OutputArray Rt)
Parameters
srcFrameOdometryFramesrc frame ("original" image).
dstFrameOdometryFramedst frame ("rotated" image).
RtOutputArrayRigid transformation output (4x4).
Returns
- bool
true on success, false if failed to find the transformation.
GetNormalsComputer()
Returns the normals computer used by this odometry.
public RgbdNormals GetNormalsComputer()
Returns
PrepareFrame(OdometryFrame)
Prepares the frame for odometry calculation (as both src and dst frame).
public void PrepareFrame(OdometryFrame frame)
Parameters
frameOdometryFrameframe to prepare.
PrepareFrames(OdometryFrame, OdometryFrame)
Prepares the src and dst frames for odometry calculation.
public void PrepareFrames(OdometryFrame srcFrame, OdometryFrame dstFrame)
Parameters
srcFrameOdometryFrameframe will be prepared as src frame ("original" image).
dstFrameOdometryFrameframe will be prepared as dst frame ("rotated" image).
Release()
Clean up any resources being used.
public void Release()