算法设计
zhanglei_edu
这个作者很懒,什么都没留下…
展开
-
LBP与CT联系与区别
Local Binary Pattern (LBP) Census Transforms(CT)最近看到CT算法,感觉与LBP算法很是相近,百度没有找到两者的关系,很是奇怪,遂Google了一下,在On the Recent Use of Local Binary Patterns for Face Authentication文章中看到了一些介绍。两个算法提出的时间几乎一样,且原创 2014-12-30 15:20:14 · 879 阅读 · 0 评论 -
matlab对图像进行循环读取、改名、阈值化、缩放等简单操作
matlab对图像进行循环读取、改名、阈值化、缩放等简单操作。。。。不解释了,直接看代码,比较简单clear allpath='\';file=dir([path,'*png']);if isempty(file) file=dir([path,'*jpg']);endif isempty(file) file=dir([path,'*bmp']);endsa原创 2016-01-18 13:48:47 · 1210 阅读 · 0 评论 -
漫谈 Clustering: Gaussian Mixture Model
上一次我们谈到了用 k-means 进行聚类的方法,这次我们来说一下另一个很流行的算法:Gaussian Mixture Model (GMM)。事实上,GMM 和 k-means 很像,不过 GMM 是学习出一些概率密度函数来(所以 GMM 除了用在 clustering 上之外,还经常被用于 density estimation ),简单地说,k-means 的结果是每个数据点被 assi转载 2015-11-03 16:13:11 · 381 阅读 · 0 评论 -
显示超像素的边界superpixelShow
void superpixelShow(Mat &img8u,Mat ®){Mat binaryMap,superpixelMap;int height=img8u.rows,width=img8u.cols;superpixelMap=Mat::zeros(height,width,CV_8UC3);for (int i=0;i{int *regPtr=原创 2015-11-13 13:45:02 · 1134 阅读 · 2 评论 -
扩大图像边界区域
为了防止在处理图像时边界越界,通常将图像根据其边界的像素值扩大一定的大小区域,如图所示,在opencv中有copyMakeBorder函数进行处理,具体: cv::copyMakeBorder(image, image, patch_h, patch_h, patch_w, patch_w, cv::BORDER_CONSTANT, cv::Scalar());或者 int winLen = wi原创 2015-12-27 17:10:38 · 1205 阅读 · 0 评论 -
Matlab:Unable to start the JVM because of an invalid Java option.
由于Matlab的物理内存不够,通过Alt+ f+f 修改了Java Heap Memory,但重启Matlab时出现 Unable to start the JVM because of an invalid Java option,无法打开matlab。解决方法:C:\Users\Administrator\AppData\Roaming\MathWorks\MATLAB\R2013a里面原创 2016-01-04 17:07:27 · 3127 阅读 · 1 评论 -
生成超像素并写到txt文件
利用SLIC生成超像素,并写到txt文件中去,由于这里用的是matlab32位进行编译的,所以只能用32位的matlab运行,其中SLIC_mex文件下载链接为http://pan.baidu.com/s/1pK4ylYV image=imread('C:\Users\Administrator\Desktop\新建文件夹\tmp_video\28\img001.png');原创 2016-01-05 14:27:29 · 503 阅读 · 1 评论 -
matlab求曲线的面积 AUROC
曲线面积的求法:(1)任意曲线的面积求法:(2)ROC曲线的面积求法:function auc=auc(FPR,TPR);% given true positive rate and false positive rate calculates the area under the curve% true positive are on the y-axis and fal原创 2016-01-12 13:53:22 · 17686 阅读 · 1 评论 -
有效使用目标的运动特征
目前大部分算法都基于运动大的区域为目标的可能性大这一假设,但在实际情况中,运动大的区域并不一定有较大的概率为目标区域,比如跟拍目标或者相机抖动,而导致背景剧烈的变化,这样会导致目标分割或者检测的失败。原创 2016-01-19 11:28:04 · 1174 阅读 · 0 评论