diff --git a/modules/features2d/test/test_descriptors_regression.cpp b/modules/features2d/test/test_descriptors_regression.cpp index 717cae58d6..7f44bc2bdd 100644 --- a/modules/features2d/test/test_descriptors_regression.cpp +++ b/modules/features2d/test/test_descriptors_regression.cpp @@ -162,7 +162,8 @@ protected: ts->set_failed_test_info( cvtest::TS::FAIL_INVALID_TEST_DATA ); } - image.create( 50, 50, CV_8UC3 ); + RNG rng; + image = cvtest::randomMat(rng, Size(50, 50), CV_8UC3, 0, 255, false); try { dextractor->compute( image, keypoints, descriptors );