The gray code is a binary numeral system where two successive values differ in only one bit.
Given a non-negative integer n representing the total number of bits in the code, print the sequence of ...
分类:
其他好文 时间:
2015-02-13 09:21:11
阅读次数:
155
The gray code is a binary numeral system where two successive valuesdiffer in only one bit.
Given a non-negative integer n representing the totalnumber of bits in the code, print the sequence of gray...
分类:
其他好文 时间:
2015-02-11 09:24:25
阅读次数:
233
在我们日常开发中,操作和转换数组是一件很常见的操作,下面我们来看一个实例:代码如下:var desColors = [], srcColors = [ {r: 255, g: 255, b: 255 }, // White {r: 128, g: 128, b: 128 }, // Gray {r:...
分类:
编程语言 时间:
2015-02-10 15:16:04
阅读次数:
221
这篇文章是吧很久以前学的一个神奇算法归一下档,在公交车上突然想起来了,觉得还是很有必要再仔细梳理一遍,对以后也许有用。先看图再说话:Gray Scott Reaction-Diffusion算法, 在模拟微观细胞的运动或者类似的效果是非常神奇。理论链接:http://www.karlsims.com...
分类:
编程语言 时间:
2015-02-09 22:50:28
阅读次数:
175
The gray code is a binary numeral system where two successive values differ in only one bit.Given a non-negative integernrepresenting the total number...
分类:
其他好文 时间:
2015-02-09 15:22:50
阅读次数:
115
<!doctype?html>
<html>
<head>
<meta?charset="UTF-8">
<title>Document</title>
<style>
.wrap{background:?gray;width:?100px;height:?30px;overflow:?hidden;
/*关键属性*/position:?relative;}
.btn...
分类:
Web程序 时间:
2015-01-30 19:44:51
阅读次数:
283
计算直方图calcHist直方图是对数据集合的统计 ,并将统计结果分布于一系列提前定义的bins中。这里的数据不只指的是灰度值 ,统计数据可能是不论什么能有效描写叙述图像的特征。如果有一个矩阵包括一张图像的信息 (灰度值 0-255):gray既然已知数字的范围包括256个值, 我们能够将这个范围切...
分类:
其他好文 时间:
2015-01-30 15:34:54
阅读次数:
198
一、基础 对于彩色转灰度,有一个很著名的心理学公式:Gray = R*0.299 + G*0.587 + B*0.114二、整数算法 而实际应用时,希望避免低速的浮点运算,所以需要整数算法。 注意到系数都是3位精度的没有,我们可以将它们缩放1000倍来实现整数运算算法:Gray = (R*29...
分类:
编程语言 时间:
2015-01-29 23:52:30
阅读次数:
279
----本文摘自作者ZYL910的博客一、基础 对于彩色转灰度,有一个很著名的心理学公式:Gray = R*0.299 + G*0.587 + B*0.114二、整数算法 而实际应用时,希望避免低速的浮点运算,所以需要整数算法。 注意到系数都是3位精度的没有,我们可以将它们缩放1000倍来实现...
分类:
编程语言 时间:
2015-01-29 22:32:36
阅读次数:
262
介绍用Python来做网络安全,入侵测试和软件攻击的书。
超好的黑客入门书籍,作者用python演示了如何用最基础的方式进行黑客攻击。
http://pan.baidu.com/s/1c0Elquc
与另一本 Gray hat python 相对应...
分类:
编程语言 时间:
2015-01-24 09:01:26
阅读次数:
210