enthought / enthought/mayavi

Would it be interesting to have a slicer function in mlab to represent image plane widgets?

Open
#430 3 comments 2 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
1.4k
Forks
316
Avg merge
7h 44m
Merged PRs (30d)
5

Description

For different 3D imaging modalities (for example computed tomography, or MRI), data can be represented as a 3D numpy array (for example in computed tomography, the intensity of a 3D pixel encodes the local absorption). Such data are conveniently visualized using sliding 2D slices through the volume, that is, image plane widgets.

At the moment, to create such a visualization, one needs
- to create a scalar field data source using `mlab.pipeline.scalar_field`
- and then to call `mlab.pipeline.image_plane_widget` on the scalar field to display the image plane widget.

It would be more convenient to do these two operations with a single function from `mlab`, that could be called for example `mlab.slicer`.

Is there a good reason not to create such a function (other than API cluttering of course - I have the feeling that such a function would be widely used by people from the imaging community, but I'd be interested in hearing other opinions)?

I could try to contribute such a function if there is enough interest.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.