[FieldTrip] 3D Scan Data - texture size error

Sanchez-alonso, Sara sara.sanchez.alonso at yale.edu
Tue Jul 6 21:37:13 CEST 2021


Hi Jan-Mathijs,

Thanks so much for your quick answer. I have shared a couple of the problematic files with you via Dropbox. Please, let me know if you have any problem accessing the scans.

I will go ahead and also file an issue on the github account.

Best,
Sara

From: fieldtrip <fieldtrip-bounces at science.ru.nl> on behalf of "Schoffelen, J.M. (Jan Mathijs) via fieldtrip" <fieldtrip at science.ru.nl>
Reply-To: FieldTrip discussion list <fieldtrip at science.ru.nl>
Date: Tuesday, July 6, 2021 at 2:52 AM
To: FieldTrip discussion list <fieldtrip at science.ru.nl>
Cc: "Schoffelen, J.M. (Jan Mathijs)" <janmathijs.schoffelen at donders.ru.nl>
Subject: Re: [FieldTrip] 3D Scan Data - texture size error

Hi Sara,

We don’t work with this type of file regularly. The last time I looked into this is actually one year ago judging from the thread on the discussion list that you probably are referring to.
The ‘fix’ I made back then was in order to address the error for the problematic file that was shared with us. Apparently, your problematic files have problems of a different nature.
So, I guess that the code is still not robust enough - that is, it still has too strong expectations with respect to the exact content of the files which are not always met - in order to deal with .obj files.
Could you share perhaps one of those problematic scans with us so that we can have a look, and file an issue about this on github: https://github.com/fieldtrip/fieldtrip/issues<https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Ffieldtrip%2Ffieldtrip%2Fissues&data=04%7C01%7Csara.sanchez.alonso%40yale.edu%7C65381b85b7354cf7b5b408d9404a9fcc%7Cdd8cbebb21394df8b4114e3e87abeb5c%7C0%7C0%7C637611511561175369%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=mKOsVphPQ%2FNkeHxf%2Bvh8OUB5QcOhWUJ8bNIMYfjRXC0%3D&reserved=0> ?

Best wishes,
Jan-Mathijs



On 5 Jul 2021, at 23:20, Sanchez-alonso, Sara via fieldtrip <fieldtrip at science.ru.nl<mailto:fieldtrip at science.ru.nl>> wrote:

Dear FieldTrip Community,

I am trying to localize NIRS optodes using a 3D structure sensor (specifically Structure Sensor Mark II, https://structure.io/structure-sensor<https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Furldefense.com%2Fv3%2F__https%3A%2F%2Fstructure.io%2Fstructure-sensor__%3B!!HJOPV4FYYWzcc1jazlU!oKxS2tdwZebhas2ILvjRKCBItYb-0xMiFBgejMBEkUCih1Slyx64ZkON7BjUsUNu9Phlavl7-M2M9Jc%24&data=04%7C01%7Csara.sanchez.alonso%40yale.edu%7C65381b85b7354cf7b5b408d9404a9fcc%7Cdd8cbebb21394df8b4114e3e87abeb5c%7C0%7C0%7C637611511561175369%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=UCb4WqckHNNh3WWJO66%2BKvPZehke1uTphsdGx6jGkUM%3D&reserved=0>). I have been following the FieldTrip scanner tutorial, which seems to work with most of my scans (20 scans in total), but not for a subset (7 scans). When I try to load the data for this subset of scans, I get an error in the refine function:

Error using refine (line 72)
invalid size of texture

Error in ft_read_headshape (line 1030)
        [shape.pos, shape.tri, texture] = refine(shape.pos, shape.tri,...


Searching through the discussion list, I saw that someone run into a similar error about a year ago, which was caused by the assumptions that FieldTrip makes about the content of the obj-file. It seems that this issue had been solved, so I wonder whether this is due to a similar or new issue.

I am using fieldtrip-20210629 and jpg as image file.

Any help would be much appreciated. Thanks in advance.

Best,
Sara

--
Sara Sanchez-Alonso, Ph.D.
Postdoctoral Associate
Language Learning and Multisensory Brain Lab<https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Furldefense.com%2Fv3%2F__https%3A%2F%2Fllamblab.haskins.yale.edu%2F__%3B!!HJOPV4FYYWzcc1jazlU!oKxS2tdwZebhas2ILvjRKCBItYb-0xMiFBgejMBEkUCih1Slyx64ZkON7BjUsUNu9Phlavl7PPcFaTw%24&data=04%7C01%7Csara.sanchez.alonso%40yale.edu%7C65381b85b7354cf7b5b408d9404a9fcc%7Cdd8cbebb21394df8b4114e3e87abeb5c%7C0%7C0%7C637611511561185367%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=CRqehlqMYKrpOrgLcQXPKadQuFa97RFP4MLbH%2BU1o14%3D&reserved=0>
Haskins Laboratories<https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Furldefense.com%2Fv3%2F__https%3A%2F%2Fhaskinslabs.org%2F__%3B!!HJOPV4FYYWzcc1jazlU!oKxS2tdwZebhas2ILvjRKCBItYb-0xMiFBgejMBEkUCih1Slyx64ZkON7BjUsUNu9Phlavl7DIIi61E%24&data=04%7C01%7Csara.sanchez.alonso%40yale.edu%7C65381b85b7354cf7b5b408d9404a9fcc%7Cdd8cbebb21394df8b4114e3e87abeb5c%7C0%7C0%7C637611511561185367%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=EUAdsW5FXOLd8ZrZSTgeQsZ0NFTKdFO8uirwTmJOR6w%3D&reserved=0>
300 George Street, Suite 900
New Haven CT, 06511
_______________________________________________
fieldtrip mailing list
https://mailman.science.ru.nl/mailman/listinfo/fieldtrip<https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmailman.science.ru.nl%2Fmailman%2Flistinfo%2Ffieldtrip&data=04%7C01%7Csara.sanchez.alonso%40yale.edu%7C65381b85b7354cf7b5b408d9404a9fcc%7Cdd8cbebb21394df8b4114e3e87abeb5c%7C0%7C0%7C637611511561195359%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=jMCi6%2FlmHTiILq5FWF5IHeQcemTaVrnnl2HYDp7absg%3D&reserved=0>
https://urldefense.com/v3/__https://doi.org/10.1371/journal.pcbi.1002202__;!!HJOPV4FYYWzcc1jazlU!oKxS2tdwZebhas2ILvjRKCBItYb-0xMiFBgejMBEkUCih1Slyx64ZkON7BjUsUNu9Phlavl7GE8dhIU$<https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Furldefense.com%2Fv3%2F__https%3A%2F%2Fdoi.org%2F10.1371%2Fjournal.pcbi.1002202__%3B!!HJOPV4FYYWzcc1jazlU!oKxS2tdwZebhas2ILvjRKCBItYb-0xMiFBgejMBEkUCih1Slyx64ZkON7BjUsUNu9Phlavl7GE8dhIU%24&data=04%7C01%7Csara.sanchez.alonso%40yale.edu%7C65381b85b7354cf7b5b408d9404a9fcc%7Cdd8cbebb21394df8b4114e3e87abeb5c%7C0%7C0%7C637611511561195359%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=lYdDn%2FMY53SjEUwPPe4pOkMPjgh4NhZal8ASPoaSFzw%3D&reserved=0>

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


More information about the fieldtrip mailing list