[FieldTrip] ft_read_headshape

Schoffelen, J.M. (Jan Mathijs) janmathijs.schoffelen at donders.ru.nl
Sat Jun 8 13:38:47 CEST 2024


Hi Irene,

It’s not clear to us as readership what step of the tutorial you are referring to.

I would expect that if you use ft_meshrealign with a cfg that is proper for your use case, you should be able to realign the object.

Best wishes,
Jan-Mathijs


On 5 Jun 2024, at 11:33, Irene Petrizzo via fieldtrip <fieldtrip at science.ru.nl<mailto:fieldtrip at science.ru.nl>> wrote:

Thank you Jan-Mathijs! This solved the first part of my problem. However, after indicating the fiducial positions in the interactive window, when I check the position of the axes the positive and negative y-axes don't go through the preauricular points, and also the X axes is shifted on the forehead.
I am following exactly the steps of this tutorial:
https://www.fieldtriptoolbox.org/tutorial/electrode/<https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.fieldtriptoolbox.org%2Ftutorial%2Felectrode%2F&data=05%7C02%7Cfieldtrip%40science.ru.nl%7C48b6a44d9bcf4db1260e08dc87af8f4e%7C084578d9400d4a5aa7c7e76ca47af400%7C1%7C0%7C638534435302610177%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=FfiPMaUvTZ6ANqtfTzhTIXuZUR8e%2FsdGrRFoxzx%2BHdc%3D&reserved=0>

But I can't figure out the problem

Il giorno mer 5 giu 2024 alle ore 10:01 Schoffelen, J.M. (Jan Mathijs) via fieldtrip <fieldtrip at science.ru.nl<mailto:fieldtrip at science.ru.nl>> ha scritto:
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%7C48b6a44d9bcf4db1260e08dc87af8f4e%7C084578d9400d4a5aa7c7e76ca47af400%7C1%7C0%7C638534435302766430%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=4YR6ZEpF7a7bLcEvPfNyVnSP4l5daRBMf6XpVsxegPo%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%7C48b6a44d9bcf4db1260e08dc87af8f4e%7C084578d9400d4a5aa7c7e76ca47af400%7C1%7C0%7C638534435302766430%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=51YbnxkRcSV%2Bcm7F727jA4TKC2fVtAZ11vG1nk0Fgyg%3D&reserved=0>
https://doi.org/10.1371/journal.pcbi.1002202<https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdoi.org%2F10.1371%2Fjournal.pcbi.1002202&data=05%7C02%7Cfieldtrip%40science.ru.nl%7C48b6a44d9bcf4db1260e08dc87af8f4e%7C084578d9400d4a5aa7c7e76ca47af400%7C1%7C0%7C638534435302766430%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=oBa%2FIGsJ3z82Q3swJPb2%2FBXccEo1ASrjJCGnKnnG9xg%3D&reserved=0>

_______________________________________________
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%7C48b6a44d9bcf4db1260e08dc87af8f4e%7C084578d9400d4a5aa7c7e76ca47af400%7C1%7C0%7C638534435302766430%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=51YbnxkRcSV%2Bcm7F727jA4TKC2fVtAZ11vG1nk0Fgyg%3D&reserved=0>
https://doi.org/10.1371/journal.pcbi.1002202<https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdoi.org%2F10.1371%2Fjournal.pcbi.1002202&data=05%7C02%7Cfieldtrip%40science.ru.nl%7C48b6a44d9bcf4db1260e08dc87af8f4e%7C084578d9400d4a5aa7c7e76ca47af400%7C1%7C0%7C638534435302766430%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=oBa%2FIGsJ3z82Q3swJPb2%2FBXccEo1ASrjJCGnKnnG9xg%3D&reserved=0>


--
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%7C48b6a44d9bcf4db1260e08dc87af8f4e%7C084578d9400d4a5aa7c7e76ca47af400%7C1%7C0%7C638534435302766430%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=4YR6ZEpF7a7bLcEvPfNyVnSP4l5daRBMf6XpVsxegPo%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%7C48b6a44d9bcf4db1260e08dc87af8f4e%7C084578d9400d4a5aa7c7e76ca47af400%7C1%7C0%7C638534435302766430%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=51YbnxkRcSV%2Bcm7F727jA4TKC2fVtAZ11vG1nk0Fgyg%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/20240608/565359b9/attachment.htm>


More information about the fieldtrip mailing list