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
modelPathstringPath to the ONNX model file.
inputSizeSize?Input image size for the network. Default is 640x640.
normalizeDescriptorsboolWhether to L2-normalize descriptors. Default is true.
engineintDNN engine type (cv::dnn::EngineType). Default is 2 (ENGINE_NEW).
backendintDNN backend (see Backend). Default is 0 (DEFAULT).
targetintDNN target (see Target). Default is 0 (CPU).
Returns
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
modelDatabyte[]Buffer containing the model data.
inputSizeSize?Input image size for the network. Default is 640x640.
normalizeDescriptorsboolWhether to L2-normalize descriptors. Default is true.
engineintDNN engine type (cv::dnn::EngineType). Default is 2 (ENGINE_NEW).
backendintDNN backend (see Backend). Default is 0 (DEFAULT).
targetintDNN target (see Target). Default is 0 (CPU).