andyzeng / 3dmatch-toolbox

3DMatch - a 3D ConvNet-based local geometric descriptor for aligning 3D meshes and point clouds.
http://3dmatch.cs.princeton.edu/
BSD 2-Clause "Simplified" License
836 stars 189 forks source link

how to read .mat files generated from the 'makeCorresDataset.m' matlab script in python #21

Open muhammadaly opened 5 years ago

muhammadaly commented 5 years ago

I want to read data generated from makeCorresDataset.m matlab script using python

andyzeng commented 5 years ago

Does SciPy's loadmat work? Alternatively you could load the data in Matlab, then save it into something that's easily python-readable like HDF5.

muhammadaly commented 5 years ago

actually I successfully load the files, I'm trying to understand the object structure for mat['data'] . when reading mat['labels'][0][0] I got 1x1 array of float element which is donate the label , but in case of mat['data'][0][0] I found and 1x1 object that I couldn't understand .

what extactly I want is the TFD values in order to be able to train them in keras