New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trying QuickBundles (Python3 and vtk--> using: conda install -c clinicalgraphics vtk) #1333

Closed
Drigomaniac opened this Issue Sep 11, 2017 · 2 comments

Comments

Projects
None yet
2 participants
@Drigomaniac

Drigomaniac commented Sep 11, 2017

Hi All,
After reading the docs and a couple of issues here (in github), I realized there are compatibility issues when installing vtk and anaconda for python 3.

The quick fix I found was to install vtk 7.1.0 like this --> https://anaconda.org/clinicalgraphics/vtk --> `conda install -c clinicalgraphics vtk
*Also mentioned in this post by Eleftherios: #1248

But when I follow the vtk segment (in http://nipy.org/dipy/examples_built/segment_quickbundles.html#example-segment-quickbundles):
ren = fvtk.ren() ren.SetBackground(1, 1, 1) fvtk.add(ren, fvtk.streamtube(sstreams2, fvtk.colors.white)) fvtk.record(ren, n_frames=1, out_path='fornix_initial.png', size=(600, 600))

I can see a window created but it disappears as soon as I created it yet the 'fornix_initial.png' get created. Any solution?

*I also tested VTK (https://www.vtk.org/Wiki/VTK/Examples/Python/Cylinder ) and it seems to work correctly. Not sure what to do now, should I try a different vtk installation?

I am using OSX Sierra (10.12.6) and Python 3.6.1

@skoudoro

This comment has been minimized.

Member

skoudoro commented Sep 11, 2017

Hi @Drigomaniac,

fvtk.record just save a image. If you want to keep the window and play with it, use fvtk.show(ren, reset_camera=False)

For selecting between interactive or not, you can look at the example http://nipy.org/dipy/examples_built/tracking_quick_start.html#example-tracking-quick-start

We will correct that or feel free to correct this example via a new PR.

Thanks !

@Drigomaniac

This comment has been minimized.

Drigomaniac commented Sep 11, 2017

Yeap, that did it. It seems that the vtk problem and the rendering of the image worked well.
Thanks for your rapid response,
Rodrigo

@skoudoro skoudoro closed this Oct 9, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment