File: StudyRGB2Gray.txtName: 彩色转灰度算法彻底学习Author: zyl910Version: V1.0Updata: 2006-5-22一、基础 对于彩色转灰度,有一个很著名的心理学公式:Gray = R*0.299 + G*0.587 + B*0.114二、整数算....
分类:
编程语言 时间:
2014-10-25 22:50:40
阅读次数:
208
>_ 5 6 using namespace cv; 7 using namespace std; 8 9 int edgeThresh = 1;10 Mat image, gray, edge, cedge;11 12 // define a trackbar callback13 void .....
分类:
其他好文 时间:
2014-10-22 23:22:34
阅读次数:
368
#条件声明(在另一篇文章中已有详细讲解说明了),也是解决IE兼容性最常用的方法 #对于不同版本的IE相应的CSS规则,也是一种可选择的方式。IE8及或下版本:添加9(\9)属性后IE7或以下版本:添加属性前添加*IE6:属性前添加_.box { background: gray; /* stand....
分类:
Web程序 时间:
2014-10-14 16:53:48
阅读次数:
227
ACID在传数据库系统中,事务具有ACID 4个属性(Jim Gray在《事务处理:概念与技术》中对事务进行了详尽的讨论)。(1) 原子性(Atomicity):事务是一个原子操作单元,其对数据的修改,要么全都执行,要么全都不执行。(2) 一致性(Consistent):在事务开始和完成时,数据都必...
分类:
其他好文 时间:
2014-10-11 16:24:55
阅读次数:
323
[leetcode]Given a non-negative integer n representing the total number of bits in the code, print the sequence of gray code. A gray code sequence must begin with 0....
分类:
其他好文 时间:
2014-10-10 15:07:44
阅读次数:
167
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...
分类:
其他好文 时间:
2014-10-09 13:16:43
阅读次数:
179
使用下面代码设置分隔线颜色,无效,从这两行代码看,应该没什么问题吧,也是很常规的写法。
listView.setDividerHeight(1);
listView.setDivider(new ColorDrawable(Color.GRAY));
为什么无效呢?看看setDivider的源码
public void setDivider(Drawa...
分类:
移动开发 时间:
2014-09-24 14:58:17
阅读次数:
155
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 numb...
分类:
其他好文 时间:
2014-09-20 07:45:26
阅读次数:
195
.Coupon{ color:@Gray; h5{ color:@DimGray;} li{ position:relative;margin:0;font-size:12px; line-height:22px;cursor:pointer; &:hover .coupont_layer{disp...
分类:
Web程序 时间:
2014-09-18 18:05:34
阅读次数:
175
从测试设计方法分类测试名称测试内容Black box黑盒测试把软件系统当作一个“黑箱”,无法了解或使用系统的内部结构及知识。从软件的行为,而不是内部结构出发来设计测试.White box白盒测试设计者可以看到软件系统的内部结构,并且使用软件的内部知识来指导测试数据及方法的选择。Gray box.灰盒...
分类:
其他好文 时间:
2014-09-16 18:53:00
阅读次数:
242