Commit 0524be05 cuiyadong

提高检测精度

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