- 博客(5)
- 收藏
- 关注
转载 opencv画矩形框
Rectangle 画矩形C++: Mat类void rectangle(Mat& img,Point pt1, Point pt2, const Scalar&color, int thickness=1,int lineType=8, int shift=0)void rectangle(Mat& img,cvPoint(x, y), cvPoint(x + w...
2019-02-12 11:50:02 3970
转载 opencv中vector类的介绍
1.c++中vector的用法详解vector(向量): C++中的一种数据结构,确切的说是一个类.它相当于一个动态的数组,当不知道数组的个数的时候可以使用vector<int>a; 用法: 1.文件包含: 首先在程序开头处加上#include<vector>以包含所需要的类文件vector ...
2019-02-12 11:19:32 9560
转载 贪吃蛇
#include<stdio.h>#include<stdlib.h>#include<conio.h>#include<time.h>#include<windows.h>#define WIGTH 50#define HEIGHT 25//const int iWight = 50;//const int i...
2019-02-12 09:17:10 198
原创 opencv—— 颜色识别
本人参加机甲大师比赛,不过目前暂处于初入阶段,接下来我将发表在这条方向上的学习之路。以下是最简单的一个颜色识别。#include <iostream>#include "opencv2/highgui/highgui.hpp"#include "opencv2/imgproc/imgproc.hpp"using namespace cv;using namespa...
2019-02-03 12:17:23 475
转载 斐波那契树数列的不同复杂度算法
//时间复杂度(n) #include<stdio.h>#include<string.h>#define N 20int f[N+1];int fib(int n){ if(f[n]) return f[n]; else if(n==1||n==2) return f[n]=1; else { if(f[n - 2] == 0) f[...
2019-02-03 12:06:39 152
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人