Commit 0524be05 cuiyadong

提高检测精度

1 个父辈 9e086d51
......@@ -31,13 +31,18 @@ namespace AccImage
{
//与平均半径差值在10%以内,认为OK
double diff = avgRadius - currentMaxRadius;
if (diff/avgRadius <= 0.4)
if (diff/avgRadius <= 0.5)
{
isValid = true;
}
}
if (isValid)
{
if(currentMaxRadius == 0)
{
isEnd = true;
return;
}
Circle circle = new Circle();
if(theFixRadius != -1 && currentMaxRadius > theFixRadius)
{
......@@ -78,6 +83,8 @@ namespace AccImage
}
List<List<Circle>> allGroupCircle = new List<List<Circle>>();
List<int> allreadyGroup = new List<int>();
//List<Circle> groupCircle = new List<Circle>();
//groupCircle.Clear();
while (true)
{
List<Circle> groupCircle = new List<Circle>();
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!