摘要: #include <iostream> #define JMETHOD(type,methodname,arglist) type (*methodname) arglist JMETHOD(int, test_func, (int a, int b)); int add(int a, int b) 阅读全文
posted @ 2022-10-15 21:35 leochan007 阅读(17) 评论(0) 推荐(0) 编辑
摘要: 使用流程可参考: https://blog.csdn.net/wxc237786026/article/details/41171079 BOOL CDemoApp::InitInstance() { // 多文档描述 int m_nDocCount; //number of documents C 阅读全文
posted @ 2022-10-15 09:50 leochan007 阅读(24) 评论(0) 推荐(0) 编辑
摘要: package main import ( "encoding/json" "fmt" "log" "net/http" ) //<link rel="stylesheet" href="media/index.css"> func indexHandler(w http.ResponseWrite 阅读全文
posted @ 2022-10-11 20:30 leochan007 阅读(9) 评论(0) 推荐(0) 编辑
摘要: // 简单实现 cv::namedWindow("Example 2-3", cv::WINDOW_AUTOSIZE); cv::VideoCapture cap; cap.open(0); cout << "Opened file: " << argv[1] << endl; cv::Mat fr 阅读全文
posted @ 2022-09-25 21:16 leochan007 阅读(167) 评论(0) 推荐(0) 编辑
摘要: int main(int argc, char** argv) { cv::namedWindow("Example 2-3", cv::WINDOW_AUTOSIZE); cv::VideoCapture cap; cap.open(0); cout << "Opened file: " << a 阅读全文
posted @ 2022-09-25 20:55 leochan007 阅读(66) 评论(0) 推荐(0) 编辑
摘要: 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 阅读(135) 评论(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 阅读(30) 评论(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 阅读(39) 评论(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 阅读(174) 评论(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 阅读(339) 评论(0) 推荐(0) 编辑