![](https://img-blog.csdnimg.cn/20201014180756913.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
code_C++
种棒影妞
explain is pale,show me code
展开
-
C++ 中批量处理文件的操作
std::string filedir = "/home/sy/data/vison/rock/pic/"; const char *fileDir = filedir.c_str(); DIR *dir; dir = opendir(fileDir); struct dirent *ptr; while (ptr = readdir(dir)) {...原创 2019-05-24 14:24:14 · 1660 阅读 · 1 评论 -
相机清晰度评价几种方式-code
//// Created by sy on 19-5-15.//#include <opencv2/highgui.hpp>#include <opencv2/imgproc.hpp>#include <iostream>#include <sys/types.h>#include <dirent.h>/** ...原创 2019-05-16 17:04:56 · 1056 阅读 · 0 评论 -
opencv中 测试运行时间的函数
cv::TickMetercv::TickMeter tmtm.start()" 要执行代码 "tm.end()time=tm.getTimeMicro() 获得umtime=tm.getTimeMilli() 获得mstime=tm.getTimeSec() 获得stime=getTimeTicks() / getTickFrequency() 获...原创 2019-05-28 11:03:57 · 1490 阅读 · 0 评论 -
liunx 下OpenMP
由于项目需要,这两天在捣鼓OpenMP的加速,现总结下:含OpenMP的Cmakelist.txtfind_package(OpenMP REQUIRED) # configureif (OpenMP_FOUND) SET(CMAKE_CXX_FLAGS "${CMAKE_CX...原创 2019-05-28 13:32:42 · 422 阅读 · 0 评论