03 2019 档案

摘要:直接上代码: double findMedianSortedArrays(int* nums1, int nums1Size, int* nums2, int nums2Size) { int nums[5000], numsSize = nums1Size + nums2Size; int i = 阅读全文
posted @ 2019-03-14 11:33 Lee先森的博客 阅读(334) 评论(0) 推荐(0)
摘要:根本不需要编译源码直接一行命令就可以 sudo apt-get install libpcl-dev 如果没有安装pcl_viewer就再加一行命令 sudo apt-get install pcl-tools 就完事了! 阅读全文
posted @ 2019-03-11 12:03 Lee先森的博客 阅读(1346) 评论(0) 推荐(0)
摘要:假设我们的环境只能存储得下 32 位的有符号整数,则其数值范围为 [−231, 231 − 1]。请根据这个假设,如果反转后整数溢出那么就返回 0。 代码如下: 1 int reverse(int x) { 2 int temp = x, num = 0; 3 while (x) { 4 if (n 阅读全文
posted @ 2019-03-09 16:35 Lee先森的博客 阅读(155) 评论(0) 推荐(0)
摘要:代码如下: 1 /** 2 * Note: The returned array must be malloced, assume caller calls free(). 3 */ 4 int* twoSum(int* nums, int numsSize, int target) { 5 sta 阅读全文
posted @ 2019-03-09 16:27 Lee先森的博客 阅读(276) 评论(0) 推荐(0)
摘要:对极几何其实就是将相机光心和特征点与空间点约束在一个平面上。 如图,相机光心在O1位置时观测到空间点P投影到成像平面的p1上,接着相机运动,相机运动到光心在Or位置的时候观测到空间点P投影到成像平面上的pr处,此时O1、p1、P、Or、pr在一个平面上。 根据相机模型,可以轻松的得到:s1p1=KP 阅读全文
posted @ 2019-03-01 13:49 Lee先森的博客 阅读(886) 评论(0) 推荐(0)