- 博客(16)
- 收藏
- 关注
转载 canny边缘检测学习笔记
Canny边缘检测的步骤: 1、高斯平滑(gaussian smoothing) 2、图像求导(derivation) 3、非极大值抑制(non-local maxima suppression) 4、滞后门限(hysteresis threshold) * 非极大值抑制 和 滞后门限 是canny边缘检测的特色步骤 具体介绍: http://blog.youkuaiyun.com/l...
2014-01-02 15:09:00
1292
转载 图像滤波笔记
0、读取图片,预处理为灰度图(matlab代码) %% read image imdir = '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
227
转载 Shell script学习笔记
mender Shell script学习笔记Jun 20, 201316:55:23 良好的shell script 文件头风格 功能 版本信息 作者与联系方式 版权宣告 修改历史 特殊命令使用绝对路径下达 环境变量 执行shell script source 使用父进程的bash...
2013-06-20 17:06:00
183
转载 正则表达式学习笔记
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
155
转载 Bash学习笔记
mender Bash学习笔记 Jun 15, 2013 16:49:53 命令的别名alias,取消别名用unalias #alias ..='su -' 察看命令是否为bash内建命令 type #type -a su su 是 `su -' 的别名 su 是 /bin/su ...
2013-06-20 14:32:00
116
转载 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
124
转载 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
220
转载 电子科大计算机复试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
658
转载 打印三角形
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
155
转载 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
105
转载 逐屏打印文件内容
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
233
转载 找出两个文件中各行的第一个不同的字符位置
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
143
转载 可以无限输入字符字符的程序
今天发现一个奇怪的现象,写了一个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
496
转载 字符串匹配算法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
120
转载 共用体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
154
转载 hard link and symbolic link
hard link hard link是linux中的一种文件共享方式,它的原理是共享inode。当建立一个hard link时,inode的共享计数加1,删除时减1(若减为0,则删除文件)。 建立hard link 0. 命令格式: ln src_file dis_file 1. 源文件file.src, inode = 519777, 共享计数 = 1 2.lnfi...
2013-03-12 17:04:00
132
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