<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div dir="auto" style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Dear Community,<div class=""><br class=""></div><div class="">I’m trying to localize electrodes using a 3D Scanner according to the 3dscanner tutorial.</div><div class="">Everything works for the scan provided in the tutorial.</div><div class=""><br class=""></div><div class="">I use the Skanect Occipital Structure sensor (for computer) not the one for the iPad as shown in the tutorial.</div><div class=""><br class=""></div><div class="">After exporting the data from Skanect I get an OBJ- ,PNG- and MTL-File.</div><div class="">(The fieldtrip code is expecting a jpg-file)</div><div class=""><br class=""></div><div class="">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.</div><div class="">(Other programs like cinema 4D are matching it without any problems.)</div><div class=""><br class=""></div><div class="">When I run the code I get an error in the <b class="">refine</b> - function:</div><div class=""><div class=""><font color="#ff2600" class="">Error using refine (line 72)</font></div><div class=""><font color="#ff2600" class="">invalid size of texture</font></div></div><div class=""><br class=""></div><div class="">I’m using fieldtrip-20200607 </div><div class=""><br class=""></div><div class="">Thanks in advances for your advices and support,</div><div class=""><br class=""></div><div class="">All the Best </div><div class="">Rainer</div><div class=""><br class=""></div></div></body></html>