garyfallidis / dipy Goto Github PK
View Code? Open in Web Editor NEWThis project forked from dipy/dipy
Diffusion MR Imaging in Python
Home Page: http://dipy.org
License: BSD 3-Clause "New" or "Revised" License
This project forked from dipy/dipy
Diffusion MR Imaging in Python
Home Page: http://dipy.org
License: BSD 3-Clause "New" or "Revised" License
Memory consumption is easily > 500Mbytes. Why? Datasets are much less than that. We need to think of that.
T = [downsample(t, 18) - np.array(data.shape[:3]) / 2. for t in T]
axis = np.array([1, 0, 0])
theta = - 90.
T = np.dot(T,rotation_matrix(axis, theta))
axis = np.array([0, 1, 0])
theta = 180.
T = np.dot(T, rotation_matrix(axis, theta))
qb=QuickBundles(T, 10., None)
#save_pickle(fpkl,qb)
#qb=load_pickle(fpkl)
#create the interaction system for tracks
tl = StreamlineLabeler('Bundle Picker', qb, qb.downsampled_tracks(), vol_shape=None, tracks_alpha=1)
--> 59 tl = StreamlineLabeler('Bundle Picker', qb, qb.downsampled_tracks(), vol_shape=None, tracks_alpha=1)
60
61 title = 'Streamline Interaction and Segmentation'
/home/bao/dipy/dipy/viz/fos/streamshow.pyc in init(self, name, qb, tracks, reps, colors, vol_shape, virtuals_line_width, tracks_line_width, virtuals_alpha, tracks_alpha, affine, verbose)
/home/bao/dipy/dipy/viz/fos/streamshow.pyc in compute_buffers(self, tracks, alpha)
/home/bao/dipy/dipy/viz/fos/streamshow.pyc in compute_colors(self, tracks, alpha)
AssertionError:
Greetings, all.
It looks like from some discussions here, the API is currently being revamped a bit. I'm running into some issues getting the imports right between the online examples and the ones provided in /doc/examples. My knowledge of DIPY is limited, but trying to rectify the issues myself for the most past.
What version of Mayavi is supported? Using 5.x, I get the exception that Mayavi is not installed. Using 4.2.0, I get the following error in nii_2_tracks.py:
Traceback (most recent call last):
File "doc/examples/nii_2_tracks.py", line 174, in
from dipy.viz import fvtk
File "/usr/local/lib/python2.7/dist-packages/dipy/viz/init.py", line 30, in
from .mayavi.spheres import show_odfs
ImportError: No module named mayavi.spheres
Am I using an incompatible version of Mayavi? Thank you.
Whoops - too many tabs open. Posted this in a fork. Please disregard.
Appears to be a known issue already open in main branch: dipy#125
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.