Table of Contents

Method CreateFromMemory

Namespace
OpenCvSharp
Assembly
OpenCvSharp.dll

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

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

public static LightGlueMatcher CreateFromMemory(byte[] modelData, float scoreThreshold = 0, int backend = 0, int target = 0, LightGlueType type = LightGlueType.Aliked)

Parameters

modelData byte[]

Buffer containing the model data.

scoreThreshold float

Match confidence threshold.

backend int

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

target int

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

type LightGlueType

Variant of the ONNX model.

Returns

LightGlueMatcher