opencv/modules/features2d
Maksim Shabunin f9e9567870
Merge pull request #25424 from mshabunin:fix-features2d-test
features2d: reduce accuracy test avg memory consumption #25424

**Merge with contrib**: https://github.com/opencv/opencv_contrib/pull/3722

I've observed high memory consumption in the `opencv_test_features2d` (x86_64, Ubuntu 22.04, Debug):

![image](https://github.com/opencv/opencv/assets/3304494/419d65d9-d727-4d1e-bdec-dbde6681c188)
It's always more than 180 MiB with peak at 535 MiB

This was caused by pointers to the algorithm object instances stored in the tests parameters. I've replaced them with factory functions/lambdas with the following result:

![image](https://github.com/opencv/opencv/assets/3304494/bd4ff0ea-3db4-4ab8-8e6d-192a3826e99c)
Now peak is at 355 MiB and permanent consumption level is ~ 1-2 MiB


**Note:** current peak is caused by KAZE features allocating 8x image size utility buffers. Not sure if we can or should do anything about it: 66fb5021e9/modules/features2d/src/kaze/KAZEFeatures.cpp (L61-L68)
2024-04-17 14:19:05 +03:00
..
3rdparty/mscr Merge pull request #24204 from georgthegreat:mser-license 2023-09-05 17:05:47 +03:00
doc Misc. typos 2018-07-31 18:44:23 +03:00
include/opencv2 Merge pull request #25042 from mshabunin:doc-upgrade 2024-03-05 16:19:45 +03:00
misc Merge pull request #25351 from Kumataro:fix25073_format_g 2024-04-10 15:17:15 +03:00
perf Merge remote-tracking branch 'upstream/3.4' into merge-3.4 2020-06-29 21:19:09 +00:00
src Clean up the Universal Intrinsic API. 2023-10-13 19:23:30 +08:00
test Merge pull request #25424 from mshabunin:fix-features2d-test 2024-04-17 14:19:05 +03:00
CMakeLists.txt Merge pull request #24204 from georgthegreat:mser-license 2023-09-05 17:05:47 +03:00