摘要: http://wenku.baidu.com/link?url=mGICX2QxuxVcYGNEaOIUOK1t0LQFN4m8cp_bJF0XmvZp0TLn8OoMxjmXa-8mTa0_V0YVs-ivczHl9ne4OWNxlk970_RJwM1dl1sO7YqNbdu一install打开l... 阅读全文
posted @ 2015-06-18 11:16 sunnycs 阅读(730) 评论(0) 推荐(0) 编辑
摘要: #include// 太阳、地球和月亮// 假设每个月都是30天// 一年12个月,共是360天static int day = 150;//day的变化:从0到359void myDisplay(void){ glDepthFunc(GL_LEQUAL);//设置深度// 太阳、地球和月亮/... 阅读全文
posted @ 2015-06-12 23:41 sunnycs 阅读(1506) 评论(0) 推荐(0) 编辑
摘要: 参考: http://www.cnblogs.com/FredCong/archive/2012/10/13/2722893.html使用RGB#include #include void myDisplay1(void){ glClear(GL_COLOR_BUFFER_BIT); g... 阅读全文
posted @ 2015-06-12 21:10 sunnycs 阅读(206) 评论(0) 推荐(0) 编辑
摘要: 参考网址:http://www.cnblogs.com/FredCong/archive/2012/10/13/2722893.html#include #include #include #include void myDisplay1(void){ glClear(GL_COLOR_BUF... 阅读全文
posted @ 2015-06-12 10:01 sunnycs 阅读(1110) 评论(0) 推荐(0) 编辑
摘要: 一、安装GL库文件1. opengl和glu的安装(不用安装)win7安装完成之后已经默认安装了opengl32.dll和glu32.dll,并且其对应的lib文件也已经安装(如C:\Windows\System32等路径下)2. glut的安装到网址:https://www.opengl.org/... 阅读全文
posted @ 2015-06-11 16:41 sunnycs 阅读(633) 评论(0) 推荐(0) 编辑
摘要: 在相机标定中通常首先需要检测出棋盘标定板上黑白格内角点的位置:网上的一段cvFindChessboardCorners函数调用代码:#include #include "opencv2/imgproc/imgproc.hpp"#include "opencv2/highgui/highgui.hpp... 阅读全文
posted @ 2015-06-06 10:45 sunnycs 阅读(2203) 评论(2) 推荐(0) 编辑
摘要: 0.总要想想为什要做这个(目的是什么,优缺点,必要性,不用行不行,产品定位,如何保证最后的稳定性)1.如何逐步排查问题所在(做实验+分析排查:不同的实验手段)2.如何利用网络(搜索问题的所在,确定问题方向)3.如何做出稳定的产品(是靠别人还是靠自己的不断尝试)4.自己高价不稳定的开发板 vs 别人低... 阅读全文
posted @ 2015-05-09 10:00 sunnycs 阅读(226) 评论(0) 推荐(0) 编辑
摘要: 小例子:http://soft.yesky.com/238/2035738.shtml 服务器程序: 客户端程序: 服务器 客户端 端口查看: Linux 版本 在虚拟中的Ubuntu中测试tcp server和tcp client 总是会有conection refused的问题(即使把所有的防火 阅读全文
posted @ 2015-05-04 20:13 sunnycs 阅读(311) 评论(0) 推荐(0) 编辑
摘要: 防火墙相关:关闭防火墙:ufw disable开启防火墙:ufw enable更详细的ufw功能用法见:ufw -h其他linux平台下的一些(但是ubuntu下不好用):查看防火墙状态: /etc/init.d/iptables status暂时关闭防火墙: ... 阅读全文
posted @ 2015-05-04 20:00 sunnycs 阅读(232) 评论(0) 推荐(0) 编辑
摘要: 分配矩阵空间:CvMat* cvCreateMat(int rows, int cols, int type);释放矩阵空间:cvReleaseMat(&M);数据类型宏定义:CV_(S|U|F)C复制矩阵:CvMat* M2; M2=cvCloneMat(M1);初始化矩阵: double a[]... 阅读全文
posted @ 2015-05-03 10:04 sunnycs 阅读(252) 评论(0) 推荐(0) 编辑