上一页 1 2 3 4 5 6 7 ··· 21 下一页
摘要: 通常我们使用 std::call_once 配合 std::once_flag 使用,这里有更简单的方法,如下所示: static auto onece_call = [&]()->int { //onece call code //这里添加需要仅执行一次的代码 return 0; }(); 阅读全文
posted @ 2020-08-13 18:36 學海無涯 阅读(1269) 评论(0) 推荐(0) 编辑
摘要: 一个简单使用 cmake 构建使用 ffmpeg 库的工程。 #设置 camke 最小版本 cmake_minimum_required(VERSION 3.15) #设置工程名称 project(ffmpeg) #设置 C++14 标准 set(CMAKE_CXX_STANDARD 14) #设置 阅读全文
posted @ 2020-08-09 16:56 學海無涯 阅读(145) 评论(0) 推荐(0) 编辑
摘要: N版本Windows 10的媒体功能包将在运行Windows 10 N版本的计算机上安装Media Player和相关技术 https://www.microsoft.com/en-us/software-download/mediafeaturepack 阅读全文
posted @ 2020-07-18 00:30 學海無涯 阅读(224) 评论(0) 推荐(0) 编辑
摘要: 为不同构建模式添加目标生成文件后缀 CONFIG(debug, debug|release) { TARGET = $$join(TARGET,,,d) } $$[QT_INSTALL_BINS] $$[QT_INSTALL_QML] $$[QT_INSTALL_LIBS] $$[QT_INSTAL 阅读全文
posted @ 2020-07-13 10:09 學海無涯 阅读(258) 评论(0) 推荐(0) 编辑
摘要: 在 pro 文件根目录键入以下指令即可,需要注意的是需要 环境变量,直接从 vs 控制台 到 pro 目录即可。 阅读全文
posted @ 2020-05-17 22:58 學海無涯 阅读(796) 评论(0) 推荐(0) 编辑
摘要: ![Imgur](https://i.imgur.com/Uu0cvHz.jpg) 阅读全文
posted @ 2020-04-14 21:09 學海無涯 阅读(192) 评论(0) 推荐(0) 编辑
摘要: vtkPolyData 转换 vtkImageData 阅读全文
posted @ 2020-04-13 22:01 學海無涯 阅读(2641) 评论(1) 推荐(0) 编辑
摘要: ``` /** Compute the sum of elements of a vector */ template class Series { typedef int Vector[10]; public: static double Compute(Vector & vector) { return vector[N-1] + Series::Compute( vector ); // r 阅读全文
posted @ 2020-04-13 15:27 學海無涯 阅读(194) 评论(0) 推荐(0) 编辑
摘要: ``` void findLine(const std::string file,std::double_t min_distance_value = 100.0) { //https://github.com/opencv/opencv/blob/master/modules/imgproc/src/lsd.cpp auto lsd = cv::createLineSegmentDetector 阅读全文
posted @ 2020-03-15 12:45 學海無涯 阅读(1626) 评论(0) 推荐(0) 编辑
摘要: ![Imgur](https://i.imgur.com/6bEPqgi.jpg) ``` void loadFileWhitSTL(vtkSmartPointer renderer); void createText(vtkSmartPointer renderer); void createAxes(vtkSmartPointer renderer); void createGround(vt 阅读全文
posted @ 2020-03-11 20:37 學海無涯 阅读(1761) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 ··· 21 下一页