登录
首页 » 图形图像 » 根据多边形区域的填充原理可以推广到圆域的填充,由于圆的特殊属性,即可根据任何欲填充的像素点与圆心的距离是否大于或小于半径来判断是否在圆内或圆外,具体实现程序如下...

根据多边形区域的填充原理可以推广到圆域的填充,由于圆的特殊属性,即可根据任何欲填充的像素点与圆心的距离是否大于或小于半径来判断是否在圆内或圆外,具体实现程序如下...

于 2023-03-14 发布 文件大小:79.85 kB
0 212
下载积分: 2 下载次数: 1

代码说明:

根据多边形区域的填充原理可以推广到圆域的填充,由于圆的特殊属性,即可根据任何欲填充的像素点与圆心的距离是否大于或小于半径来判断是否在圆内或圆外,具体实现程序如下; 利用中点画圆算法实现边界程序: void CArea_FillData::MidpointCircle(int xc, int yc, int r, int color) {//画八分之一的圆 int x,y,d x=0 y=r d=1-r WholeCircle(xc,yc,x,y,color) while(x

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • 有关图形裁剪的程序,具体要求在文件中有描述
    有关图形裁剪的程序,具体要求在文件中有描述-Graphics of the cutting process, specific requirements are described in the document
    2022-03-19 02:46:43下载
    积分:1
  • very cool 3D terrain flight procedures View
    非常cool的三维地形飞行浏览程序-very cool 3D terrain flight procedures View
    2022-02-16 04:24:24下载
    积分:1
  • MFC中ListCtrl控件的应用,插入图片等
    MFC中ListCtrl控件的应用,插入图片等-ListCtrl controls in MFC application, insert pictures, etc.
    2023-08-28 06:30:04下载
    积分:1
  • 2D矢量图形库cairo的c++版本,简化2D矢量图形软件的开发。
    2D矢量图形库cairo的c++版本,简化2D矢量图形软件的开发。-2D vector graphics library cairo in c++ version, simplified 2D vector graphics software.
    2022-04-09 03:45:06下载
    积分:1
  • PYTHON has made a small program
    一个PYTHON小程序-PYTHON has made a small program
    2022-02-06 21:34:58下载
    积分:1
  • 1-32是:图形应用篇 33-66是:界面设计篇 67-84是:图形处理篇 85-100是:数值分析篇-1-32 is: the application of articles 33-66 graphics is: interface design articles 67-84 is: graphics processing chapter 85-100 are: Numerical Analysis Section
    2022-03-06 09:10:34下载
    积分:1
  • NVIDIA实现硬件阴影贴图的源代码 需要硬件支持DX8.1的显卡。
    NVIDIA实现硬件阴影贴图的源代码 需要硬件支持DX8.1的显卡。-NVIDIA hardware shadow mapping of the source code necessary hardware support 24x graphics.
    2022-07-03 05:46:05下载
    积分:1
  • The spectrum sensing of a wideband frequency range is studied by dividing it int...
    Cognitive radio frequency spectrum detection-The spectrum sensing of a wideband frequency range is studied by dividing it into multiple subbands. It is assumed that in each subband either a primary user (PU) is active or absent in a additive white Gaussian noise environment with an unknown variance. It is also assumed that at least a minimum given number of subbands are vacant of PUs. In this multiple interrelated hypothesis testing problem, the noise variance is estimated and a generalised likelihood ratio detector is proposed to identify possible spectrum holes at a secondary user (SU). Provided that it is known that a specific PU can occupy a subset of subbands simultaneously, a grouping algorithm which allows faster spectrum sensing is proposed. The collaboration of multiple SUs can also be considered in order to enhance the detection performance. The collaborative algorithms are compared in terms of the required exchange information among SUs in some collaboration
    2022-04-01 19:11:06下载
    积分:1
  • 种子填充法: 1、原理:将区域内的一点(种子)赋予给定的颜色,然后将这种颜色扩展到整个区域内...
    种子填充法: 1、原理:将区域内的一点(种子)赋予给定的颜色,然后将这种颜色扩展到整个区域内 -Seed filling: 1, Principle: The region that (seeds) to give a given color, the color and then extended to the entire region
    2022-03-17 20:03:39下载
    积分:1
  • corrosion algorithm, morphology algorithm relatively basic operation
    腐蚀算法,形态学算法中比较基本的操作-腐蚀,通过MATLAB编程实现,-corrosion algorithm, morphology algorithm relatively basic operation-corrosion, through MATLAB programming,
    2022-04-09 06:50:10下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载