%膨胀操作
clc;clear;close;
I=imread('e:\role0\003i.bmp'); %载入图像
I1=rgb2gray(I);
subplot(1,2,1);
imshow(I1);
title('灰度图像')
grid on; %显示网格线
axis on; %显示坐标系
se=strel...
分类:
其他好文 时间:
2015-05-12 15:38:46
阅读次数:
147
作为一名iOS开发者,很多时候需要用到命令行,有时候一长串的命令实在让人讨厌,特别是一些常用的命令,我们要一遍一遍不厌其烦的去敲键盘。但是老鸟一般都不会这么傻,因为有 alias,通过alias 我们可以给常用的变量取个别名。
比如:在terminal 里面敲:
alias la="ls -a"
然后再敲:
la
发现了什么?呵呵,发现了什么,现在我们就...
分类:
其他好文 时间:
2015-05-12 15:38:46
阅读次数:
137
1、where 子句的作用是在对查询结果进行分组前,将不符合where条件的行去掉,即在分组之前过滤数据,where条件中不能包含聚组函数,使用where条件过滤出特定的行。
2、having 子句的作用是筛选满足条件的组,即在分组之后过滤数据,条件中经常包含聚组函数,使用having 条件过滤出特定的组,也可以使用多个分组标准进行分组。
Demo1:
select 类别, sum(数...
分类:
其他好文 时间:
2015-05-12 15:38:25
阅读次数:
70
stl容器的元素删除跟具体的按内存分配方式关系密切。按内存分配方式可以分为节点内存容器和连续内存容器。
节点内存容器指的是一种表现方式,包括list、slist等这样基于节点的容器(链表实现)和set、map、multiset、multimap等关联容器(平衡树实现)
连续内存容器指的是在一块连续的内存上保存元素的连续内存容器,比如vector、deque、string等。...
分类:
其他好文 时间:
2015-05-12 15:37:40
阅读次数:
97
仿 Hola桌面 Launcher 定制 滑动文件夹 之 拖动分析...
分类:
其他好文 时间:
2015-05-12 15:37:37
阅读次数:
157
该视频介绍了如何开发Department Scope及介绍如何在Scope中使用关键词keyword。...
分类:
其他好文 时间:
2015-05-12 15:38:20
阅读次数:
99
Balanced Binary Tree
Given a binary tree, determine if it is height-balanced.
For this problem, a height-balanced binary tree is defined as a binary tree in which the depth of the two subtrees...
分类:
其他好文 时间:
2015-05-12 15:37:49
阅读次数:
113
由于OpenStack Kilo增加很多针对NUMA体系结构的增强功能,所以又重新温习了下NUMA相关的知识,简单做个笔记。 1. NUMA的几个概念(Node,socket,core,thread) 对于socket,core和thread会有不少文章介绍,这里简单说一下,具体参见下图: 一句话总结:socket就是主板上的CPU插槽; Core就是socket里独立的一组程序执行...
分类:
其他好文 时间:
2015-05-12 15:36:30
阅读次数:
146
题目描述:
Given a range [m, n] where 0
For example, given the range [5, 7], you should return 4.
代码:
class Solution
{
public:
int rangeBitwiseAnd(int m,int n)
{
int i = 0;
while(m ...
分类:
其他好文 时间:
2015-05-12 15:35:24
阅读次数:
107
如果你学习过设计模式,那么当想通知其他组件某些事情发生时你一定会使用观察者模式。好了,既然能想到这个设计模式,那么就来看一个屌爆天的Android开源框架EventBus。主要功能是替代Intent、Handler、BroadCast在Fragment、Activity、Service、线程之间传递消息。他的最牛逼优点是开销小,代码简洁,解耦代码。...
分类:
其他好文 时间:
2015-05-12 15:36:10
阅读次数:
3926
OpenCV入门 - 关键点描述子匹配Brute-force
对图片提取特征向量之后进行keypoint descriptors matching,从而可以判断特定图像与训练集中图片的匹配程度,BFMatcher暴力匹配类继承自抽象类DescriptorMatcher,"Brute-force descriptor matcher. For each descriptor in the ...
分类:
其他好文 时间:
2015-05-12 15:36:14
阅读次数:
377
CoAP是受限制的应用协议(Constrained Application Protocol)的代名词。在当前由PC机组成的世界,信息交换是通过TCP和应用层协议HTTP实现的。但是对于小型设备而言,实现TCP和HTTP协议显然是一个过分的要求。为了让小设备可以接入互联网,CoAP协议被设计出来。CoAP是一种应用层协议,它运行于UDP协议之上而不是像HTTP那样运行于TCP之上。...
分类:
其他好文 时间:
2015-05-12 15:33:35
阅读次数:
279
%自动阈值法:Otsu法 用MATLAB实现Otsu算法:
clc;clear;close;
I=imread('e:\role0\003i.bmp');
subplot(1,2,1),imshow(I);
title('原始图像')
grid on; %显示网格线
axis on; %显示坐标系
level=graythres...
分类:
其他好文 时间:
2015-05-12 15:33:03
阅读次数:
173
Title:Given a binary tree, check whether it is a mirror of itself (ie, symmetric around its center).For example, this binary tree is symmetric: 1 ...
分类:
其他好文 时间:
2015-05-12 15:34:17
阅读次数:
120
DescriptionThe owner of a casino for New Russians has a very refined sense of beauty. For example, after a game there remain two piles with the same n...
分类:
其他好文 时间:
2015-05-12 15:33:17
阅读次数:
130
如果你想把图形渲染在正确的位置上,那么坐标的设置就很重要了。在OpenGL中,与坐标相关的主要有笛卡尔坐标、坐标裁剪、纹理坐标、MVP(Model View Projection)转换。 1.笛卡尔坐标 在二维绘图中,笛卡尔坐标有一个X轴和一个Y轴组成,X轴为水平方向,Y轴为垂直方向,X和Y相互垂直...
分类:
其他好文 时间:
2015-05-12 15:33:28
阅读次数:
186
1.在目录/etc/yum.repo.d/在新建文件subversion.repo2.在文件subversion.repo中添加如下内容:[WandiscoSVN]name=Wandisco SVN Repobaseurl=http://opensource.wandisco.com/centos/...
分类:
其他好文 时间:
2015-05-12 15:33:24
阅读次数:
105