tsdf
mesh
point cloud
远程连接服务器没有运行功,但是在服务器上运行成功。
Issue with pycuda- error invoking 'nvcc --version' · Issue #8 · andyzeng/tsdf-fusion-python · GitHubHello, Script works absolutely fine in CPU mode but its very slow. I was trying to debug the code and got stuck on this issue. I have installed all the required packages and also added below 2 lines to my .bashrc file export PATH=/usr/lo...https://github.com/andyzeng/tsdf-fusion-python/issues/8nvcc的路径强行添加到Pycuda的compiler.py文件中的compile_plain()中,成功解决了这一错误
主要目的:读取内参,pose(camera->world), 深度图,根据深度图确定体素的范围,X,Y,Z 三个轴的最小值和最大值。也就是 vol_bnds。 具体怎么得到的如下部分代码:
就是在图像X轴方向的最大最小(0, w),图像Y轴方向的最大最小(0,h),图像Z轴方向最大最小(0, max_depth),然后将其转换到相机坐标系(K),然后再变换到世界坐标系(pose),就得到在这个相机位姿下,三个坐标轴得最大值和最小值。
def get_view_frustum(depth_im, cam_intr, cam_pose):
"""Get corners of 3D camera view frustum of depth image
"""
im_h = depth_im.shape[0]
im_w = depth_im.shape[1]
max_depth = np.max(depth_im)
view_frust_pts = np.array([
(np.array([0,0,0,im_w,im_w])-cam_intr[0,2])*np.array([0,max_depth,max_depth,max_depth,max_depth])/cam_intr[0,0],
(np.array([0,0,im_h,0,im_h])-cam_intr[1,2])*np.array([0,max_depth,max_depth,max_depth,max_depth])/cam_intr[1,1],
np.array([0,max_depth,max_depth,max_depth,max_depth])
]) #
view_frust_pts = rigid_transform(view_frust_pts.T, cam_pose).T
return view_frust_pts