文件名称:R

  • 所属分类:
  • 图形图像处理(光照,映射..)
  • 资源属性:
  • [Text]
  • 上传时间:
  • 2013-06-08
  • 文件大小:
  • 1kb
  • 下载次数:
  • 0次
  • 提 供 者:
  • 刘*
  • 相关连接:
  • 下载说明:
  • 别用迅雷下载,失败请重下,重下不扣分!

介绍说明--下载内容均来自于网络,请自行研究使用

下面我们给出Floyd-Steinberg算法的源代码。有一点要说明,我们原来介绍的程序都是先开一个char类型的缓冲区,用来存储新图数据,但在这个算法中,因为e有可能是负数,为了防止得到的值超出char能表示的范围,我们使用了一个int类型的缓冲区存储新值。另外,当按从左到右,从上到下的顺序处理象素时,处理过的象素以后不会再用到了,所以用这个int类型的缓冲区存储新值是可行的。全部象素处理完后,再将这些值拷贝到char类型的缓冲区去。-Below we give Floyd-Steinberg algorithm source code. One thing to note, our original procedures described are the first to open a buffer of type char is used to store the new map data, but in this algorithm, since e may be negative, in order to prevent the resulting value exceeds the char can be expressed range, we used a type int buffer to store the new value. In addition, when left to right, top to bottom in the order processing pixel, the processed pixel will be no longer used, so use this type int buffer to store the new value is feasible. All pixels dealt with, then these values ​ ​ are copied into the buffer to the char type.
(系统自动生成,下载前可以参看下载内容)

下载文件列表





R.txt

相关说明

  • 本站资源为会员上传分享交流与学习,如有侵犯您的权益,请联系我们删除.
  • 本站是交换下载平台,提供交流渠道,下载内容来自于网络,除下载问题外,其它问题请自行百度更多...
  • 请直接用浏览器下载本站内容,不要使用迅雷之类的下载软件,用WinRAR最新版进行解压.
  • 如果您发现内容无法下载,请稍后再次尝试;或者到消费记录里找到下载记录反馈给我们.
  • 下载后发现下载的内容跟说明不相乎,请到消费记录里找到下载记录反馈给我们,经确认后退回积分.
  • 如下载前有疑问,可以通过点击"提供者"的名字,查看对方的联系方式,联系对方咨询.

相关评论

暂无评论内容.

发表评论

*主  题:
*内  容:
*验 证 码:

源码中国 www.ymcn.org