mirror of
https://github.com/opencv/opencv.git
synced 2025-06-08 01:53:19 +08:00
Merge pull request #11279 from shimat:fix_LSD_test
This commit is contained in:
commit
a68ffc81da
@ -224,7 +224,7 @@ TEST_F(Imgproc_LSD_NONE, whiteNoise)
|
|||||||
for (int i = 0; i < EPOCHS; ++i)
|
for (int i = 0; i < EPOCHS; ++i)
|
||||||
{
|
{
|
||||||
GenerateWhiteNoise(test_image);
|
GenerateWhiteNoise(test_image);
|
||||||
Ptr<LineSegmentDetector> detector = createLineSegmentDetector(LSD_REFINE_STD);
|
Ptr<LineSegmentDetector> detector = createLineSegmentDetector(LSD_REFINE_NONE);
|
||||||
detector->detect(test_image, lines);
|
detector->detect(test_image, lines);
|
||||||
|
|
||||||
if(50u >= lines.size()) ++passedtests;
|
if(50u >= lines.size()) ++passedtests;
|
||||||
|
Loading…
Reference in New Issue
Block a user