彩色图像的分割处理程序设计+Hough算法(16)_毕业论文

毕业论文移动版

毕业论文 > 计算机论文 >

彩色图像的分割处理程序设计+Hough算法(16)


                                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)