[FieldTrip] 3D Scan Data - texture size error

Schoffelen, J.M. (Jan Mathijs) jan.schoffelen at donders.ru.nl
Mon Jul 6 09:31:50 CEST 2020


Hi Rainer,

The error message suggests that there’s an unexpected (at least by Fieldtrip) mismatch between the ’texture’ specification in the .obj file, as compared to the number of points that are in the same .obj file.  That is, there’s a mismatch between the variables that are outputted by the function read_obj_new (in fieldtrip/fileio/private). Assuming that the implementation of this referenced function is correct (i.e. that it reads the file correctly), it suggests that your obj-file either is corrupt, or that it has been formatted in a way that is not anticipated by the reading function.

Could you confirm the mismatch by setting a breakpoint in ft_read_headshape and compare the number of returned texture points in relation to the number of point points?

Would it be possible to share the combined (obj/jpg/mtl) files so that we can have a look?

Best wishes,
JM

On 5 Jul 2020, at 12:37, Rainer Scharf <rainer.scharf at student.tugraz.at<mailto:rainer.scharf at student.tugraz.at>> wrote:

Dear Community,

I’m trying to localize electrodes using a 3D Scanner according to the 3dscanner tutorial.
Everything works for the scan provided in the tutorial.

I use the Skanect Occipital Structure sensor (for computer) not the one for the iPad as shown in the tutorial.

After exporting the data from Skanect I get an OBJ- ,PNG- and MTL-File.
(The fieldtrip code is expecting a jpg-file)

I converted the png file to jpg and also tried to let Matlab use the png-file directly, but it seems to me the texture is not matching with the structure information as the code expects it.
(Other programs like cinema 4D are matching it without any problems.)

When I run the code I get an error in the refine - function:
Error using refine (line 72)
invalid size of texture

I’m using fieldtrip-20200607

Thanks in advances for your advices and support,

All the Best
Rainer

_______________________________________________
fieldtrip mailing list
https://mailman.science.ru.nl/mailman/listinfo/fieldtrip
https://doi.org/10.1371/journal.pcbi.1002202

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


More information about the fieldtrip mailing list