Fail opening 2D Sensor Cap

Error using builtin
QH6154 qhull precision error: initial facet 1 is coplanar with the interior point
ERRONEOUS FACET:

While executing: | qhull Qt
Options selected for Qhull 2010.1 2010/01/14:
run-id 729577297 Qtriangulate _pre-merge _zero-centrum _max-width 4.1e-08
Error-roundoff 1.1e-15 _one-merge 7.7e-15 _near-inside 3.9e-14
Visible-distance 2.2e-15 U-coplanar-distance 2.2e-15 Width-outside 4.4e-15
_wide-facet 1.3e-14

The input to qhull appears to be less than 3 dimensional, or a
computation has overflowed.

Qhull could not construct a clearly convex simplex from points:

The center point is coplanar with a facet, or a vertex is coplanar
with a neighboring facet. The maximum round off error for
computing distances is 1.1e-15. The center point, facets and distances
to the center point are as follows:

facet p1 p3 p0 distance= 0
facet p5 p3 p0 distance= -6.3e-09
facet p5 p1 p0 distance= -1.1e-16
facet p5 p1 p3 distance= -1.1e-16

These points either have a maximum or minimum x-coordinate, or
they maximize the determinant for k coordinates. Trial points
are first selected from points that maximize a coordinate.

The min and max coordinates for each dimension are:
0: -0.4562 -2.225e-308 difference= 0.4562
1: -0.0003489 -2.225e-308 difference= 0.0003489
2: 0.8899 0.8899 difference= 1.417e-08

If the input should be full dimensional, you have several options that
may determine an initial simplex:

  • use 'QJ' to joggle the input and make it full dimensional
  • use 'QbB' to scale the points to the unit cube
  • use 'QR0' to randomly rotate the input for different maximum points
  • use 'Qs' to search all points for the initial simplex
  • use 'En' to specify a maximum roundoff error less than 1.1e-15.
  • trace execution with 'T3' to see the determinant for each point.

If the input is lower dimensional:

  • use 'QJ' to joggle the input and make it full dimensional
  • use 'Qbk:0Bk:0' to delete coordinate k from the input. You should
    pick the coordinate with the least range. The hull will have the
    correct topology.
  • determine the flat containing the points, rotate the points
    into a coordinate plane, and delete the other coordinates.
  • add one or more points to make the input full dimensional.

Error in qhullmx

