![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
特征提取
番茄发烧了
一介匹夫 随心而去
展开
-
【OpenCV】批量处理图片尺寸-64*64
使用的话修改对应的路径,和图片生成的位置。#include <cv.h>#include <highgui.h>#include<io.h>#include <string.h> using namespace std;using namespace cv;char * filePath = "E:\\一";void getFiles(string path, vect原创 2016-08-16 14:11:13 · 2103 阅读 · 0 评论 -
【OpenCV】批量集合特征提取,本地保存成向量
把之前集合几篇博客用到的知识结合起来了。#include<cv.h> #include<highgui.h> #include<io.h>#include <string.h> #include <iostream>#include <fstream>using namespace cv;using namespace std;CvMemStorage *stroage;Ipl原创 2016-08-16 17:33:03 · 1045 阅读 · 0 评论 -
【OpenCV】图片几何特征提取
上一版不太好,又重新自己了一遍。#include<cv.h> #include<highgui.h> using namespace cv;using namespace std;CvMemStorage *stroage;IplImage *contourimage;CvSeq *seq = NULL;int ku = -1;float pi = 3.14159;int ma原创 2016-08-16 16:57:18 · 3154 阅读 · 0 评论 -
【图像识别】利用BP神经网络做特征向量分类
现在手头没数据集,用之前的几张图片测试了一下。 data 数组前两个是同一种树叶: 后两个向量是同一种树叶: 没数据集了,用的差不多的一种树叶对比的,就是上面double x[]的特征: 虽然看面积就知道和第一个相似,程序运行结果:[0.100747, 0.00233442, 0.690329, 1.6875, 0.0483126]:[0.9902157551076237, 0.003078原创 2016-08-13 21:58:47 · 8565 阅读 · 3 评论 -
【OpenCV】通过旋转图片增加训练集
通过旋转输入图片,并保存旋转后的图片。这样做是不是可以增加一些训练集数量。。。#include <cv.h>#include <highgui.h>#include <stdio.h> #include <opencv2/core/core.hpp>#include <iostream>#include <fstream> using namespace std;using n原创 2016-08-13 23:21:16 · 2509 阅读 · 1 评论