彩色图像的分割处理程序设计+Hough算法(16)
时间:2016-12-16 21:10 来源:毕业论文 作者:毕业论文 点击:次
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) (责任编辑:qin) |