Load MRHead sample data set
slicer/sampledata?name=MRHeadDownload a dataset in nrrd format.
slicer/volumeSet displayed GUI elements and and viewers layout in the application main window.
slicer/gui?contents=viewers&viewersLayout=FourUpDisplays screenshot of the application main main window.
slicer/screenshotDisplays the current contents of a Slicer slice view window.
slicer/sliceDisplays the current contents of a 3D view window.
slicer/threeDAllow remote browsing and viewing of images stored in the Slicer DICOM database using OHIF.
Get list of all studies.
dicom/studiesGet series for a selected study. Replace "1.2.840..." with the actual Study Instance UID. This can be obtained from the study list response: it is stored under the "0020000D" key.
dicom/studies/1.2.840.113619.2.379.176156465722799.2705.1648495543276.8/seriesDisplays an image dynamically generated by the SlicerWeb server as a rendering of the current system time down to 100ths of a second. A new image is generate each time the page is refreshed.
slicer/timeimageUses the Time Image url as the source for a texture map on a WebGL cube (only works on browsers where WebGL is supported). A random color is passed from the client to the server each frame and is used to render the border. This test is useful to see the response rate for round-trip accesses of the server.
Spinning cube with dynamic texture of rendered scene fetched from slicer
Example of using Slicer data with Three JS.
This example uses the /slicer/threeDGraphics endpoint to get a glTF representation of the threeD view. If you have a segmentations or models in Slicer it will load your current threeD view, otherwise it will download a scene with sample models.
The data is loaded in threejs demo scene letting you play with a glowing neon light like rendering of your scene. This experiment shows an option for highlighting selected objects in a complex 3D scene. Random models will be highlighted and you can toggle them by clicking. The neon light effect is one of a wide array of different rendering options available in threejs.
The javascript source code for this demo shows how to access the threeDGraphics endpoint and how to populate the mrml scene using the exec endpoint to send python code from javascript.
Depending on scene complexity this may take a few moments to load.
Example of using Slicer data with Google's modelviewer web component for web and XR.
This example uses the /slicer/threeDGraphics endpoint to get a glTF representation of the threeD view. If you have a segmentations or models in Slicer it will load your current threeD view, otherwise it will download a scene with sample models.
The data is loaded in modelviewer demo scene.
The javascript source code for this demo shows how to access the threeDGraphics endpoint and how to populate the mrml scene using the exec endpoint to send python code from javascript.
Depending on scene complexity this may take a few moments to load.
Load a volume in Slicer to see it in VolView.
Be sure the slicer api and cors are enabled.
volview from kitware can load data from slicer directly using a url parameter.
https://volview.netlify.app/?names=%5bmrhead.nrrd%5d&urls=%5bhttp://localhost:2016/slicer/volume%5d