Class OdometryFrame
- Namespace
- OpenCvSharp
- Assembly
- OpenCvSharp.dll
An object that keeps per-frame data for Odometry algorithms.
public class OdometryFrame : CvObject, IDisposable
- Inheritance
-
OdometryFrame
- Implements
- Inherited Members
Constructors
OdometryFrame(InputArray, InputArray, InputArray, InputArray)
Constructs a new OdometryFrame object. All non-empty images should have the same size.
public OdometryFrame(InputArray depth = default, InputArray image = default, InputArray mask = default, InputArray normals = default)
Parameters
depthInputArrayA depth image.
imageInputArrayAn BGR or grayscale image (or null if it's not required for the used ICP algorithm).
maskInputArrayA user-provided mask of valid pixels, should be CV_8UC1.
normalsInputArrayA user-provided normals to the depth surface, should be CV_32FC4.
Methods
GetDepth(OutputArray)
Gets the original user-provided depth image.
public void GetDepth(OutputArray depth)
Parameters
depthOutputArray
GetGrayImage(OutputArray)
Gets the gray image generated from the user-provided BGR/Gray image.
public void GetGrayImage(OutputArray image)
Parameters
imageOutputArray
GetImage(OutputArray)
Gets the original user-provided BGR/Gray image.
public void GetImage(OutputArray image)
Parameters
imageOutputArray
GetMask(OutputArray)
Gets the valid pixels mask generated for the ICP calculations intersected with the user-provided mask.
public void GetMask(OutputArray mask)
Parameters
maskOutputArray
GetNormals(OutputArray)
Gets the normals image either generated for the ICP calculations or user-provided.
public void GetNormals(OutputArray normals)
Parameters
normalsOutputArray
GetProcessedDepth(OutputArray)
Gets the depth image generated for ICP algorithm needs.
public void GetProcessedDepth(OutputArray depth)
Parameters
depthOutputArray
GetPyramidAt(OutputArray, OdometryFramePyramidType, long)
Gets the image generated for the ICP calculations from one of the pyramids specified by pyrType.
public void GetPyramidAt(OutputArray img, OdometryFramePyramidType pyrType, long level)
Parameters
imgOutputArrayOutput image.
pyrTypeOdometryFramePyramidTypeType of pyramid.
levellongLevel in the pyramid.
GetPyramidLevels()
Gets the amount of levels in pyramids, or 0 if no pyramids were prepared yet.
public int GetPyramidLevels()
Returns
Release()
Clean up any resources being used.
public void Release()