Skip to main content

A package created for ease of use working with NumPy in 3D Slicer

Project description

Banner!

slicerutil

A package containing usefull functions for working with common nodes in 3D Slicer as NumPyArrays.

Table of Contents

Installation

!!!! Please install this package in a Slicer python environment through 3D Slicer's python terminal !!!!

Install dependencies:

Install slicerutil

import pip

pip.main(['install', 'slicerutil'])

Import the package

After installing the package use the following to import:

import slicerutil as su

or if you want to use the package in function mode (without oop):

import slicerutil.basic_functions as bf

License

The following repository is under MIT license. For more information, visit LICENSE.

Setup

Downloading the 3D slicer application & supporting software

Please follow the steps provided bellow:

  1. Visit slicer to download the application.
  2. Visit anaconda to download python3/ jupyter notebook.
  3. Visit Visual Studio Code to download the source-code editor (optional).
  4. From the Extensions Manager widget, download the SlicerJupyter, MeshToLabelMap, PETDICOMExtension (if working with PET DICOMS), SlicerRT (if working with radiotherapy data).
    • The Slicer application needs to restart to install the extensions.

Set up the SlicerJupyter

  1. Using the search widget in Slicer, open the SlicerJupyter extension by searching for JupyterKernel.

    The Slicer application on the SlicerJupyter Modules!

  2. Click the "Start Jupyter Server" button. A JupyterLab notebook will open when the setup is complete.

  3. Click the "Jupyter server in external Python environment" and copy the command to clipboard.

  4. Open the anaconda prompt (Terminal if on mac) and paste the command.

  5. (Optional) open an external environment (Visual Studio Code) and select the Slicer kernel!

Acknowledgements

The slicer scripting tutorial would not be possible without the following open source software:

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

slicerutil-0.2.0.tar.gz (199.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

slicerutil-0.2.0-py3-none-any.whl (200.5 kB view details)

Uploaded Python 3

File details

Details for the file slicerutil-0.2.0.tar.gz.

File metadata

  • Download URL: slicerutil-0.2.0.tar.gz
  • Upload date:
  • Size: 199.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.5

File hashes

Hashes for slicerutil-0.2.0.tar.gz
Algorithm Hash digest
SHA256 9b7bea075149dd800d0a81d9177dc8bb6299861e9e27db2cdde39f439c94fff6
MD5 88bb5ba333b42391666d061b6d5560d6
BLAKE2b-256 654fee861e85d158e5b379a7ad3b1b4d6e2401012f80db2ab45931f8ae5a9d45

See more details on using hashes here.

File details

Details for the file slicerutil-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: slicerutil-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 200.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.5

File hashes

Hashes for slicerutil-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 82735a6b38589ccdbb1f1ac1bd9ef2b5e5ce8c1cb003d58c45d1b7c33962d6b4
MD5 d3f5a51ee119902435644d17b03c0e51
BLAKE2b-256 a21e664f0ab364a2530e8b99e1d32a8ef4f4d0e580bd48b4fdb8d86b14325ad0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page