opencv/modules/features2d/test
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
..
ocl Merge pull request #25424 from mshabunin:fix-features2d-test 2024-04-17 14:19:05 +03:00
test_affine_feature.cpp Fixed mask handling in AffineFeature. 2023-05-17 12:04:52 +03:00
test_agast.cpp Merge pull request #12310 from cv3d:chunks/enum_interface 2018-09-21 18:12:35 +03:00
test_akaze.cpp ts: refactor OpenCV tests 2018-02-03 19:39:47 +00:00
test_blobdetector.cpp Merge pull request #21942 from pglotov:add-blob-contours 2022-10-07 19:07:51 +03:00
test_brisk.cpp Merge pull request #13361 from okriof:brisk_getset 2018-12-05 18:44:23 +03:00
test_descriptors_invariance.cpp Merge pull request #25424 from mshabunin:fix-features2d-test 2024-04-17 14:19:05 +03:00
test_descriptors_invariance.impl.hpp Merge pull request #25424 from mshabunin:fix-features2d-test 2024-04-17 14:19:05 +03:00
test_descriptors_regression.cpp Add missing std namespace qualifiers 2023-09-06 13:46:39 +03:00
test_descriptors_regression.impl.hpp different interpolation by double image (#23124) 2023-02-17 10:35:54 +03:00
test_detectors_invariance.cpp Merge pull request #25424 from mshabunin:fix-features2d-test 2024-04-17 14:19:05 +03:00
test_detectors_invariance.impl.hpp Merge pull request #25424 from mshabunin:fix-features2d-test 2024-04-17 14:19:05 +03:00
test_detectors_regression.cpp Merge pull request #21107 from take1014:remove_assert_21038 2021-11-27 18:34:52 +00:00
test_detectors_regression.impl.hpp features2d(test): extract common extract/invariance test code 2018-09-07 19:30:51 +03:00
test_drawing.cpp Merge pull request #13481 from dkurt:fix_13227 2018-12-25 17:29:12 +03:00
test_fast.cpp Merge pull request #12310 from cv3d:chunks/enum_interface 2018-09-21 18:12:35 +03:00
test_invariance_utils.hpp different interpolation by double image (#23124) 2023-02-17 10:35:54 +03:00
test_keypoints.cpp features2d(sift): move SIFT tests / headers / build fixes 2020-04-23 08:45:22 +00:00
test_main.cpp Merge pull request #11897 from Jakub-Golinowski:hpx_backend 2018-08-31 16:23:26 +03:00
test_matchers_algorithmic.cpp Merge pull request #17735 from pemmanuelviel:pev-fix-trees-descent 2020-08-03 18:00:59 +00:00
test_mser.cpp ts: refactor OpenCV tests 2018-02-03 19:39:47 +00:00
test_nearestneighbors.cpp Merge remote-tracking branch 'upstream/3.4' into merge-3.4 2021-12-03 12:32:49 +00:00
test_orb.cpp Merge remote-tracking branch 'upstream/3.4' into merge-3.4 2021-10-08 11:05:45 +00:00
test_precomp.hpp ts: refactor OpenCV tests 2018-02-03 19:39:47 +00:00
test_sift.cpp Merge pull request #18001 from Yosshi999:sift-8bit-descr 2020-08-17 10:28:44 +00:00
test_utils.cpp features2d: fix retainBest() implementation 2018-12-18 05:33:21 +00:00