Commit 10402c8a authored by Vladislav Vinogradov's avatar Vladislav Vinogradov

fixed gpu HoughCircles test

parent 0d12f451
...@@ -130,7 +130,7 @@ GPU_TEST_P(HoughCircles, Accuracy) ...@@ -130,7 +130,7 @@ GPU_TEST_P(HoughCircles, Accuracy)
const bool useRoi = GET_PARAM(2); const bool useRoi = GET_PARAM(2);
const float dp = 2.0f; const float dp = 2.0f;
const float minDist = 10.0f; const float minDist = 0.0f;
const int minRadius = 10; const int minRadius = 10;
const int maxRadius = 20; const int maxRadius = 20;
const int cannyThreshold = 100; const int cannyThreshold = 100;
...@@ -163,7 +163,7 @@ GPU_TEST_P(HoughCircles, Accuracy) ...@@ -163,7 +163,7 @@ GPU_TEST_P(HoughCircles, Accuracy)
{ {
cv::Vec3f gold = circles_gold[j]; cv::Vec3f gold = circles_gold[j];
if (std::fabs(cur[0] - gold[0]) < minDist && std::fabs(cur[1] - gold[1]) < minDist && std::fabs(cur[2] - gold[2]) < minDist) if (std::fabs(cur[0] - gold[0]) < 5 && std::fabs(cur[1] - gold[1]) < 5 && std::fabs(cur[2] - gold[2]) < 5)
{ {
found = true; found = true;
break; break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment