sccn / get_chanlocs

Electrode localization using 3D head image. EEGLAB plug-in using Fieldtrip toolbox
5 stars 2 forks source link

NaN in textures #2

Closed cll008 closed 3 years ago

cll008 commented 5 years ago

Strange bug that causes ft_read_headshape to fail. NaN(s) is/are in both original file and after mesh refinement.

Subscript indices must either be real positive integers or logicals.

Error in ft_read_headshape (line 95) color(i,1:3) = picture(round((1-texture(i,2))*length(picture)),1+floor(texture(i,1)*length(picture)),1:3); Occipital Scanner app reproduced across MATLAB vesrions

cll008 commented 3 years ago

NaN most likely represent holes in the model. Fixed with commit b86dd49