- 博客(18)
- 问答 (17)
- 收藏
- 关注
原创 【C++】类的引用
#include<iostream> using namespace std; class Time { public: Time(int,int,int);//构造函数,类成员不能直接赋值,必须依靠构造函数 int hour; int minute; int sec; ~Time() { cout<<"fuck off"<<...
2019-09-18 10:16:50 1830
原创 【c++】对象指针
#include<iostream> using namespace std; class Time { public: int hour; int minute; int sec; Time(int,int,int); void get_time(); }; Time::Time(int h,int m,int s) { hour=h; minute=m; sec...
2019-08-29 10:43:29 288
原创 【c++】对象数组
#include<iostream> using namespace std; class Box { private: int width; int height; int length; public: Box(int w,int h,int l):width(w),height(h),length(l){};//为何要引入参数,因为私有成员不能被外部调用 int v...
2019-08-29 09:56:01 185
原创 【c++】析构函数
#include<iostream> #include<string> using namespace std; class Student { private: int num; string name; char sex; public: Student(int n,string nam,char s) //带参数的构造函数实现类成员的初始化 { nu...
2019-08-28 17:02:20 93
原创 【c++】构造函数初始化类成员
#include<iostream> using namespace std; class box { private: int hight; int width; int length; public: int volume();//有返回值的成员函数 box(int,int,int);//有参数的构造函数,可以初始化类成员,多次初始化 }; box::box(i...
2019-08-28 09:54:26 470
原创 【c++】输入年月日,输出第几天
#include<iostream> using namespace std; struct date { int year; int month; int day; }date; int main() { cout<<"please int data:"<<endl; cin>>date.year>>date.month&...
2019-07-20 11:59:42 2946
原创 【c++】枚举类型
#include<iostream> #include<iomanip> using namespace std; int main() { enum color{red,yellow,blue,white,black}; color pri; int i,j,k,n=0,loop; for(i=red;i<=black;i++) for(j=red;j&...
2019-07-20 10:32:05 100
原创 【c++】结构体
把不同类型数据放在一起作为一个整体。 在一个组合项中包含若干个类型不同的数据项。 1.定义一个结构体并输出 #include<iostream> using namespace std; struct Date { int month; int day; int year; }; struct Student { int num; char name[20]; char ...
2019-05-27 17:04:11 206
原创 【c++】指针与引用练习
1.三个数排序 //指针作为函数参数 #include<iostream> #include<iomanip> using namespace std; int main() { cout<<"inter numbers:"<<endl; int a,b,c; cin>>a>>b>>c; void sort...
2019-05-21 16:47:00 1211
原创 【c++】引用作为函数参数
给三个数排序 #include<iostream> #include<iomanip> using namespace std; int main() { cout<<"inter numbers:"<<endl; int a,b,c; cin>>a>>b>>c; void sort(int&,in...
2019-05-21 09:44:39 188
原创 【c++】const指针
1.指向常量的指针 //指向的值不能改变,指向可以改变。 #include<iostream> using namespace std; int main() { int a=10,b=18; const int *p=&a; p=&b; cout<<*p<<endl; } 2.常指针 //常指针 #include<iostrea...
2019-05-20 16:26:32 133
原创 【c++】指向指针的指针
#include<iostream> using namespace std; int main() { char**p; char*name[]={"im","your","friend"}; p=name+2; cout<<*p<<endl; cout<<**p<<endl; } 运行结果:
2019-05-20 15:36:59 197
原创 指针指向函数作为参数
`#include #include #include using namespace std; double func1(double x) { double r=1+x; return r; } double func2(double x) { double r=x*2+3; return r; } double func3(double x) { double r=1+exp(x);...
2019-05-20 11:26:52 262
原创 opencv把一张图片覆盖到另一张图片上
#include <iostream> //#include <fstream> #include <opencv2/core/core.hpp> #include <opencv2/highgui/highgui.hpp> #include <opencv2/imgproc/imgproc.hpp> #include <openc...
2019-04-04 10:11:42 6881
原创 opencv初始化Mat矩阵尺寸辨析
直接键入行列数和用Size定义: #include <opencv2/opencv.hpp> #include <opencv2/highgui/highgui.hpp> #include <iostream> using namespace cv; using namespace std; #define NBINS 9 #define THETA 1...
2019-03-21 11:48:31 1153
原创 sobel算子提取边缘
#include<iostream> #include<opencv2/imgproc/imgproc.hpp> #include<opencv2/highgui/highgui.hpp> using namespace cv; using namespace std; int main() { Mat M=imread("d:/1.png"); cvtCo...
2019-03-19 16:16:29 1376
原创 【opencv学习笔记】Mat的几种创建方法
1.Mat构造函数 #include&amp;lt;opencv2/core/core.hpp&amp;gt; #include&amp;lt;iostream&amp;gt; using namespace std; using namespace cv; int main() { //尺寸2*2, 8位, U无符号, 3通道, Scalar向量初始化矩阵 Mat M(2,2,CV_8UC3,Scalar(0,0,255)
2019-03-15 10:46:55 1503
转载 撰写说明
这里是引用 这里写自定义目录标题欢迎使用Markdown编辑器新的改变功能快捷键合理的创建标题,有助于目录的生成如何改变文本的样式插入链接与图片如何插入一段漂亮的代码片生成一个适合你的列表创建一个表格设定内容居中、居左、居右SmartyPants创建一个自定义列表如何创建一个注脚注释也是必不可少的KaTeX数学公式新的甘特图功能,丰富你的文章UML 图表FLowchart流程图导出与导入导出导入 ...
2019-03-15 09:37:08 156
空空如也
关于LBP特征维度的问题
2020-01-05
想用树莓派做行人识别,不知道可以吗
2019-10-25
如何让opencv中的SVM返回值为概率而不是1,-1之类的标签
2019-06-27
opencv hog训练svm检测行人,这个报错什么意思
2019-05-28
opencv svm detector该怎么写?
2019-04-16
opencv++hog+svm这一段该怎么改,想让detector检测64*64的窗口
2019-04-09
opencv默认的hog描述子只能操作64*128的图片吗
2019-04-04
opencv训练支持向量机的警告
2019-04-01
opencv3.4.1+vs2015 不能读显图片
2019-03-30
opencv中sobel算子的两种写法
2019-03-19
opencv批量处理图片出现的一个警告
2019-03-11
opencv批量处理图片出现警告
2019-03-07
opencv声明函数这一段是什么意思
2019-03-04
Opencv里vector<Mat>的问题
2019-03-04
c++用数组做冒泡算法的一个问题
2019-01-16
如何将HOG和LBP特征融合?
2018-12-11
用不同特征训练两个SVM分类器检测同一种目标容易实现吗?
2018-12-11
TA创建的收藏夹 TA关注的收藏夹
TA关注的人