fixed gpu HoughCircles test
This commit is contained in:
parent
0d12f451be
commit
10402c8a85
@ -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)
|
|||||||
{
|
{
|
||||||
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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user