[FieldTrip] 3D Scan Data - texture size error

Schoffelen, J.M. (Jan Mathijs) janmathijs.schoffelen at donders.ru.nl
Tue Jul 6 08:49:16 CEST 2021


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 ?

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://urldefense.com/v3/__https://structure.io/structure-sensor__;!!HJOPV4FYYWzcc1jazlU!oKxS2tdwZebhas2ILvjRKCBItYb-0xMiFBgejMBEkUCih1Slyx64ZkON7BjUsUNu9Phlavl7-M2M9Jc$>). 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://urldefense.com/v3/__https://llamblab.haskins.yale.edu/__;!!HJOPV4FYYWzcc1jazlU!oKxS2tdwZebhas2ILvjRKCBItYb-0xMiFBgejMBEkUCih1Slyx64ZkON7BjUsUNu9Phlavl7PPcFaTw$>
Haskins Laboratories<https://urldefense.com/v3/__https://haskinslabs.org/__;!!HJOPV4FYYWzcc1jazlU!oKxS2tdwZebhas2ILvjRKCBItYb-0xMiFBgejMBEkUCih1Slyx64ZkON7BjUsUNu9Phlavl7DIIi61E$>
300 George Street, Suite 900
New Haven CT, 06511
_______________________________________________
fieldtrip mailing list
https://mailman.science.ru.nl/mailman/listinfo/fieldtrip
https://urldefense.com/v3/__https://doi.org/10.1371/journal.pcbi.1002202__;!!HJOPV4FYYWzcc1jazlU!oKxS2tdwZebhas2ILvjRKCBItYb-0xMiFBgejMBEkUCih1Slyx64ZkON7BjUsUNu9Phlavl7GE8dhIU$

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


More information about the fieldtrip mailing list