Comments (1)
Hello @sandraMarcadent
I am guessing you are working on a windows system. There was a bug with the Show command on windows which has since been fixed.
You have three options:
-
Don't use Show for now and wait for the upcoming minor release (~next month).
-
If you are comfortable with compiling the toolkit yourself (you have Cmake, git, a compiler):
a. For vanilla Python distribution you can follow the instructions found here.
b. If you are working with Conda you can use the conda recipe found here. You will have to edit the meta.yaml file based on the instructions so that you are compiling the latest commit. -
You are in a hurray but don't want to wait for the minor release. The following is a stopgap solution that allows you to code as if Show works:
# Override the Show method to WriteImage at the top of the notebook
sitk.Show = sitk.WriteImage
#Code using "Show" as usual
img = sitk.Image([32,32], sitk.sitkUInt8)
sitk.Show(img, 'my_image.mha')
With the overriding, the code above will write the image to disk and then you can open it with Fiji or any other viewer you want, no hanging. Once the show command is fixed and you remove the single line at the top of the notebook you won't need to change your code. The Fiji viewer will open the image and the title will be "my_image.mha".
Please close the issue if these resolved your problem.
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.