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

Dipy visualization (fvtk) crash when saving series of images #645

Closed
mick-d opened this Issue May 12, 2015 · 1 comment

Comments

Projects
2 participants
@mick-d
Copy link

mick-d commented May 12, 2015

I wrote a script to save a series of slice visualization (ellipsoids) with dipy vtk module (fvtk). However after a few slices (around 6) python crashes with only error message "Segmentation fault (core dumped)".

The script goes:

tenmodel = dti.TensorModel(my_gradient_table)
tenfit = tenmodel.fit(my_masked_dwi_data)
RGB = color_fa(my_FA_image, tenfit.evecs)
sphere = get_sphere('symmetric724')
ren = fvtk.ren()
for iSlice in range(0,tenfit.evals.shape[2]):
    fvtk.add(ren, fvtk.tensor(tenfit.evals[:,:,iSlice:iSlice+1], tenfit.evecs[:,:,iSlice:iSlice+1], RGB_scaled[:,:,iSlice:iSlice+1], sphere))
    fvtk.record(ren, n_frames=1, out_path='slice_'+("%03d" % iSlice)+'.png', size=(1000, 1000)) 
    fvtk.clear(ren) 
@skoudoro

This comment has been minimized.

Copy link
Member

skoudoro commented Sep 20, 2018

This issue was moved to fury-gl/fury#2

@skoudoro skoudoro closed this Sep 20, 2018

@skoudoro skoudoro moved this from Issues to Done in Viz Module Oct 31, 2018

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