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

where is makeCorresDataset #12

Closed QinZiwen closed 6 years ago

QinZiwen commented 6 years ago

Hi, I do not find “makeCorresDataset” in 3dmatch-toolbox? In addition, I want to use mxnet to train my net with TDF. But I don't known how to input TDF to my net? thanks!

andyzeng commented 6 years ago

makeCorresDataset.m can be found in evaluation/keypoint-matching/makeCorresDataset.m

The code from this repository saves TDF voxel grids as a flattened array of float values. You can read those into your MXNet data loader and convert/reshape your TDF into a 3-dimensional array (numpy.ndarray object), convert it into an MXNet NDArray, and pass it into your net (refer to here). Code to compute TDF from mesh, or depth images, 3D point clouds, can be found here.