-
Notifications
You must be signed in to change notification settings - Fork 186
Tutorial on using ellipsoid actor to visualize tensor ellipsoids for DTI #818
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
Conversation
Hey @tvcastillod, |
Codecov Report
@@ Coverage Diff @@
## master #818 +/- ##
==========================================
- Coverage 84.33% 84.30% -0.04%
==========================================
Files 44 44
Lines 10356 10353 -3
Branches 1410 1406 -4
==========================================
- Hits 8734 8728 -6
- Misses 1252 1255 +3
Partials 370 370 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice Tutorial @tvcastillod.
- Please use
ShowManager
everywhere. - do not forget to add your tutorial in https://github.com/fury-gl/fury/blob/master/docs/examples/_valid_examples.toml
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Excellent Tutorial ! Thank you @tvcastillod, this is great and explain well the difference.
I am going ahead and merge this PR. Thank you
|
||
class Sphere: | ||
def __init__(self, vertices, faces): | ||
self.vertices = vertices | ||
self.faces = faces | ||
|
||
|
||
sphere100 = Sphere(vertices, faces) | ||
|
||
############################################################################### | ||
# Now we are ready to create the ``tensor_slicer`` actor with the values of a | ||
# brain slice. We also define the scale so that the tensors are not so large | ||
# and overlap each other. | ||
|
||
tensor_slice = actor.tensor_slicer(evals=slice_evals, evecs=slice_evecs, | ||
sphere=sphere100, scale=.3) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you create an issue with this part of the tutorial. We should remove the need of a sphere object.
This PR consists of a tutorial that is intended to show two ways of displaying diffusion tensor ellipsoids for DTI visualization. The first is using the basic
tensor_slicer
actor which allows us to slice many tensors as ellipsoids, and the second with the genericellipsoid
actor I'm currently working on (#791), which can be used to display different amounts of ellipsoids. The idea is to show the use that can be made of the ellipsoid actor in the visualization of diffusion tensor ellipsoids, compared to the tensor_slicer actor, contrasting visual quality and the amount of data that can be rendered.I still working on this, it is not ready for review yet.