Skip to main content

The package deals with brain bundles images

Project description

license - GPL

Tractograpy

It is a module deals withe Brain Bundles

It includes functions to read/write and register bundles

Installation:

Easy to install by using pip (recommended)

pip install tractography

or conda

conda install -c weekmo tractography

Example:

from tractography.io import read_ply,write_trk,export_bundles
from tractography.registration import register
from dipy.viz import window

# Read bundles
data1 = read_ply('target.ply')
data2 = read_ply('subject.ply')

# Register bundle
aligned_bundle = register(target=data1, subject=data2)

# Write to trk file
write_trk("aligned_bundle.trk", aligned_bundle)

# Export images before and after registration
export_bundles([data1, data1],
             colors=[window.colors.orange, window.colors.blue],
             show=False,
             fname='before_registration.png')

export_bundles([data1, aligned_bundle],
             colors=[window.colors.orange, window.colors.blue],
             show=False,
             fname='after_registration.png')

Enjoy

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tractography-0.1.11.tar.gz (3.7 kB view hashes)

Uploaded Source

Built Distribution

tractography-0.1.11-py3-none-any.whl (4.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page