Table of Contents

Class LightGlueMatcher

Namespace
OpenCvSharp
Assembly
OpenCvSharp.dll

LightGlue: a deep learning based descriptor matcher with an attention mechanism (OpenCV 5). Runs an ONNX model through the DNN module. Requires OpenCV built with the dnn module.

public class LightGlueMatcher : DescriptorMatcher, IDisposable
Inheritance
LightGlueMatcher
Implements
Inherited Members

Methods

ClearPairInfo()

Clears stored pair context information.

Create(string, float, int, int)

Creates a LightGlueMatcher from a model file path. On Windows, a non-ASCII path is read into memory and passed through CreateFromMemory(byte[], float, int, int) instead, since the native path overload is marshaled through the ANSI code page.

CreateFromMemory(byte[], float, int, int)

Creates a LightGlueMatcher from an in-memory ONNX model buffer.

SetPairInfo(InputArray, InputArray, Size, Size)

Sets the keypoint and image size context for the next match() call. Must be called before match()/knnMatch()/radiusMatch() unless using automatic context from in-process ALIKED instances.