Giter Site home page Giter Site logo

trislett / tmi_viewer Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 0.0 98 KB

Neuroimaging Viewer for TMI files to be used with TFCE_mediation (https://github.com/trislett/TFCE_mediation)

License: GNU General Public License v3.0

Python 100.00%
tmi-viewer tfce-mediation python neuroimaging

tmi_viewer's Introduction

TMI_Viewer: Vertex/Voxel Rendering for TMI files and other neuroimaging formats

Splash type schematic

The tmi_viewer package contains two programs:

A) tmi_viewer

tmi_viewer example

Displays multimodal neuroimaging data (surfaces and volumes) in the same space from a TMI file (although TMI files are not required).

Features:

  • Multiple surfaces with vertex painting can be easily viewed with voxel images.
  • Voxel images can be viewed as: (1) surfaces using a marching cube algorithm, (2) voxel contour, (3) and voxel scalar field.
  • The default settings are optimized for viewing neuroimages.
  • tmi_viewer is highly optimized for speed.
  • Many autothresholding algorithms available including: Otsu et al., Li et al., Yen et al., and Z threholding.
  • Extremely fast algorithm for applying Lapacian or Taubin (low-pass) smooth. e.g., ~1000 passes takes around one minute.
  • Easy export of background transparent images for creating figures.
  • Many new look-up tables (LUTs) that are specifically designed for visualising neuroimaging statistics (as well as the LUTs included with matplotlib).

tmi_viewer LUTs

B) tm_slices

Outputs a web-page with whole brain slices from voxel-based neuroimages in native coordinates with optional overlaps.

Features:

  • Great for making figures: Creates a web-page displaying overlapping any number of voxel-based images, and they can be at any resolution.
  • Many autothresholding algorithms available including: Otsu et al., Li et al., Yen et al., and Z threholding.
  • Import images, binarize them at any threshold, and paint the image outline.
  • Specify number of slices, size of slices, transparency, etc.

Installation

With sudo permissions

Requirements:

For Ubuntu: sudo apt-get install vtk6 python-vtk python-qt4

For OSX: brew install vtk

Installation:

Using PIP (Recommended): sudo -H pip install -U tmi_viewer

From source: sudo python setup.py install

  • Additional requirement: mayavi

Using a Python Virtual Environment

Note: this example uses python 3.5

Create and source virtual environment

virtualenv -p python3.5 python3env
source python3env/bin/activate

Install TFCE_mediation

pip install -U tfce-mediation

Download and install SIP and PyQT4

a. Download and unzip SIP and PyQT4

b. Install SIP (not version may be different)

cd sip-4.19.7
python configure.py
make
make install

c. Install PyQT4

cd ../PyQt-x11-gpl-4.12.1
python configure-ng.py

Accepted the user agreement then run:

make
make install

pip install vtk

pip install vtk

pip install tmi_viewer

pip install -U tmi_viewer

These programs relies on Mayavi, and setting can changed using the Mayavi interactive session. If you use them please cite:

Ramachandran, P. and Varoquaux, G., Mayavi. 3D Visualization of Scientific Data. IEEE Computing in Science & Engineering, 13 (2), pp. 40-51 (2011).


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.