高斯模糊函数的升级版本,带剪裁区域。
函数check_rect()是处理剪裁区域矩形。如果不打算剪裁,只需要设置left, top, right, bottom都为0就可以了;另外位图的存储格式是上下反转的,如果正常剪裁的话,只需要设置bottom为 -bottom即可。...
分类:
其他好文 时间:
2014-08-01 16:10:51
阅读次数:
310
在Nagios的libexec下有check_nt这个插件,它就是用来检查windows机器的服务的。其功能类似于check_nrpe。不过还需要搭配另外一个软件NSClient++,它则类似于NRPE。我们需要下载NSClient合适的版本,然后安装在被监控的windows主机上。OverviewofNRPENSClient++的原理如下图:可..
分类:
移动开发 时间:
2014-08-01 13:56:52
阅读次数:
12138
题目大意:
对平面上的点进行操作。
add x y 在 (x,y )上加一个点。
remove x y 移除 (x,y)上的点。
find x y 求出在(x,y)右上角离他最近的点,优先级是靠左,靠下。
思路分析:
find 操作 比较麻烦。
要保证x大的同时还要确保x最小,而且该x上还要有点。
这样要找大的时候要小的,就是在线段树上选择性的进入左子树还是右子树。
所以...
分类:
其他好文 时间:
2014-08-01 13:51:52
阅读次数:
241
问题描述:
Given two binary trees, write a function to check if they are equal or not.
Two binary trees are considered equal if they are structurally identical and the nodes have the same value.
解题思路:...
分类:
其他好文 时间:
2014-08-01 13:48:11
阅读次数:
183
一、创建对象 1、对象直接量。 var point = { x:0,y:0 }; //point就是一个对象,跟C#不同,它不需要一定有类才能创建对象。 2、通过new创建对象 var d = new Date(); //创建一个Date对象 3、原型 Object....
分类:
编程语言 时间:
2014-08-01 13:21:21
阅读次数:
200
AllowOverride all#修改地方Require all granted## Note that from this point forward you must specifically allow# particular features to be enabled - so if s...
分类:
其他好文 时间:
2014-08-01 12:56:51
阅读次数:
210
Shoulder bags are very nice to have, it can be fun and funky if you use it in the right clothes. It can also be a great gift to give your friends some...
分类:
其他好文 时间:
2014-08-01 12:52:31
阅读次数:
219
在驱动编程学习中,往往需要通过DbgPrint或者KdPrint来输出调试信息,对于Check版本,KdPrint只是DbgPrint的一个宏定义,而对于Free版本,KdPrint将被优化掉。这些输出信息可以通过DebugView对内核的监控来看到。KdPrint is identical to ...
分类:
数据库 时间:
2014-08-01 10:48:01
阅读次数:
245
1 $(document).ready(function () { 2 /*用正则表达式获取url传递的地址参数,split后获得地址数组*/ 3 bmap = new BMap.Map('mapcontainer'); 4 var point = new BMap.Point(116.404, ....
分类:
Web程序 时间:
2014-07-31 23:51:40
阅读次数:
264
dp[i][j][s]表示第i个人,在前j个问题解决了s个问题dp[i][j][s]=dp[i][j-1][s-1]*p[i][j]+dp[i][j-1][s]*(1-p[i][j]); 1 #include 2 #include 3 #include 4 #include 5 #include 6...
分类:
其他好文 时间:
2014-07-31 23:51:10
阅读次数:
290