Error in convhulln (line 64)
[k,vv] = qhullmx(x', opt);

Error in channel_tesselate (line 48)
Faces = convhulln(coordC);

Error in tess_refine (line 97)
Faces = channel_tesselate(Vertices, isThresh);

Error in figure_topo>PlotFigure (line 520)
[Vertices, Faces] = tess_refine(Vertices, Faces, [], [], 1);

Error in figure_topo (line 27)
eval(macro_method);

Error in view_topography (line 379)
isOk = figure_topo('PlotFigure', iDS, iFig, 1);

Error in tree_callbacks>@(h,ev)view_topography(FileName,Modality,'2DSensorCap') (line 2706)
gui_component('MenuItem', jMenu, [], '2D Sensor cap', IconLoader.ICON_TOPOGRAPHY, [],
@(h,ev)view_topography(FileName, Modality, '2DSensorCap'));

This starts with the Windows 10 actualization

Where are the positions you used for the sensors coming from?
Can you please send us files so that we can try to reproduce this issue on our end?
(either the raw files to be imported into Brainstorm, or simpler: the subject exported from the Brainstorm database with the popup menu File > Export subject - upload a .zip file somewhere and post the download link here)

I have the same error. I can apply SSP and visualize the time series but cannot visualize it as 2D Sensor Cap. Any solutions?

Many thanks.

Please copy-paste the full error message from the Matlab command window.
If it is exactly the same as previously, please do what I suggested in my last message before yours on this thread.

@Francois
Hi Francois,

this issue still seems to exist. Would be awesome, if you could identify the problem.

The data comes from the Muse S EEG device (positions AF7, AF8, TP9, TP10)

image

Error when selecting checkbox Component #1


Index in position 2 exceeds array bounds.

Error in figure_topo>UpdateTopoPlot (line 225)

Error in figure_topo (line 27)

Error in bst_figures>ReloadFigures (line 1854)

Error in bst_figures (line 59)

Error in panel_record>ReloadRecordings (line 1154)

Error in panel_record (line 30)

Error in panel_ssp_selection>UpdateRaw (line 756)

Error in panel_ssp_selection>CreatePanel/ListCompClick_Callback (line 207)


Error when clicking the Topography icon:


Exiting: Maximum number of function evaluations has been exceeded
- increase MaxFunEvals option.
Current function value: 0.004851


** Error: Line 0: builtin
** QH6154 qhull precision error: initial facet 1 is coplanar with the interior point
** ERRONEOUS FACET:
** While executing: | qhull Qt
** Options selected for Qhull 2010.1 2010/01/14:
** run-id 639657455 Qtriangulate _pre-merge _zero-centrum _max-width 4.1e-08
** Error-roundoff 1.1e-15 _one-merge 7.7e-15 _near-inside 3.9e-14
** Visible-distance 2.2e-15 U-coplanar-distance 2.2e-15 Width-outside 4.4e-15
** _wide-facet 1.3e-14
** The input to qhull appears to be less than 3 dimensional, or a
** computation has overflowed.
** Qhull could not construct a clearly convex simplex from points:
** The center point is coplanar with a facet, or a vertex is coplanar
** with a neighboring facet. The maximum round off error for
** computing distances is 1.1e-15. The center point, facets and distances
** to the center point are as follows:
**
** facet p1 p3 p0 distance= 0
** facet p5 p3 p0 distance= -6.3e-09
** facet p5 p1 p0 distance= -1.1e-16
** facet p5 p1 p3 distance= -1.1e-16
** These points either have a maximum or minimum x-coordinate, or
** they maximize the determinant for k coordinates. Trial points
** are first selected from points that maximize a coordinate.
** The min and max coordinates for each dimension are:
** 0: -0.4562 -2.225e-308 difference= 0.4562
** 1: -0.0003489 -2.225e-308 difference= 0.0003489
** 2: 0.8899 0.8899 difference= 1.417e-08
** If the input should be full dimensional, you have several options that
** may determine an initial simplex:
** - use 'QJ' to joggle the input and make it full dimensional
** - use 'QbB' to scale the points to the unit cube
** - use 'QR0' to randomly rotate the input for different maximum points
** - use 'Qs' to search all points for the initial simplex
** - use 'En' to specify a maximum roundoff error less than 1.1e-15.
** - trace execution with 'T3' to see the determinant for each point.
** If the input is lower dimensional:
** - use 'QJ' to joggle the input and make it full dimensional
** - use 'Qbk:0Bk:0' to delete coordinate k from the input. You should
** pick the coordinate with the least range. The hull will have the
** correct topology.
** - determine the flat containing the points, rotate the points
** into a coordinate plane, and delete the other coordinates.
** - add one or more points to make the input full dimensional.
**
**
** Call stack:
** >qhullmx.m at 0
** >convhulln.m at 64
** >channel_tesselate.m at 48
** >tess_refine.m at 97
** >figure_topo.m>PlotFigure at 528
** >figure_topo.m at 27
** >view_topography.m at 385
** >panel_ssp_selection.m>PlotComponents at 499
** >panel_ssp_selection.m>@(h,ev)PlotComponents(,1,0) at 61
** >bst_call.m at 28
** >panel_ssp_selection.m>@(h,ev)bst_call(@(h,ev)PlotComponents(,1,0)) at 61
**



Brainstorm version 12-Sep-2022

data-file: https://drive.google.com/file/d/1NKNhqeULwk5_OG36WJ9NWlWf6QWre3JV/view?usp=sharing

Thank you so much!
best regards, Martin

With only 4 sensors, you can't expect to display any form of 2D topography.
Use the menus "2D layout" or "Display on scalp" instead.

I understand - thanks for your reply!