DeepLearning_TensorFlow icon indicating copy to clipboard operation
DeepLearning_TensorFlow copied to clipboard

make3d

Open ylhua opened this issue 6 years ago • 0 comments

when i use the code to show make3d depthmap, it is always wrong, not showing the correct depthmap,do you have the right results?

def convert_3d(directory): ''' convet Make3D dataset to original and depth image ''' print directory mat_list = glob.glob(directory) for mat in mat_list: mat_name = os.path.basename(mat) print("mat: %s" % (mat_name)) mat_data = loadmat(mat) print mat_data['Position3DGrid'].shape print mat_data['Position3DGrid'][:, :, 3].shape print type(mat_data['Position3DGrid'][:, :, 3]) img = mat_data['Position3DGrid'][:, :, 3] plt.subplot(1, 1, 1) plt.imshow(img) plt.title("Depth %s" % (mat_name)) plt.show()

ylhua avatar Feb 20 '19 12:02 ylhua