mirror of
https://github.com/opencv/opencv.git
synced 2026-12-02 13:16:32 -06:00
tests: reduce iterations, input sizes and perf grids of slow tests
Signed-off-by: abhishek-gola <abhishek@opencv.org>
This commit is contained in:
committed by
Abhishek Gola
parent
8a1083b85a
commit
0cfdeb800f
@@ -132,7 +132,8 @@ TEST(Features2d_DISK, MaxKeypointsAndThreshold)
|
||||
|
||||
const std::string modelPath = cvtest::findDataFile("dnn/disk.onnx", false);
|
||||
|
||||
Ptr<DISK> detector = DISK::create(modelPath);
|
||||
// The cap and threshold logic is resolution independent; 384x384 still gives >1000 keypoints.
|
||||
Ptr<DISK> detector = DISK::create(modelPath, -1, 0.0f, Size(384, 384));
|
||||
ASSERT_TRUE(detector);
|
||||
|
||||
Mat img = imread(cvtest::findDataFile("shared/lena.png"));
|
||||
@@ -171,7 +172,8 @@ TEST(Features2d_DISK, MaskSupport)
|
||||
|
||||
const std::string modelPath = cvtest::findDataFile("dnn/disk.onnx", false);
|
||||
|
||||
Ptr<DISK> detector = DISK::create(modelPath);
|
||||
// 384x384 keeps a non-unit image-to-net scale (512/384) for the coordinate and mask mapping.
|
||||
Ptr<DISK> detector = DISK::create(modelPath, -1, 0.0f, Size(384, 384));
|
||||
Mat img = imread(cvtest::findDataFile("shared/lena.png"));
|
||||
ASSERT_FALSE(img.empty());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user