def getVoxelFromMat(path, cube_len=64):
"""Mat ???? ?? Voxel ? ???? ??"""
voxels = io.loadmat(path)['instance']
voxels = np.pad(voxels, (1, 1), 'constant', constant_values=(0, 0))
if cube_len != 32 and cube_len == 64:
voxels = nd.zoom(voxels, (2, 2, 2), mode='constant', order=0)
return voxels
评论列表
文章目录