菜单
  

                {
                    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);
  1. 上一篇:ASP.net+sqlserver在线考试管理系统设计与实现
  2. 下一篇:Linux服务器数据安全方案的设计与实现
  1. 基于MATLAB的图像增强算法设计

  2. jsp+sqlserver高校二手商品交...

  3. 基于Kinect的手势跟踪与识别算法设计

  4. JAVA基于安卓平台的医疗护工管理系统设计

  5. java+mysql设备监控记录的大...

  6. 基于核独立元分析的非线...

  7. 基于Hadoop的制造过程大数据存储平台构建

  8. 杂拟谷盗体内共生菌沃尔...

  9. 中考体育项目与体育教学合理结合的研究

  10. 十二层带中心支撑钢结构...

  11. 河岸冲刷和泥沙淤积的监测国内外研究现状

  12. 电站锅炉暖风器设计任务书

  13. 大众媒体对公共政策制定的影响

  14. 乳业同业并购式全产业链...

  15. 当代大学生慈善意识研究+文献综述

  16. java+mysql车辆管理系统的设计+源代码

  17. 酸性水汽提装置总汽提塔设计+CAD图纸

  

About

751论文网手机版...

主页:http://www.751com.cn

关闭返回