Git Product home page Git Product logo

dipy's People

Contributors

cnguyen avatar emanuele avatar garyfallidis avatar iannimmosmith avatar matthew-brett avatar mrbago avatar stefanv avatar yarikoptic avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

dipy's Issues

StreamlineLabeler error when tractography representation is different from QB downsampling

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:

No module named mayavi.spheres

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

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.