摘要: void TestEigen() { cv::Mat m = (cv::Mat_<float>(3, 3) << 1, 2, 3, 2, 5, 6, 3, 6, 7); cv::Mat eigenvalues; cv::Mat eigenvectors; cv::eigen(m, eigenvalu 阅读全文
posted @ 2022-09-25 20:15 leochan007 阅读(212) 评论(0) 推荐(1)
摘要: CV::DIVIDE() void cv::divide( cv::InputArray src1, // 输入数组1 (分子) cv::InputArray src2, // 输入数组1 (分母) cv::OutputArray dst, // 输出数组 (scale*src1/src2) dou 阅读全文
posted @ 2022-09-25 19:54 leochan007 阅读(44) 评论(0) 推荐(0)
摘要: // 设置颜色 void myDisplay(void) { glClear(GL_COLOR_BUFFER_BIT); glColor3f(0.0f, 0.0f, 1.0f); glRectf(-0.5f, -0.5f, 0.5f, 0.5f); glFlush(); } 注意:glColor 系 阅读全文
posted @ 2022-09-03 19:46 leochan007 阅读(52) 评论(0) 推荐(0)
摘要: // 画线 void myDisplay(void) { glClear(GL_COLOR_BUFFER_BIT); glBegin(GL_LINES); glVertex2f(0.0f, 0.0f); glVertex2f(0.5f, 0.0f); glEnd(); glFlush(); } // 阅读全文
posted @ 2022-09-03 16:38 leochan007 阅读(206) 评论(0) 推荐(0)
摘要: #include <iostream> void getfilename(const char* filename, char* name)//从完整路径名中解析出文件名称,例如:/home/test/abc.txt,解析完成后为abc.txt { int len = strlen(filename 阅读全文
posted @ 2022-07-27 16:48 leochan007 阅读(374) 评论(0) 推荐(0)
摘要: /** * 拷贝文件 * @param src 原文件 * @param des 目标文件 * @return ture 拷贝成功, false 拷贝失败 */ bool CopyFile(const char* src, const char* des) { FILE* fSrc = fopen( 阅读全文
posted @ 2022-05-26 14:01 leochan007 阅读(206) 评论(0) 推荐(0)
摘要: <template> <view class="content"> <page-head title='南京市公交查询'></page-head> <view class="input-group"> <view class="input-row border"> <text class="titl 阅读全文
posted @ 2022-05-11 20:15 leochan007 阅读(23) 评论(0) 推荐(0)
摘要: /** * 执行添加 * @return * @throws UnsupportedEncodingException */ public String exAdd() throws UnsupportedEncodingException{ String newName = new String( 阅读全文
posted @ 2022-05-03 11:21 leochan007 阅读(23) 评论(0) 推荐(0)
摘要: /** * 跳转到添加页面 * @return */ public String add(){ return SUCCESS; } /** * 执行添加 * @return * @throws UnsupportedEncodingException */ public String exAdd() 阅读全文
posted @ 2022-05-03 10:59 leochan007 阅读(14) 评论(0) 推荐(0)
摘要: #include <iostream> #include<direct.h> #include<io.h> bool CheckPathExist(std::string path) { if (access(path.c_str(), 0) == -1) { return false; } ret 阅读全文
posted @ 2022-03-18 16:18 leochan007 阅读(368) 评论(0) 推荐(0)