-
Notifications
You must be signed in to change notification settings - Fork 8
Open
Description
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()
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels