Class RgbdNormals
Object that can compute the normals in an image. It is an object as it can cache data for speed efficiency
public class RgbdNormals : SharedPtrObject, IDisposable, IAlgorithm
- Inheritance
-
RgbdNormals
- Implements
- Inherited Members
- Extension Methods
Constructors
RgbdNormals(int, int, DepthType, IInputArray, int, Method)
Create a new RgbdNormals object that can compute the normals in an image.
public RgbdNormals(int rows, int cols, DepthType depth, IInputArray k, int windowSize = 5, RgbdNormals.Method method = Method.Fals)
Parameters
rows
intThe number of rows of the depth image normals will be computed on
cols
intThe number of cols of the depth image normals will be computed on
depth
DepthTypeThe depth of the normals (only CV_32F or CV_64F)
k
IInputArrayThe calibration matrix to use
windowSize
intThe window size to compute the normals: can only be 1,3,5 or 7
method
RgbdNormals.MethodThe methods to use
Properties
AlgorithmPtr
Pointer to the native algorithm object
public nint AlgorithmPtr { get; }
Property Value
Methods
Apply(IInputArray, IOutputArray)
Given a set of 3d points in a depth image, compute the normals at each point.
public void Apply(IInputArray points, IOutputArray normals)
Parameters
points
IInputArrayA rows x cols x 3 matrix of CV_32F/CV64F or a rows x cols x 1 CV_U16S
normals
IOutputArrayA rows x cols x 3 matrix
DisposeObject()
Release the unmanaged memory associated with this object
protected override void DisposeObject()