{
                cp.Entries[i] = Color.FromArgb(i, i, i);
            }
            houghImage.Palette = cp;

            Rectangle rectHough = new Rectangle(0, 0, 180, 180);
            System.Drawing.Imaging.BitmapData houghData = houghImage.LockBits(rectHough,
            System.Drawing.Imaging.ImageLockMode.ReadWrite, houghImage.PixelFormat);
            IntPtr ptr = houghData.Scan0;
            int bytes = 180 * 180;
            byte[] grayHough = new byte[bytes];

            for (int i = 0; i < 180; i++)
            {
                for (int j = 0; j < 180; j++)
                {
                    grayHough[i * 180 + j] = Convert.ToByte(houghMap[i, j] * 255 /
                    maxHough);
                }
            }
            System.Runtime.InteropServices.Marshal.Copy(grayHough, 0, ptr, bytes);
            houghImage.UnlockBits(houghData);

            Graphics g = e.Graphics;
            g.DrawImage(houghImage, 40, 20, 180, 180);

            g.FillRectangle(Brushes.Black, 250, 20, 180, 180);

            double thresholding = maxHough * 0.6;
            double k, b;
            int x1, x2, y1, y2;
            
            for (int i = 0; i < 180; i++)
            {
                for (int j = 0; j < 180; j++)
                {
                    if (houghMap[i, j] > thresholding)
                    {
                        if (i == 90)
                        {
                            g.DrawLine(Pens.White, 250, 200, 250, 20);
上一篇:ASP.net+sqlserver在线考试管理系统设计与实现
下一篇:Linux服务器数据安全方案的设计与实现

基于Apriori算法的电影推荐

PHP+IOS的会议管理系统的设计+ER图

数据挖掘在电子商务中的应用

数据挖掘的主题标绘数据获取技术与实现

基于PageRank算法的网络数据分析

基于神经网络的验证码识别算法

基于网络的通用试题库系...

神经外科重症监护病房患...

志愿者活动的调查问卷表

国内外图像分割技术研究现状

中国学术生态细节考察《...

医院财务风险因素分析及管理措施【2367字】

承德市事业单位档案管理...

C#学校科研管理系统的设计

AT89C52单片机的超声波测距...

公寓空调设计任务书

10万元能开儿童乐园吗,我...