1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-29 23:33:05 +04:00

features2d: improve detector parameter validation

This commit is contained in:
Primary-H
2026-05-31 23:40:50 +08:00
parent ebb46d5f17
commit a7bb1d1e1e
9 changed files with 72 additions and 4 deletions
+6
View File
@@ -105,4 +105,10 @@ void CV_BRISKTest::run( int )
TEST(Features2d_BRISK, regression) { CV_BRISKTest test; test.safe_run(); }
TEST(Features2d_BRISK, invalidCreateParameters)
{
EXPECT_THROW(BRISK::create(30, 3, 0.0f), cv::Exception);
EXPECT_THROW(BRISK::create(30, 3, -1.0f), cv::Exception);
}
}} // namespace