[FieldTrip] ft_read_headshape

Schoffelen, J.M. (Jan Mathijs) janmathijs.schoffelen at donders.ru.nl
Wed Jun 5 09:47:44 CEST 2024


Hi Irene,

Typically, obj-files do not contain explicit information w.r.t. the metrical units in which the coordinates are expressed. FieldTrip tries to do an educated guess, but may fail depending on the contents of the file.
If ‘dm’ is wrong, you can just change this ‘by hand’, after the file has been read in.

hs = ft_read_headshape(filename);
hs.unit = ‘cm’/‘m’/‘km’/‘mm’/‘feet’/‘inch' <-choose one of those (apart from feet or inch)

Best wishes,
Jan-Mathijs




On 4 Jun 2024, at 10:09, Irene Petrizzo via fieldtrip <fieldtrip at science.ru.nl<mailto:fieldtrip at science.ru.nl>> wrote:

When trying to read a headshape in the .obj format I get the following warning:

Warning: the estimated units are not very decisive, assuming that the units are "dm"

The displayed headshape is out of dimensions and when trying to set the fiducials the indicated position is not recognized correctly by the script. This happens only with this headmodel. Is there a way to correct this or is the .obj file corrupted?

Thank you,
--
Irene Petrizzo
Postdoctoral Fellow

University of Trento
CIMeC - Center for Mind/Brain Sciences |  http://r.unitn.it/en/cimec/per2con<https://eur01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fr.unitn.it%2Fen%2Fcimec%2Fper2con&data=05%7C02%7Cfieldtrip%40science.ru.nl%7Cb3b46bb665a7485fbcd608dc8533c981%7C084578d9400d4a5aa7c7e76ca47af400%7C1%7C0%7C638531704658744862%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=yzjS8L%2FnavnZs13LxDB4TzYplGR%2BC3NS6wsTbgzBqGQ%3D&reserved=0>
Palazzo Fedrigotti - corso Bettini 31, 38068 Rovereto (TN) Italy

[https://ci3.googleusercontent.com/mail-sig/AIorK4z7wvpwD2IoQq97FShlF8sLls1rFIjCXFsfHEfCItov2fU-iVsEupHbWm_rEwQur0YCxpbC2Gs]
_______________________________________________
fieldtrip mailing list
https://mailman.science.ru.nl/mailman/listinfo/fieldtrip<https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmailman.science.ru.nl%2Fmailman%2Flistinfo%2Ffieldtrip&data=05%7C02%7Cfieldtrip%40science.ru.nl%7Cb3b46bb665a7485fbcd608dc8533c981%7C084578d9400d4a5aa7c7e76ca47af400%7C1%7C0%7C638531704658744862%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=70ee41Ta1yXGwi9EYeveStHZfMmSGNKMhPiAfOwG58A%3D&reserved=0>
https://doi.org/10.1371/journal.pcbi.1002202

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20240605/04564312/attachment.htm>


More information about the fieldtrip mailing list