Medical Shape
A torchio extension for shapes and their processing.
Usage
medical_shape provides 3 major classes for usage:
Shape
Shape is a subclass from torchio.data.Image. It stores arbitrary pointclouds together with their descriptions and an associated affine matrix.
The pointclouds are stored as 2D torch.Tensor in the form NxD where N is the number of points and D is the dimensionality of points (usually D=3).
ShapeSupportSubject
The ShapeSupportSubject is an extension of torchio.data.Subject to allow the inclusion of Shape-type objects into the subject. It should be used instead of torchio.data.Subject,
whenever a shape is included and is also safe to use without a shape (will behave exactly like torchio.data.Subject in that case) as shapes often require special handling.
TransformShapeValidationMixin
This class is a transformation mixin to allow checks whether shape-support is required and to raise warnings if the incorrect Subject-type was used.
All transformations supporting shapes should inherit from it (and as it is derived from torchio.transforms.Transform, it is also safe to use this class as a standalone baseclass).
Installation
This project can be installed either from PyPI or by cloning the repository from GitHub.
For an install of published packages, use the command
pip install medical-shape
To install from the (cloned) repository, use the command
pip install PATH/TO/medical-shape
You can also add -e to the command to make an editable install in case you want to modify the code.
You can also install the package directly from GitHub by running
pip install git+https://github.com/justusschock/medical-shape.git
Docker Images
We provide a docker image for easy usage of the package and as a base image for other projects.
The file for this image can be found at dockers/Dockerfile. We provide both, a CPU-only and a CUDA-enabled image based on the NVIDIA NGC PyTorch image. These images can be found on DockerHub.
Metadata
Release files for medical-shape 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| medical_shape-0.1.2.tar.gz | 14.9 kB | Without provenance | Details for medical_shape-0.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| medical_shape-0.1.2-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details for medical_shape-0.1.2-py2.py3-none-any.whl |
Total release size: 34.0 kB
Release files / medical_shape-0.1.2.tar.gz
| Download URL | medical_shape-0.1.2.tar.gz |
|---|---|
| Size | 14.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d1b101a1bcbebe94911c74203655816677d5a7af9d866d4c32d1d355eda37c11
|
|
BLAKE2b-256 checksum How to use checksums |
0f577809d1a23baf9bc41c742edb83d51f0977316742f72d226b5968d9474395
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.13
|
Release files / medical_shape-0.1.2-py2.py3-none-any.whl
| Download URL | medical_shape-0.1.2-py2.py3-none-any.whl |
|---|---|
| Size | 19.1 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
b42fe2d2b7f8646911b7e11d5e689a1b27a18ef643db83a347e598cb2bba56fa
|
|
BLAKE2b-256 checksum How to use checksums |
92abd19fc39df59cd2fc84ed05aa2ba20c5e5a5010908a691bbd5e3bad24712e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.13
|
Security for medical-shape 0.1.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.