Camup Error

Hi Francois,

The more recent versions of Brainstorm, including the compiled version of Jan 14th, give an error on line 46 of camup. The calling routine is trying to pass single (not double) parameters for the camera orientation value on line 46.

I fixed my local version by simply putting double(val), but of course that doesn’t fix our compiled versions.

This happens for us when looking at the Freesurfer cortex 15000 WARPED, i.e. we have warped the default anatomy to fit isotrak points. My guess is that the warping process has made some calling parameter single, rather than the required double.

Full error message below:


** Error: Line 46: set
** 3 element numeric vector required
**
** Call stack:
** >camup.m at 46
** >figure_3d.m>SetStandardView at 1016
** >bst_call.m at 28
** >macro_methodcall.m at 39
** >figure_3d.m at 40
** >view_surface.m at 146
** >tree_callbacks.m at 191
** >bst_call.m at 28
** >panel_protocols.m>CreatePanel/protocolTreeClicked_Callback at 107
**


Hi John,

I could not reproduce the error, and I don’t understand why the values of the rotation matrices R would be stored in single precision. So, as it fixes your problem, I just added a double() in the call to camup in figure_3d (line 1016).

The update of the compiled version will be available online in 1hr.
Francois