GithubHelp home page GithubHelp logo

dfsp-spirit / brainview-rs Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 0.0 7.42 MB

A simple real-time brain visualization tool for Rust, based on the three-d crate.

Rust 100.00%
neuroimaging brain-visualization surface rust

brainview-rs's Introduction

brainview

A high-level library and a simple viewer (binary) for surface-based structural neuroimaging data, written in Rust.

The brainview crate is based on neuroformats and three-d by Asger Nyman Christiansen. It can visualize brain surface meshes and related per-vertex data computed from magnetic resonance images (MRI) in FreeSurfer, CAT12 and other neuroimaging software packages which can output or convert to a supported file format.

Why brainview?

The goal of the brainview crate is to provide a very high-level wrapper around three-d that allows neuroscientists using Rust for scientific data analyses to look at their data and statisical results directly in Rust -- without having to export their data first and then load them again in a separate viewer application, which is time-consuming and error-prone when looking at many results.

Ideally, you should be able to load and visualize your neuroimaging data with two function calls.

Usage

This is WIP, come back another day. Once it's ready, the project will be split into a lib crate for libbrainview and a binary crate for the brainviewer application.

You can have a look at src/main.rs to see the client code used to create the prototype below.

Running the current prototype

If you insist and have a recent Rust toolchain installed, you can build the current prototype from source and run it like this:

git clone https://github.com/dfsp-spirit/neuroformats-rs
git clone https://github.com/dfsp-spirit/brainview-rs
cd brainview-rs/
cargo build --release

cargo run

Note that you need the neuroformats-rs repo in the same directory as it is currently loaded from there. (Yes, this is WIP.)

This will open a 3D window and show a rotating brain mesh, with vertex colors representing cortical thickness:

Vis

brainview-rs's People

Contributors

dfsp-spirit avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.