Skip to content

Instantly share code, notes, and snippets.

@britta-wstnr
Last active March 17, 2021 17:09
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save britta-wstnr/d3e2294da63f6f9fc5a3dd958625c794 to your computer and use it in GitHub Desktop.
Save britta-wstnr/d3e2294da63f6f9fc5a3dd958625c794 to your computer and use it in GitHub Desktop.
Hilbert beamformer pipeline
Display the source blob
Display the rendered blob
Raw
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@zuxfoucault
Copy link

Thanks for the great work!
Why the stc.data need to take the absolute value in # 7. compute Hilbert envelope?

@britta-wstnr
Copy link
Author

Hi @zuxfoucault! Thanks for your question - I am so sorry, I did not see it until now!
So, the reason to take the absolute value is to get the amplitude (= Hilbert envelope) of the signal, which we want to plot.
BTW, this gist is outdated - I just updated it here: https://gist.github.com/britta-wstnr/12ec1723eaf8aab875fc400aafd9ce85
And hopefully soon we will have it available as an example in MNE-Python as well!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment