如何编写脑电图的地形函数[关闭]

问题描述 投票:0回答:1

我正在编写一个硬件神经反馈应用程序。哪个工作是这样的: https://www.youtube.com/watch?v=pjCghiq5FoQ

在这种情况下,它是一个演示,但实际上并没有工作。我有来自 EEG 的数据,我想通过 LED 将它们绘制在表面上。该技术类似于此输出: http://www.fieldtriptoolbox.org/_media/tutorial/natmeg_temp/natmeg_freq11.png?w=400&tok=6e5a3c

但是我需要自己写它,因为我需要点亮 LED 来显示 2D 图像。基本上我不知道从哪里开始。

我的目标是通过每个 LED 可视化每个 EEG 通道的频谱密度,正如您可以在 YouTube 上看到演示一样。

我知道我需要 x、y、z 方向的信号和电极位置,例如识别雕塑上的 LED 编号。¡

python matlab signals topography
1个回答
1
投票

您有多通道脑电图记录。我怀疑你掌握了这些频道的位置。您还可以了解 LED 在头部的(大致)位置。

对数据进行插值以找出 LED 位置处的功率。

ledInput = interp2(Xeeg,Yeeg,EEGpower,Xled,Yled),

找到功率值对应的RGB颜色:

ledInput = rand(32); % create fake data for testing
colorResolution = 256; % choose a color resolution
colors = jet(colorResolution); % creates a colorbar of 256 elements. (you can change "jet" with any other colorbar of matlab) 
ledInput = (ledInput-min(ledInput))/range(ledInput); % change range btwn 0 and 1
ledInput = round(ledInput*(colorResolution-1))+1; % turn the power values into index for the colormap
ledInput = colors(ledInput,:); % find the colors for your leds
© www.soinside.com 2019 - 2024. All rights reserved.