- 博客(19)
- 资源 (5)
- 收藏
- 关注
原创 HTML学习总结
1.html文档后缀名为.html或者.htm,是一种超文本标记语言: HyperText Markup Language2.HTML 标签通常是成对出现的,比如<b>和 </b>。标签对中的第一个标签是开始标签,第二个标签是结束标签。3.目前在大部分浏览器中,直接输出中文会出现中文乱码的情况,这时候我们就需要在头部将字符声明为 UTF-8 或 GBK。如:<meta charset="UTF-8">4.html中标签定义的具体是什么?(1)HTML 标题(Hea
2020-11-28 16:10:48 179
原创 Linux常用命令
1.用户和root身份切换 root-user:su - username user-root:su -/su 2.新建目录和新建文件 make new directory:mkdir dictoryname make new file:touch dictory/filename 3.进入文件夹下查看命令 cd /directory 4.查看文件权限 在文件目录下运行ls -l
2017-11-15 11:59:59 281
原创 最大熵阈值分割
原理不多说#include<iostream>#include<opencv2/opencv.hpp>using namespace cv;void Ksw1dSegmentation(unsigned char* image, int width, int height);//最大熵阈值分割算法/************************************************
2017-08-02 21:03:59 1489
原创 最优阈值分割算法(迭代)
原理太多,不再赘述#include<iostream>#include<opencv2/opencv.hpp>void OptimSegmentation(unsigned char*inputimage, int height, int width);using namespace cv;void OptimSegmentation(unsigned char*inputimage, int
2017-08-02 20:55:01 8921 1
原创 matlab—同态滤波的实现
clear all clcI =imread('moon128.bmp'); % tun.bmpfigure(1),subplot(221),imshow(I); title('原图')I=im2double(I); %转换数据类型为double型[M,N]=size(I);P = 2*M; Q = 2*N; I2 = zeros(P,Q);for i = 1:M fo
2017-07-03 10:40:01 13995 10
原创 opencv—库函数和一些对象查询
1、vector对象的定义和初始化 成员函数 如:vector img;1)img.assign(beg,end)//将[beg; end)区间中的数据赋值给img img.assign(n,elem) // 将n个elem的拷贝赋值给img img.assign(3,2); //将3个int,值都是2的元素赋值给img2)img.at(idx) // 传回索引idx所指的数据,
2017-07-02 16:35:35 754
原创 opencv—提取图像RGB各个通道分量
#include<iostream>#include<opencv2/opencv.hpp>using namespace cv;using namespace std;int main(){ Mat orig; orig = imread("1.jpg"); if (orig.empty()) cout << "读入失败" << endl; i
2017-07-02 13:12:19 11978
原创 SURF特征点描述
#include<iostream>#include<opencv2/opencv.hpp>#include<opencv2/core/core.hpp>#include "opencv2/features2d/features2d.hpp" #include <opencv2/nonfree/nonfree.hpp> #include<opencv2/legacy/legacy.hpp
2017-07-02 12:13:18 843
原创 图像的膨胀与腐蚀以及开闭运算
#include<iostream>#include<opencv2/opencv.hpp>using namespace cv;int main(){ Mat originalimage; originalimage = imread("1.jpg"); Mat erodeimage,dilateimage; Mat element = getStructur
2017-07-01 19:53:52 1044
原创 图像的仿射变换
1、旋转(保持原图的尺寸大小) #include <iostream> #include <opencv2\core\core.hpp> #include <opencv2\highgui\highgui.hpp> #include <opencv2\imgproc\imgproc.hpp> using namespace std;using namespace cv;int
2017-07-01 12:10:17 675
原创 视频分割成帧序列
#include "iostream"#include "opencv2/opencv.hpp"using namespace std;using namespace cv;string videoname = "No_Event.Cam9.avi";void main(){ VideoCapture capture(videoname); int frameH = captu
2017-06-30 14:41:35 3685
原创 opencv——同一窗口显示多幅图像
#include<iostream>#include<opencv2/imgproc/imgproc.hpp>#include<opencv2/highgui/highgui.hpp>using namespace cv;using namespace std;void imshowMany(const string winName, const vector<Mat>imgs);//定义
2017-06-25 17:36:01 1228
原创 opencv——同一窗口显示同色彩图像
这里主函数要使用ROI函数和addWeigth函数来实现#include<iostream>#include<opencv2/highgui/highgui.hpp>#include<opencv2/imgproc/imgproc.hpp>using namespace cv;using namespace std;int main(){ Mat img1 = imread("1.
2017-06-25 15:45:48 583
原创 opencv——边缘检测
#include<iostream>#include<opencv2/imgproc/imgproc.hpp>#include<opencv2/highgui/highgui.hpp>using namespace cv;int main(){ Mat originalimage; originalimage = imread("1.jpg"); Mat grayim
2017-06-25 11:12:14 1058
原创 文章标题 opencv——图像的滤波
opencv——图像滤波#include<iostream>#include<opencv2/imgproc/imgproc.hpp>#include<opencv2/highgui/highgui.hpp>#include<opencv2/core/core.hpp>using namespace cv;using namespace std;int main(){ Mat
2017-06-25 10:02:58 540
原创 文章标题 opencv中图像的颜色转变
主要是C++中借口Mat类与C有所不同这里写代码片#include<iostream>//#include<cv.h>#include"opencv2/imgproc/imgproc.hpp"#include"opencv2/highgui/highgui.hpp"using namespace cv;int main(){ Mat original; original
2017-06-23 11:26:28 591
原创 文章标题 opencv中视频的读取和显示以及色彩的转换
本文基于VS2013和opencv所写这里写代码片#include<iostream>#include"opencv2/imgproc/imgproc.hpp"#include"opencv2/highgui/highgui.hpp"using namespace cv;using namespace std;/*int main(){ VideoCapture capture
2017-06-23 11:10:13 606
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人