Install Poetry: https://python-poetry.org/docs/#installation
Install dependencies:
poetry install
Initialize virtual environment
poetry shell
Run App
poetry run sanic server.app
For PyCharm users, check out this guide on how to initialize with Poetry https://www.jetbrains.com/help/pycharm/poetry.html#9f0a3a09
Example:
POST http://localhost:8000/dicom3d
{ "path": "./data", "preset": "bone", "position": 500, "roll": 0, "elevation": 0, "azimuth": 0 }
Description:
path
: path to dicom directorypreset
: bone and skinposition
: the position of cameraroll
: rotate on z-axiselevation
: rotate on x-axisazimuth
: rotate on y-axis
Note:
- roll, elevation and azimuth are ordinal