随笔分类 -  C++

摘要:#include <iostream>#include <opencv2/opencv.hpp> using namespace std;using namespace cv; int elementSize = 3;int maxSize = 260; int Demo_Load_Img(); / 阅读全文
posted @ 2018-10-01 08:57 西北逍遥 阅读(641) 评论(0) 推荐(0)
摘要:#include <iostream>#include <opencv2/opencv.hpp> using namespace std;using namespace cv; //均值滤波模糊处理int demo_blur(){ char win1[] = "window1"; char win2 阅读全文
posted @ 2018-09-30 21:24 西北逍遥 阅读(349) 评论(0) 推荐(0)
摘要:构造函数 Mat() Mat(int rows,int cols,int type) Mat(Size size,int type) Mat(int rows,int cols,int type,const Scalar &s) Mat(Size size,int type,const Scalar 阅读全文
posted @ 2018-09-21 13:50 西北逍遥 阅读(1472) 评论(0) 推荐(0)
摘要:#include <iostream>#include <opencv2/opencv.hpp> using namespace std;using namespace cv; /***opencv自带的掩膜操作API*/int test2(){ Mat img1, img2, img3; img1 阅读全文
posted @ 2018-09-18 15:51 西北逍遥 阅读(252) 评论(0) 推荐(0)
摘要:#include <time.h> char pStrPath1[20];time_t currTime;struct tm *mt;Mat saveImg1; currTime = time(NULL);mt = localtime(&currTime);/*根据日期生成文件名*/sprintf( 阅读全文
posted @ 2018-09-06 17:16 西北逍遥 阅读(2955) 评论(0) 推荐(0)
摘要:在安装完之后,迫不及待创建第一个Qt demo 阅读全文
posted @ 2018-08-31 17:17 西北逍遥 阅读(203) 评论(0) 推荐(0)
摘要:https://pan.baidu.com/s/1o7efLdK 阅读全文
posted @ 2018-07-17 12:57 西北逍遥 阅读(650) 评论(0) 推荐(0)
摘要:#include<iostream>#include "strmif.h"#include <initguid.h>#include<vector>#include<string> #pragma comment(lib, "setupapi.lib") using namespace std; # 阅读全文
posted @ 2018-07-07 15:29 西北逍遥 阅读(4403) 评论(1) 推荐(1)
摘要:#include <iostream>#include <opencv2/opencv.hpp>#include <math.h> using namespace std;using namespace cv; //拉普拉斯 边缘计算void TLaplacian() { Mat img1, img 阅读全文
posted @ 2018-06-28 15:38 西北逍遥 阅读(4656) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2018-06-21 07:51 西北逍遥 阅读(1069) 评论(5) 推荐(0)
摘要:#include <opencv2/opencv.hpp>#include <iostream> using namespace std;using namespace cv; void ChangeImgBG();Mat HandleImgData(Mat &img);/*图片背景替换知识点:分水 阅读全文
posted @ 2018-06-20 19:42 西北逍遥 阅读(2674) 评论(0) 推荐(0)
摘要:即系IFC数据并存储到关系型数据库中,目前解析的IFC文件是两亿多行,构件数量120万 参考论文:http://cpfd.cnki.com.cn/Article/CPFDTOTAL-JGCB201811001064.htm 阅读全文
posted @ 2018-06-16 19:26 西北逍遥 阅读(2269) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2018-06-01 12:20 西北逍遥 阅读(755) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2018-05-19 12:52 西北逍遥 阅读(768) 评论(0) 推荐(1)
摘要:光源绕一个物体旋转,按下鼠标左键时,光源位置旋转。 #include <GL/glut.h> static int spin = 0;static GLdouble x_1 = 0.0;static GLdouble y_1 = 0.0;static GLdouble z_1 = 0.0;void 阅读全文
posted @ 2018-03-10 20:27 西北逍遥 阅读(434) 评论(0) 推荐(0)
摘要:/*******************************************************robot.cpp*基于opengl的机械手臂示例代码*s:机械臂逆时针旋转*S:机械臂顺时针旋转*e:腕部逆时针旋转*E:腕部顺时针旋转************************* 阅读全文
posted @ 2018-03-08 18:08 西北逍遥 阅读(1155) 评论(0) 推荐(0)
摘要:链接:https://pan.baidu.com/s/1dGQkk4T 密码:wu44 Visual Studio 2017配置OpenGL https://blog.csdn.net/qiangbizhi3622/article/details/79467994 https://www.cnblo 阅读全文
posted @ 2018-03-01 09:36 西北逍遥 阅读(2787) 评论(0) 推荐(0)
摘要:#include <GL\glut.h> float fEarth = 2.0f;//地球绕太阳的旋转角度float fMoon = 24.0f;//月球绕地球的旋转角度 void Init(){ glEnable(GL_DEPTH_TEST);//启用深度测试 glClearColor(0.0f, 阅读全文
posted @ 2018-01-28 19:14 西北逍遥 阅读(1294) 评论(0) 推荐(0)
摘要://#include <gl\glut.h>#include <GL\glut.h>#include <iostream> using namespace std; float rtri;float rquad; GLfloat points0[5][3] = { {0,1,0},{-1,-1,1} 阅读全文
posted @ 2018-01-28 16:48 西北逍遥 阅读(3441) 评论(0) 推荐(0)
摘要:#include <opencv2/opencv.hpp>#include<vector>#include <fstream> using namespace std;using namespace cv; int main(int argc, char* argv[]){ const char* 阅读全文
posted @ 2017-12-03 13:40 西北逍遥 阅读(3972) 评论(0) 推荐(0)