The test runs DISK plus LightGlue over 1024 keypoints and needs more
memory than the 32-bit Windows x86 build can hand out, so it died with
an OutOfMemoryError on a 512 MB allocation. Every other DNN-backed test
in the module already carries CV_TEST_TAG_MEMORY_2GB; this one was
missing it.
Move the model-variant enum out of the class so it follows the same
namespace-scoped style as dnn::EngineType. Also relax the DISK LightGlue
test tolerance.
ONNX Runtime version differences in floating-point can shift match
indices. Replace exact-match assertions with ±2 tolerance on both
match count and per-match index comparison.
Keep the single LightGlueMatcher public API from PR #28986. Add a Type
enum (ALIKED/DISK) to create() so users can select the model variant.
Internally, LightGlueMatcherImpl base class with two CV_FINAL subclasses
handles the variant-specific matching via pure virtual dispatch.