mirror of
https://github.com/opencv/opencv.git
synced 2024-11-27 20:50:25 +08:00
Valgrind: fixed uninitialized image usage in descriptors regression tests
This commit is contained in:
parent
832a03821d
commit
2cda78ffac
@ -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 );
|
||||
|
Loading…
Reference in New Issue
Block a user