09 2022 档案

摘要:// 简单实现 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 编辑
摘要: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 阅读(80) 评论(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 阅读(173) 评论(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 阅读(35) 评论(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 阅读(47) 评论(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 编辑

点击右上角即可分享
微信分享提示