自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(16)
  • 收藏
  • 关注

转载 canny边缘检测学习笔记

Canny边缘检测的步骤:1、高斯平滑(gaussian smoothing)2、图像求导(derivation)3、非极大值抑制(non-local maxima suppression)4、滞后门限(hysteresis threshold)* 非极大值抑制 和 滞后门限 是canny边缘检测的特色步骤具体介绍:http://blog.csdn.net/l...

2014-01-02 15:09:00 1132

转载 图像滤波笔记

0、读取图片,预处理为灰度图(matlab代码)%% read imageimdir = 'F:\pictures\壁纸\';imname = 'image (1)';impath = strcat(imdir, imname, '.jpg');ori_image = imread(impath);conv_image = ori_image;gray_...

2013-12-24 21:20:00 152

转载 Shell script学习笔记

mender Shell script学习笔记Jun 20, 201316:55:23良好的shell script 文件头风格功能版本信息作者与联系方式版权宣告修改历史特殊命令使用绝对路径下达环境变量执行shell scriptsource 使用父进程的bash...

2013-06-20 17:06:00 102

转载 正则表达式学习笔记

mender 正则表达式学习笔记Jun 15, 201316:55:32正则表达式中的特殊符号[:alnum:] 字母和数字,即0-9, A-Z, a-z [:alpha:] 字母,即A-Z, a-z [:lower:] 小写字母,即a-z [:upper:] 大写字母,即A-...

2013-06-20 14:34:00 105

转载 Bash学习笔记

mender Bash学习笔记 Jun 15, 2013 16:49:53命令的别名alias,取消别名用unalias#alias ..='su -' 察看命令是否为bash内建命令 type#type -a susu 是 `su -' 的别名 su 是 /bin/su ...

2013-06-20 14:32:00 77

转载 java.lang.OutOfMemoryError: Java heap space

在安装完hadoop后跑example,结果抛出异常java.lang.OutOfMemoryError: Java heap space下面是在stackoverflow上看到的解决办法:1、don't forget to execute "ssh localhost" first. Believe or not! No ssh would throw an error ...

2013-04-01 17:28:00 82

转载 ERROR security.UserGroupInformation: PriviledgedActionException as:hadoop cause:java.net.UnknownHost...

在opensuse中安装hadoop抛异常:ERROR security.UserGroupInformation: PriviledgedActionException as:hadoop cause:java.net.UnknownHostException: hadoop: hadoop解决办法:将/etc/HOSTNAME里的主机复制到/etc/hosts中,注...

2013-04-01 15:53:00 146

转载 电子科大计算机复试C语言

复试终于结束了,唉。。一言难尽 1 #include <stdio.h> 2 #include <stdlib.h> 3 #include <string.h> 4 void test1_1_swap(char *pa, char *pb) 5 { 6 //由于传入的实参是数组地址,它是一个char* c...

2013-03-22 17:50:00 540

转载 打印三角形

1 #include <stdio.h> 2 #include <stdlib.h> 3 4 int main() 5 { 6 int i = 1, j = 1; 7 for(; i <= 5; i++) 8 { 9 for(j = 1; j <= 5 - i; j++)...

2013-03-17 23:19:00 114

转载 sizeof和strlen的区别

C语言中sizeof是一个运算符,strlen是string.h中的库函数sizeof计算的是变量申请的内存空间大小,strlen计算的是数组从第一个位置到'\0'所占的内存大小 1 #include <stdio.h> 2 #include <stdlib.h> 3 #include <string.h> 4 5 voi...

2013-03-17 21:29:00 66

转载 逐屏打印文件内容

1 #include <stdio.h> 2 #include <stdlib.h> 3 #define A_SCREEN 5 //每次输出的行数 4 #define MAX_CHAR_EACH_LINE 100 //每行最大字符数 5 int main() 6 { 7 FILE *fp; 8 if(NULL =...

2013-03-13 15:56:00 168

转载 找出两个文件中各行的第一个不同的字符位置

1 #include <stdio.h> 2 #include <stdlib.h> 3 #include <string.h> 4 #define MAX_CHAR_EACH_LINE 20 // 每行最大的字符数 5 int main(int argc, char *argv[]) 6 { 7 FILE *fp...

2013-03-13 13:19:00 101

转载 可以无限输入字符字符的程序

今天发现一个奇怪的现象,写了一个c程序,用gcc编译器编译,居然没有报错,而且还能正常运行看代码: 1 #include <stdio.h> 2 #include <stdlib.h> 3 4 int main() 5 { 6 char *p = (char*)malloc(1); //申请了一个很小的空间...

2013-03-12 18:11:00 438

转载 字符串匹配算法KMP

1. 求数组next[j]的算法如下,它只与模式串有关,与目标串无关 1 void cal_next(char *p, int *next, int len) 2 {//important!! array rangs from 0 to len-1 3 int i = -1, j = 0;//i == -1 means back to the first ele...

2013-03-12 17:29:00 81

转载 共用体union

共用体很少用,今天遇到一个问题: 1 #include <stdio.h> 2 #include <stdlib.h> 3 4 int main() 5 { 6 union EXAMPLE 7 { 8 struct 9 {10 int x;11...

2013-03-12 17:21:00 99

转载 hard link and symbolic link

hard linkhard link是linux中的一种文件共享方式,它的原理是共享inode。当建立一个hard link时,inode的共享计数加1,删除时减1(若减为0,则删除文件)。建立hard link0. 命令格式: ln src_file dis_file1. 源文件file.src, inode = 519777, 共享计数 = 12.lnfi...

2013-03-12 17:04:00 82

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除