zoukankan      html  css  js  c++  java
  • EmguCV 简单图形绘制

    一、圆

      public static void cvCircle(

          IntPtr img,

          System.Drawing.Point center,    //Center of the circle

          int radius,      //Radius of the circle

          MCvScalar color,  //Color of the circle

          int thickness,    if negative indicates that a filled circle has to be drawn

          Emgu.CV.CvEnum.LINE_TYPE lineType,

          int shift      //Number of fractional bits in the center coordinates and radius value

      )

       eg:

      CvInvoke.cvCircle(dst1, new Point(120, 120), 100, new MCvScalar(255, 255, 255), 3, Emgu.CV.CvEnum.LINE_TYPE.CV_AA, 0);

    二、线段

      public static void cvLine(

          IntPtr img,

          System.Drawing.Point pt1,

          System.Drawing.Point pt2,

          MCvScalar color,

          int thickness,

          Emgu.CV.CvEnum.LINE_TYPE lineType,

          int shift

      )

  • 相关阅读:
    一篇文章讲清楚markdown
    webservice初体验-cxf
    IReport与web项目整合
    泛型
    观察者模式
    策略模式
    设计模式与面向对象
    JavaI/O(输入/输出)
    面向对象
    Java基础类库
  • 原文地址:https://www.cnblogs.com/alsofly/p/3552635.html
Copyright © 2011-2022 走看看