Table of Contents

Method GetDescriptor

Namespace
OpenCvSharp.XFeatures2D
Assembly
OpenCvSharp.dll

GetDescriptor(double, double, int)

Retrieves the descriptor at the given position and orientation.

public float[] GetDescriptor(double y, double x, int orientation)

Parameters

y double

Position y on image.

x double

Position x on image.

orientation int

Orientation on image (0-360).

Returns

float[]

The computed descriptor.

GetDescriptor(double, double, int, double[], out float[])

Retrieves the descriptor at the given position and orientation, using a homography matrix for the warped grid.

public bool GetDescriptor(double y, double x, int orientation, double[] h, out float[] descriptor)

Parameters

y double

Position y on image.

x double

Position x on image.

orientation int

Orientation on image (0-360).

h double[]

Homography matrix for warped grid (row-major, 9 elements).

descriptor float[]

The computed descriptor.

Returns

bool

false if the descriptor could not be computed (e.g. it falls outside the image), true otherwise.