自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(16)
  • 收藏
  • 关注

原创 使用Oh my Posh设置Windows PowerShell主题要点

要点:①按照官方文档安装Oh my Posh。遇到“PowerShell因为在此系统中禁止执行脚本...”的问题时,使用管理员身份打开PowerShell,执行set-ExecutionPolicy RemoteSigned②在PowerShell中单独设置主题一次可执行Set-PoshPrompt -Theme slim。若要每次打开PowerShell自动设置主题,需要在C:\Users\myname\Documents\WindowsPowerShell文件夹下新建Microsoft.Powe

2021-03-08 17:17:15 2969

原创 使用stbi_load读取图像作为glfwSetWindowIcon的参数

关键代码: GLFWimage icon; icon.width = 32; icon.height = 32; int channels = 3; icon.pixels = stbi_load("aubo.jpg", &icon.width, &icon.height, &channels, 4); glfwSetWindowIcon(window, 1, &icon);效果:glfw窗口左上角:Windows...

2021-01-07 20:28:13 2114 1

原创 在线生成包含标定图案的pdf文件

分享一个在线生成标定图案并能下载包含标定图案pdf文件的网址。网址:https://calib.io/pages/camera-calibration-pattern-generator效果:

2020-04-07 10:29:36 2023 1

原创 自定义hypermesh键位

Q:hm_pushpanel {quick edit}R:hm_pushpanel {rotate}T:hm_pushpanel {translate}A:hm_pushpanel {automesh}G:hm_pushpanel {organize}L: hm_pushpanel {length}

2019-10-14 20:11:45 403

原创 网络剪切板

#include<opencv2/opencv.hpp>#include<vector>#include<iostream>cv::Mat_<double> getMC(cv::Mat_<double> &M){ if (3 != M.rows || 3 != M.cols) { std...

2019-10-02 16:32:40 866

原创 c++便笺

#include<algorithm>std::reverse(str.begin(), str.end());//反转stringstd::sort(vec.begin(), vec.end());//默认升序std::sort(vec.begin(), vec.end(), greater<double>());//依次greater than(即降序)...

2019-09-24 11:04:19 271

原创 使用cmake生成PCL项目时报错解决方法

使用cmake编译PCL时报如下错误的解决方法CMake Error at C:/Program Files (x86)/PCL 1.8.0/3rdParty/VTK/lib/cmake/vtk-7.0/Modules/vtkGUISupportQt.cmake:17 (find_package):By not providing "FindQt5Widgets.cmake" in CM...

2019-09-16 19:09:55 5008

原创 图像文件左右重命名

@echo offecho rename to temp_RL...ren "1_leftimage.bmp" "temp_1_leftimage.bmp" ren "1_rightimage.bmp" "temp_1_rightimage.bmp" ren "2_leftimage.bmp" "temp_2_leftimage.bmp" ren "2_righti...

2019-08-20 10:12:18 117

转载 OpenCV findContours

//修改自https://visualgdb.com/tutorials/raspberry/opencv/camera/#include "opencv2/highgui/highgui.hpp"#include "opencv2/imgproc/imgproc.hpp"#include <ctime>#include <iostream>using nam...

2019-07-19 14:38:42 1166

原创 include路径,lib路径,lib文件名

C/C++ ---> 常规 ---> 附加包含目录$(PCL_ROOT)\3rdParty\Boost\include\boost-1_68;$(PCL_ROOT)\3rdParty\Eigen\eigen3;$(PCL_ROOT)\3rdParty\FLANN\include\flann;$(OPENNI2_INCLUDE);$(PCL_ROOT)\3rdParty\Qhull\i...

2019-07-12 17:43:29 789

原创 OpenCV image split and merge

#include<opencv2\opencv.hpp>#include<vector>#include<iostream>using namespace cv;using namespace std;int main(){ Mat orig = imread("test.jpg"); if (orig.empty())...

2019-07-06 15:00:59 191

原创 ubuntu 18.04.2下编译DSO-SLAM遇到的问题和解决方法,仅供参考

问题1:cmake时提示error: ‘CV_LOAD_IMAGE_GRAYSCALE’ was not declared in this scope cv::Mat m = cv::imread(filename, CV_LOAD_IMAGE_GRAYSCALE);解决方式:修改dso/src/IOWrapper/OpenCV/ImageRW_OpenCV.cpp中相应的内容...

2019-06-28 11:24:18 775 1

原创 Windows 10 使用 cmake 生成解决方案 Visual Studio 2015 编译 x64 版本包含 opencv_contrib 模块的 OpenCV3.4.5 注意事项

1. opencv-3.4.5.zip 和 opencv_contrib-3.4.5.zip,版本要对应2. Windows下cmake中配置OPENCV_EXTRA_MODULES_PATH要注意反斜杠问题

2019-06-22 11:43:41 221

原创 VS2019_OpenCV410_灵魂出窍简单特效

#include<iostream>#include<opencv2\opencv.hpp>int main(){ cv::Mat frame; cv::Mat keyFrame; cv::Mat result; cv::VideoCapture vCap; //打开摄像头 vCap.open(0); if ...

2019-05-26 20:27:56 711

原创 Excel小时转换为xx个月xx天xx小时

excel表格中“xx小时”转换为“xx个月xx天xx小时”的公式=INT(C2/24/30)&"个月"&INT(MOD(C2,24*30)/24)&"天"&MOD(INT(C2),24)&"小时"

2019-05-24 23:08:07 1263

原创 OpenCV测试程序_生成随机图像

#include<iostream>#include<opencv2\opencv.hpp>int main(){ cv::Mat img = cv::Mat::zeros(cv::Size(320, 240), CV_8UC1); cv::randu(img, cv::Scalar::all(0), cv::Scalar::all(255));...

2019-05-22 22:30:54 662

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除