上一页 1 ··· 20 21 22 23 24 25 26 27 28 ··· 38 下一页
摘要: 1、等待线程执行完成 join() 方法数会阻塞主线程直到目标线程调用完毕,即join会直接执行该子线程的函数体部分。 2、暂停线程(线程休眠) 使用std::this_thread::sleep_for或std::this_thread::sleep_until。 3、线程终止 一般情况下当线程函 阅读全文
posted @ 2019-09-24 17:30 玥茹苟 阅读(1770) 评论(0) 推荐(0) 编辑
摘要: 1、普通函数(线程入口) 2、类成员函数(线程入口) https://www.jianshu.com/u/88ad4f76eb79 阅读全文
posted @ 2019-09-24 16:26 玥茹苟 阅读(1374) 评论(0) 推荐(0) 编辑
摘要: 1、数据类型转换(static_cast) //数据类型转换printf("%d\n", static_cast<int>(10.2));2、指针类型转换(reinterpret_cast) //指针类型转换 int *pint = new int(1); char *pch = reinterpr 阅读全文
posted @ 2019-09-20 17:24 玥茹苟 阅读(1183) 评论(0) 推荐(0) 编辑
摘要: 1、下载 https://www.boost.org/users/history/2、cd d:\boost\boost_1_61_03、bootstrap --prefix="D:\boost\boost_1_61_0"4、b2 --build-type=complete --toolset=ms 阅读全文
posted @ 2019-09-19 16:58 玥茹苟 阅读(144) 评论(0) 推荐(0) 编辑
摘要: c版: c++版: 阅读全文
posted @ 2019-09-18 09:48 玥茹苟 阅读(985) 评论(0) 推荐(0) 编辑
摘要: 该算法在RANSAC和空间检索树的基础上实现的。 算法思路: 1、点云抽希、法线估计 2、出局点索引存储声明 3、平面检测 for (size_t i = 0; i < cloudTemp->points.size(); i++) { 判断为出局点; if (检索一定量的临近点) { 判断搜索点集是 阅读全文
posted @ 2019-09-17 11:51 玥茹苟 阅读(1785) 评论(3) 推荐(0) 编辑
摘要: 1、点到平面直线的距离: 代码: double pt3dToLine(double* pt0, double* pt1, double* pt2) { // 使用空间直线的两点式,pt0为直线外一点. double t = ((pt2[0] - pt1[0]) * (pt0[0] - pt1[0]) 阅读全文
posted @ 2019-09-11 15:23 玥茹苟 阅读(4822) 评论(0) 推荐(0) 编辑
摘要: 计算公式:: 阅读全文
posted @ 2019-09-11 14:38 玥茹苟 阅读(918) 评论(0) 推荐(0) 编辑
摘要: sphere-kdtree算法思路说明 具体思路如下: 第一、球半径分割,即利用不同的球半径,将三维空间点(向量)分割成多块。所以首先要求确定的就是分割多少块,怎么设置半径最合理。 第二、三维空间点平衡二叉树的实现,也就是kdtree的思想,平衡二叉树的建立,但要尽可能避免树的两个分支数量差异较大, 阅读全文
posted @ 2019-09-06 17:21 玥茹苟 阅读(572) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2019-08-30 11:47 玥茹苟 阅读(492) 评论(3) 推荐(0) 编辑
上一页 1 ··· 20 21 22 23 24 25 26 27 28 ··· 38 下一页