Skip to content

make3d #1

@ylhua

Description

@ylhua

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()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions