PySurfer: cortical surface visualization using Python.
Project description
PySurfer is a Python library and application for visualizing brain imaging data. It is specifically useful for plotting data on a three-dimensional mesh representing the cortical surface of the brain. If you have functional MRI, magnetoencephalography (MEG), or anatomical measurements from cortex, PySurfer can help you turn them into beautiful and reproducible graphics.
PySurfer uses an explicit model of cortical geometry to generate highly-accurate images of neuroimaging data. This is preferable to other approaches that use simple 3D renderings of a brain volume because the underlying topology of the cortex is a two-dimensional sheet. PySurfer can read cortical models that have been processed using Freesurfer to “inflate” the cortical folds and reveal activations that are buried within deep sulci. This presentation is much closer to how cortical areas are laid out, and it can help you understand and communicate your efforts to map functional or morphometric organization.
PySurfer and its dependencies are written in Python and released with a liberal open source license. PySurfer can be combined with other tools from the nipy ecosystem to manipulate and plot data in the same script or interactive session. The visualization is primarily controlled with a high-level API that allows you to draw a complex scene with just a few lines of code. This means that PySurfer is naturally scriptable. Once you have developed a basic visualization, it’s easy to add a for-loop and generate the same image for every subject in your experiment. It also aids the reproducibility of graphics you create for conferences or papers, as each figure can be associated with a short script that shows exactly how the visualization was produced.
If you want to find out how to get started using PySurfer, check out our installation guide. To see a set of examples demonstrating some of PySurfer’s capabilities, you can browse the example gallery.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file pysurfer-0.5.tar.gz
.
File metadata
- Download URL: pysurfer-0.5.tar.gz
- Upload date:
- Size: 40.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6ea2ff531df339e4102b8f9d5298511b8801a3012ac79a9b93df1a1f2365915e |
|
MD5 | caee1daccf824bcd4ce2d566254236ca |
|
BLAKE2b-256 | eab39fac4ff7d90192774a6408aa025004f0cdc824e45418ecc3145be5180268 |