-2

我正在编写一个硬件神经反馈应用程序。哪个 wotks 像这样: 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 编号的标识。¨

谢谢,

迈克尔

4

1 回答 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
于 2017-04-25T10:56:46.877 回答