Coder Social home page Coder Social logo

Comments (5)

zivy avatar zivy commented on September 13, 2024

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.

subhajitchatu avatar subhajitchatu commented on September 13, 2024

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.

zivy avatar zivy commented on September 13, 2024

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.

subhajitchatu avatar subhajitchatu commented on September 13, 2024

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.

zivy avatar zivy commented on September 13, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.