Back to the main page.

Bug 2370 - implement support for reading 3D facial scans in ply format

Reported 2013-11-11 10:18:00 +0100
Modified 2014-02-24 10:56:31 +0100
Product: FieldTrip
Component: fileio
Version: unspecified
Hardware: PC
Operating System: Mac OS
Importance: P3 normal
Assigned to: Robert Oostenveld
Depends on:
See also:

Robert Oostenveld - 2013-11-11 10:18:15 +0100

Hans (CC) has requested to process facial meshes in fieldtrip/matlab and has given mee a few example files. They are in binary ply format, which is not yet supported in fieldtrip. TODO: 1) extend ft_filetype, make it case-insensitive, >> ft_filetype('EMG_Frontalis_20130828_003.PLY') Warning: could not determine filetype of EMG_Frontalis_20130828_003.PLY > In fileio/private/warning_once at 158 In ft_filetype at 1152 ans = unknown 2) implement a read_ply low-level function and add it to ft_read_headshape. Following this, we can look at the coregistration options.

Robert Oostenveld - 2013-11-11 10:19:44 +0100

see for documentation

Robert Oostenveld - 2013-11-11 12:50:40 +0100

I added support for writing binary ply files, added support for reading ascii and binary ply files. Added test script. mac001> svn commit fileio test/ Sending fileio/ft_filetype.m Sending fileio/ft_read_headshape.m Sending fileio/ft_write_headshape.m Adding fileio/private/read_ply.m Sending fileio/private/write_ply.m Adding test/test_bug2370.m Transmitting file data ...... Committed revision 8749. In the previous commit I also made a modification for ft_plot_mesh.

Robert Oostenveld - 2013-11-11 12:54:35 +0100

The following now works in FieldTrip (revision 8750 or later) mesh = ft_read_headshape('EMG_Frontalis_20130828_0011.PLY') ft_plot_mesh(mesh, 'vertexcolor', 'none', 'edgecolor', 'none', 'facecolor', mesh.color) and results in the same figure as what you get with

Robert Oostenveld - 2014-02-24 10:56:31 +0100

I closed several bugs at once that all have been resolved for some time. If you disagree, please reopen.