Table of Contents

Class ALIKED

Namespace
OpenCvSharp
Assembly
OpenCvSharp.dll

ALIKED: deep learning based local feature detector and descriptor (OpenCV 5). Runs an ONNX model through the DNN module. Requires OpenCV built with the dnn module.

public class ALIKED : Feature2D, IDisposable
Inheritance
ALIKED
Implements
Inherited Members

Methods

Create(string, Size?, bool, int, int, int)

Creates ALIKED from a model file path.

public static ALIKED Create(string modelPath, Size? inputSize = null, bool normalizeDescriptors = true, int engine = 2, int backend = 0, int target = 0)

Parameters

modelPath string

Path to the ONNX model file.

inputSize Size?

Input image size for the network. Default is 640x640.

normalizeDescriptors bool

Whether to L2-normalize descriptors. Default is true.

engine int

DNN engine type (cv::dnn::EngineType). Default is 2 (ENGINE_NEW).

backend int

DNN backend (see Backend). Default is 0 (DEFAULT).

target int

DNN target (see Target). Default is 0 (CPU).

Returns

ALIKED

CreateFromMemory(byte[], Size?, bool, int, int, int)

Creates ALIKED from an in-memory ONNX model buffer.

public static ALIKED CreateFromMemory(byte[] modelData, Size? inputSize = null, bool normalizeDescriptors = true, int engine = 2, int backend = 0, int target = 0)

Parameters

modelData byte[]

Buffer containing the model data.

inputSize Size?

Input image size for the network. Default is 640x640.

normalizeDescriptors bool

Whether to L2-normalize descriptors. Default is true.

engine int

DNN engine type (cv::dnn::EngineType). Default is 2 (ENGINE_NEW).

backend int

DNN backend (see Backend). Default is 0 (DEFAULT).

target int

DNN target (see Target). Default is 0 (CPU).

Returns

ALIKED