毕业论文

打赏
当前位置: 毕业论文 > 计算机论文 >

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

时间:2016-12-16 21:10来源:毕业论文
} else if (i == 0) g.DrawLine(Pens.White, 250, 430, 250, 20); else { k = (-1 / Math.Tan(i * Math.PI / 180)); b = ((j - 90) * 8 / Math.Sin(i * Math.PI / 180)) *180 / 512; if (b = 0 b = 180) { x1 = 0; y


                        }
                        else if (i == 0)
                            g.DrawLine(Pens.White, 250, 430, 250, 20);
                        else
                        {
                            k = (-1 / Math.Tan(i * Math.PI / 180));
                            b = ((j - 90) * 8 / Math.Sin(i * Math.PI / 180)) *180 / 512;
                            
                            if (b >= 0 && b <= 180)
                            {
                                x1 = 0;
                                y1 = Convert.ToInt16(b);
                                double temp = -b / k;
                                if (temp <= 180 && temp >= 0)
                                {
                                    x2 = Convert.ToInt16(temp);
                                    y2 = 0;
                                }
                                else if (temp >= -180 && temp < 0)
                                {
                                    x2 = Convert.ToInt16((180 - b) / k); 彩色图像的分割处理程序设计+Hough算法(19):http://www.751com.cn/jisuanji/lunwen_1067.html
------分隔线----------------------------
推荐内容