The package deals with brain bundles images
Project description
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
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
tractography-0.1.11.tar.gz
(3.7 kB
view hashes)
Built Distribution
Close
Hashes for tractography-0.1.11-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7097a859d4f9eeb83fa917ebedd9ed983e541b3e83eacce2d120be8561778d7e |
|
MD5 | 08de14e1588e20a8420446e6768e3728 |
|
BLAKE2b-256 | b0d42b32ef97af6b44d35dafc7df5ee7c02654cc869874c0143b52e2a261f291 |