
代码使用
不做笔记的程序员不是好的码农
让我康康是谁不做笔记。
展开
-
1-主成分分析之ReadFace部分代码调试
输入:过程:输出:也是添加了处理维度方面的函数,然后调试就成功了function Training_Data = ReadFace(Training_Path)% ---------- Construct 2D matrix from all of the 1D image vectors in the training data file ------------flist = dir(strcat(Training_Path,'\*.jpg'));Training_Data =原创 2020-05-09 17:47:27 · 560 阅读 · 0 评论 -
0-调试代码的过程之主成分分析代码
输入:测试图像过程:哈哈,我一下子调出来了,可以暂时不用修改分析输出:识别图像clear allclose allclc% Training_Path = '../test/Gallery'; %Set your directory for training data file% Testing_Path = '../test/Probe'; %Set your directory for testing data fileTraining_Path = '../Trai.原创 2020-05-09 17:46:09 · 211 阅读 · 0 评论 -
7.MATLAB基础知识
clc是清除当前command区域的命令,也就是之前命令产生的结果 clear用于清空环境变量,也就是之前的旧的变量值原创 2020-05-01 16:28:33 · 179 阅读 · 0 评论 -
【Matlab】MATLAB进行批量重命名
先是批量重命名为数字1、2、3clc;clear all;files = dir('*.jpg');len=length(files);for i=1:len oldname=files(i).name; name=num2str(i); newname=strcat(name,'.jpg'); command = ['rename' 32 oldna...原创 2020-04-30 10:33:10 · 7755 阅读 · 1 评论