学习
MQLcsdn
这个作者很懒,什么都没留下…
展开
-
OpenMVG使用已知相机位姿一些记录
https://github.com/openMVG/openMVG/issues/1420https://openmvg.readthedocs.io/en/latest/software/SfM/SfMInit_ImageListing/https://blog.csdn.net/qq_38185927/article/details/106027950?ops_request_misc=%257B%2522request%255Fid%2522%253A%2522160005178219724原创 2020-09-26 20:46:27 · 1001 阅读 · 0 评论 -
C++ 静态成员函数和lambda表达式的一些探索
故事的开始,从牛客网一道题目说起。输入一个正整数数组,把数组里所有数字拼接起来排成一个数,打印能拼接出的所有数字中最小的一个。例如输入数组{3,32,321},则打印出这三个数字能排成的最小数字为321323。题目怎么求解暂且不表,现在visual studio 2017中写好代码,如下:bool mCmp(const string& s1, const string &...原创 2020-02-04 11:30:45 · 1409 阅读 · 0 评论 -
C++ STL中的堆(heap)排序的一些探索
偶然遇到了一个可用堆排序解决的问题,查了一下,STL库中自带简单的堆排序。直接上代码:#include "stdafx.h"#include<algorithm>#include<vector>#include<iostream>using namespace std;void print_vec(const vector<int&g...原创 2020-02-02 12:38:38 · 634 阅读 · 0 评论 -
C++ multiset的一些探索
偶然遇见平时不常用的一个容器multiset。直接上代码:#include "stdafx.h"#include<set>#include<iostream>using namespace std;template<typename T>using mset = multiset<T>;int main(){ mset<...原创 2020-02-01 23:35:30 · 194 阅读 · 0 评论 -
C++ 函数指针的一点探索
void Test0(int n) { cout << n << endl;}void Test1() { cout << "hello,C++" << endl;}void FuncPointTest0(void (*func)(int n)) { func(5);}void FuncPointTest1(void(*fu...原创 2020-01-19 22:52:34 · 99 阅读 · 0 评论 -
ubuntu 16.04安装NVIDIA驱动
1.官网下载对应版本2.sudo gedit /ect/modprobe.d/blacklist-nouveau.conf 编写blacklist nouveauoptions nouveau modeset=0更新系统 sudo update-initramfs -u 重启系统 我也不知道这一步到底有没有用 好像不写也可以lsmod | grep nouveau3.将下...原创 2019-12-06 09:37:32 · 179 阅读 · 0 评论 -
使用ZED Mini 相机运行ORB-SLAM2
一直想使用双目相机跑ORB-SLAM2,奈何没有双目相机,拿两个单目相机又觉得有点low。刚好另一个项目用到了zed mini双目相机,项目昨天也交差了,终于有时间可以去试试zed mini跑ORB-SLAM2。直接上步骤:一、先用zed mini 读取双目的图像。1.按照zed mini官网上说的下载SDK 配置什么的。遇到的问题有:ttf-mscorefonts-inst...原创 2019-11-29 21:18:55 · 2309 阅读 · 5 评论 -
详解unity中tranform.worldToLocalMatrix
本来是想写一个求A物体在B物体坐标系下的坐标。写完了才发现有worldToLocalMatrix这个函数,后来查了查还有InverseTransformPoint这个函数。。。没看API就直接写真血亏。算了,就当是一次详解吧,直接上代码。 Vector3 world2Local(Transform _worldPosition) { Matrix4x4 tr...原创 2019-07-17 19:59:15 · 7622 阅读 · 0 评论 -
unity shader 可变的刻度尺
写了一个可变的刻度尺的shader。Shader "Custom/biaochi" { Properties{ _titleNum("title num",Range(10,100)) = 10 } SubShader{ ZWrite Off Blend SrcAlpha OneMinusSrcAlpha Tags { "RenderType" = "Transpa...原创 2019-06-30 17:31:42 · 2183 阅读 · 2 评论 -
unity使用perlin噪声并保存为PNG图片
unity使用perlin噪声并保存为PNG图片。using System.Collections;using System.Collections.Generic;using UnityEngine;using System.IO;public class perlinTest : MonoBehaviour { // Width and height of the te...原创 2019-05-22 16:58:09 · 551 阅读 · 2 评论 -
在UI上画点线面
先上一张效果图。上面的背景是UI canvasPanel上的图片,之所以在UI上画点线面,是因为我的师兄就把这个背景放到UI上了,我懒得改了。如果后续有需要,可以改在世界空间中,也不麻烦,加一个坐标系转换就可以了。上图大概有三个阶段。 first of all,鼠标点到的地方会有一个红色的点。 sceond,两个点之间会有一条线,也就是多边体的边缘。 last b...原创 2019-05-11 10:54:00 · 595 阅读 · 0 评论 -
学习雷达波,防护罩shader的记录
我的前老板告诉我,shader要想做好,就要多看多记。 初学sahder,自然想看看大佬们的shader都是怎么写的。虽然程序员只需要ctrl+c ctrl+v就可以编程,但是我还是想细致理解其中的过程,在看这个雷达波的shader中感觉学到了很多东西,特此记录。接上一篇。依然是这个雷达波的shader。首先,贴上大佬的链接:http://www.manew.com/th...原创 2019-03-17 10:37:54 · 1601 阅读 · 0 评论