为了研究分水岭算法,阅读了OpenCV 2.4.9 中watershed函数的源码实现部分,代码位于 opencv\sources\modules\imgproc\src\segmentation.cpp 文件中。先贴出加了注解的代码,以后补充对分水岭算法的解释。#include "precomp.hpp"/**********************************************...
分类:
编程语言 时间:
2015-07-07 22:51:38
阅读次数:
675
1. Chinese Segmentation Introduction最近两天系统的研究了一下中文分词算法,在这里做个简单的总结。中文分词可以分为(1)基于词典的分词 和(2)非基于词典的分词。
基于词典的分词包括:
* MMSEG
* Forward/Backward matching
* 最小切分非基于词典的分词主要是通过统计学计算概率的方法进行中文分词,例如CRF, is p...
分类:
其他好文 时间:
2015-07-06 16:06:51
阅读次数:
242
背景:今天在另外一台电脑上安装appium,这台电脑是别人用过的,上面已经装了很多工具,遇到了ideviceinstaller报错的问题,搞了几乎一天,记录一下解决的过程。由于ideviceinstaller是appium 1.4 ios自动化的必备工具,于是用brew install idevic...
分类:
其他好文 时间:
2015-07-02 20:53:19
阅读次数:
306
gdb附加子进程在崩溃时获取信息:编译时 -g 不要-OX优化ps得到进程idgdb att pidgdb:Program received signal SIGSEGV, Segmentation fault.[Switching to Thread 0x400e8000 (LWP 2734)]_...
分类:
数据库 时间:
2015-06-27 15:58:39
阅读次数:
210
Determining the number of clusters/segments in hierarchical clustering/segmentation algorithms由于unique函数在这里找矩阵不同元素的时不能有效得到,所以自己编了小程序实现。Matlab codeL:cl...
分类:
其他好文 时间:
2015-06-25 00:03:48
阅读次数:
158
CNNHypercolumns for Object Segmentation and Fine-Grained LocalizationBharath Hariharan, Pablo Arbeláez, Ross Girshick, Jitendra MalikImproving Object ...
分类:
其他好文 时间:
2015-06-22 08:43:46
阅读次数:
2008
今天写程序遇到一个问题:Program terminated with signal 11, Segmentation fault.
gdb 调试现象如下:
warning: no loadable sections found in added symbol-file system-supplied DSO at 0x7fff1b1fc000
Core was generated by...
分类:
其他好文 时间:
2015-06-16 16:52:51
阅读次数:
332
先来看两段代码--
错误代码:
#include "string.h"
#include
#include
void test(char ** dest, char * src, int n) {
(*dest) = (char*) malloc(sizeof(char) * n);
strcpy(*dest, src);
}
int main(int argc, char** a...
分类:
系统相关 时间:
2015-06-13 17:10:41
阅读次数:
211
转自:http://book.51cto.com/art/201311/419441.htm3.21 strcat函数造成的段错误代码示例intmain() { chardest[7]="12345"; char*src="abcdefghigklmnopqrstuvwxyz"; strcat(de...
分类:
其他好文 时间:
2015-06-03 00:40:39
阅读次数:
250
最近在Linux环境下做C语言项目,由于是在一个原有项目基础之上进行二次开发,而且项目工程庞大复杂,出现了不少问题,其中遇到最多、花费时间最长的问题就是著名的“段错误”(Segmentation Fault)。借此机会系统学习了一下,这里对Linux环境下的段错误做个小结,方便以后同类问题的排查与解...
分类:
系统相关 时间:
2015-06-02 10:52:05
阅读次数:
225