![Banner!](/slicerutil/assets/Banner.png)
# slicerutil
A package containing usefull functions for working with common nodes in 3D Slicer as NumPyArrays.
## Table of Contents
- [Installation](#Installation)
- [License](#License)
- [Requirements](#Requirements)
- [Setup](#Setup)
- [Tutorial](#Description)
- [Example patients](#Examples)
- [Acknowledgements](#Acknowledgements)
## Installation
**!!!! Please install this package in a Slicer python environment through 3D Slicer's python terminal !!!!**
### Install dependencies:
* Python >= 3
* [NumPy](https://numpy.org/doc/stable/index.html)
* [Matplotlib](https://matplotlib.org)
### Install slicerutil
``` python
import pip
pip.main(['install', 'slicerutil'])
```
### Import the package
After installing the package use the following to import:
``` python
import slicerutil as su
```
or if you want to use the package in function mode (without oop):
``` python
import slicerutil.basic_functions as bf
```
## License
The following repository is under MIT license. For more information, visit [LICENSE](/LICENSE).
## Setup
### Downloading the 3D slicer application & supporting software
Please follow the steps provided bellow:
1. Visit [slicer](https://download.slicer.org) to download the application.
2. Visit [anaconda](https://www.anaconda.com/download) to download python3/ jupyter notebook.
3. Visit [Visual Studio Code](https://code.visualstudio.com/Download) 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!](/slicerutil/assets/SlicerJupyterScreenCapture.png)
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:
- [Slicer](https://github.com/Slicer/Slicer)
- [Numpy](https://github.com/numpy/numpy)
- [Matplotlib](https://github.com/matplotlib/matplotlib)
Raw data
{
"_id": null,
"home_page": "https://github.com/Marcus-Milantoni/Slicer_Utility",
"name": "slicerutil",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.6",
"maintainer_email": null,
"keywords": "3D slicer, Utility, Image Processing, NumPy",
"author": "Marcus Milantoni",
"author_email": "mmilanto@uwo.ca",
"download_url": "https://files.pythonhosted.org/packages/7a/fa/dcba215de7cc994851bcb309643c0ab5284c2660d6c0508a2d93e630991f/slicerutil-0.2.2.tar.gz",
"platform": null,
"description": "![Banner!](/slicerutil/assets/Banner.png)\n\n# slicerutil\nA package containing usefull functions for working with common nodes in 3D Slicer as NumPyArrays. \n\n## Table of Contents\n- [Installation](#Installation)\n- [License](#License)\n- [Requirements](#Requirements)\n- [Setup](#Setup)\n- [Tutorial](#Description)\n- [Example patients](#Examples)\n- [Acknowledgements](#Acknowledgements)\n\n## Installation\n**!!!! Please install this package in a Slicer python environment through 3D Slicer's python terminal !!!!**\n\n### Install dependencies:\n* Python >= 3\n* [NumPy](https://numpy.org/doc/stable/index.html)\n* [Matplotlib](https://matplotlib.org)\n\n### Install slicerutil\n``` python\nimport pip\n\npip.main(['install', 'slicerutil'])\n```\n\n### Import the package\nAfter installing the package use the following to import:\n``` python\nimport slicerutil as su\n```\n\nor if you want to use the package in function mode (without oop):\n``` python\nimport slicerutil.basic_functions as bf\n```\n\n## License\nThe following repository is under MIT license. For more information, visit [LICENSE](/LICENSE).\n\n## Setup\n\n### Downloading the 3D slicer application & supporting software\n\nPlease follow the steps provided bellow:\n1. Visit [slicer](https://download.slicer.org) to download the application.\n2. Visit [anaconda](https://www.anaconda.com/download) to download python3/ jupyter notebook.\n3. Visit [Visual Studio Code](https://code.visualstudio.com/Download) to download the source-code editor (optional).\n4. From the Extensions Manager widget, download the SlicerJupyter, MeshToLabelMap, PETDICOMExtension (if working with PET DICOMS), SlicerRT (if working with radiotherapy data).\n - The Slicer application needs to restart to install the extensions.\n\n### Set up the SlicerJupyter\n1. Using the search widget in Slicer, open the SlicerJupyter extension by searching for JupyterKernel.\n\n ![The Slicer application on the SlicerJupyter Modules!](/slicerutil/assets/SlicerJupyterScreenCapture.png)\n2. Click the \"Start Jupyter Server\" button. A JupyterLab notebook will open when the setup is complete.\n3. Click the \"Jupyter server in external Python environment\" and copy the command to clipboard.\n4. Open the anaconda prompt (Terminal if on mac) and paste the command.\n5. (Optional) open an external environment (Visual Studio Code) and select the Slicer kernel!\n\n\n## Acknowledgements\nThe slicer scripting tutorial would not be possible without the following open source software:\n- [Slicer](https://github.com/Slicer/Slicer)\n- [Numpy](https://github.com/numpy/numpy)\n- [Matplotlib](https://github.com/matplotlib/matplotlib)\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "A package created for ease of use working with NumPy in 3D Slicer",
"version": "0.2.2",
"project_urls": {
"Homepage": "https://github.com/Marcus-Milantoni/Slicer_Utility"
},
"split_keywords": [
"3d slicer",
" utility",
" image processing",
" numpy"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "08998ed3eefb5532140dc640f221fe40d3ee2cd8f085bcdce7e18a057c17a996",
"md5": "5675629ecf1fb1a59112927bcf688cd6",
"sha256": "e303d13cb33385d0394e02ed6edf085e26ea003c0eb94c34b9596206f7e7deb6"
},
"downloads": -1,
"filename": "slicerutil-0.2.2-py3-none-any.whl",
"has_sig": false,
"md5_digest": "5675629ecf1fb1a59112927bcf688cd6",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.6",
"size": 200423,
"upload_time": "2024-10-20T20:14:50",
"upload_time_iso_8601": "2024-10-20T20:14:50.815763Z",
"url": "https://files.pythonhosted.org/packages/08/99/8ed3eefb5532140dc640f221fe40d3ee2cd8f085bcdce7e18a057c17a996/slicerutil-0.2.2-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "7afadcba215de7cc994851bcb309643c0ab5284c2660d6c0508a2d93e630991f",
"md5": "2992ccb664e3fad8a603438d1243bc43",
"sha256": "b52f8192e53524979e1d055d443fa9ec3dc37c3d7f91c088eaed845fca0b4d60"
},
"downloads": -1,
"filename": "slicerutil-0.2.2.tar.gz",
"has_sig": false,
"md5_digest": "2992ccb664e3fad8a603438d1243bc43",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.6",
"size": 199874,
"upload_time": "2024-10-20T20:14:52",
"upload_time_iso_8601": "2024-10-20T20:14:52.698627Z",
"url": "https://files.pythonhosted.org/packages/7a/fa/dcba215de7cc994851bcb309643c0ab5284c2660d6c0508a2d93e630991f/slicerutil-0.2.2.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-10-20 20:14:52",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "Marcus-Milantoni",
"github_project": "Slicer_Utility",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "slicerutil"
}