kOldAver[i * 3 + 2] = Convert.ToInt16(kSum[i * 3 + 2] /
kNum[i]);
kOldAver[i * 3 + 1] = Convert.ToInt16(kSum[i * 3 + 1] /
kNum[i]);
kOldAver[i * 3] = Convert.ToInt16(kSum[i * 3] / kNum[i]);
}
}
int kkk = 0;
count++;
for (int i = 0; i < numbers; i++)
{
if (kAver[i * 3 + 2] == kOldAver[i * 3 + 2] && kAver[i * 3 + 1] ==
kOldAver[i * 3 + 1] && kAver[i * 3] == kOldAver[i * 3])
kkk++;
}
if (kkk == numbers || count == 100)
break;
}
for (int i = 0; i < bytes; i++)
{
for (int j = 0; j < numbers; j++)
{
if (segmentMap[i] == j) 彩色图像的分割处理程序设计+Hough算法(16):http://www.youerw.com/jisuanji/lunwen_1067.html