Comments (5)
Please provide more details so that we can address the specific problem.
In general, myshow3d should be able to display all 3D images you load with SimpleITK. If you want something slightly more sophisticated please take a look at the MultiImageDisplay found in the gui.py module. This is used in the 30_Segmentation_Region_Growing notebook.
Be aware that we only provide basic viewing capabilities as our focus is on the segmentation and registration and not on visualization. If you want to develop feature rich visualization then I would suggest you look into VTK.
from simpleitk-notebooks.
Thanks a lot @zivy .
When I am using myshow3d(image1).
Image1 is a Sitk image.
Image1.GetDimension() = (512,512,60)
But it is displaying a window with middle slice. Strange!
Any other suggestion?
from simpleitk-notebooks.
The myshow3D should display the middle slice and a slider which allows you to scroll through the stack. The slider is from the ipywidgets package which is a notebook extension. If you are working with plain Python you should enable the extension, per our instructions:
jupyter nbextension enable --py --sys-prefix widgetsnbextension
If you are working with the Anaconda distribution then the extension is enabled by default. Other than this I can't think of a reason the slider is not displayed.
from simpleitk-notebooks.
Thanks @zivy
I have tried it many times before
my python version : 2.7.9
Ubuntu 15.04
Jupyter version 4.3.0
sudo jupyter nbextension enable --py --sys-prefix widgetsnbextension
Enabling notebook extension jupyter-js-widgets/extension...
- Validating: OK
when I tried to execute
myshow3d(original_image);
Message on console:
Widget Javascript not detected. It may not be installed or enabled properly.
and an image is being displayed with only middle slice, No slider was there.
Any suggestion to fix this issue.
Thanks
from simpleitk-notebooks.
Google got me to this page discussing the problem. Please try the solutions suggested there. As this is a Jupyter notebooks issue and not a SimpleITK one I am closing the discussion.
from simpleitk-notebooks.
Related Issues (20)
- Fixing BinaryDilate cells in 300_Segmentation_Overview notebook
- Keeping notebooks clean for version control HOT 1
- Finding a place for rendered notebooks HOT 5
- Browser Icon for SITK
- Writing a notebook contribution guide HOT 1
- Sphinx + ReadTheDocs structure
- Please check order of input images to sitk.LabelOverlapMeasuresImageFilter.Execute HOT 1
- Inconsistency in distance measures in segmentation evaluation notebook HOT 5
- Warning in `00_Setup.ipynb` HOT 3
- image registration problem HOT 9
- Replace old virtualenv with modern python3 venv in documentation
- characterize_data.py fails save if output directory does not exist HOT 3
- Add renv file and instructions
- install all Python dependencies in read-the-docs build environment
- Exception thrown in SimpleITK - ERROR: No ImageJ/Fiji application found.
- How to use masks for filters HOT 2
- Using demons_filter = sitk.DiffeomorphicDemonsRegistrationFilter() filter error HOT 2
- Image origin changes in a saved image HOT 4
- Correct Documentation for order of transforms from the Image Registration Method.
- Set up issues.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from simpleitk-notebooks.