An automated deep learning pipeline for segmentation of the scapula, humerus, and their respective subregions in CT scans.
Project description
armcortnet
Armcortnet provides automatic segmentation of the humerus and scapula from CT scans. The deep learning model is trained to also segment out the cortical and trabecular subregions from each bone as well.
The deep learning pipeple consists of using armcrop to crop to an oriented bounding box around each humerus or scapula in the image and then a neural network based traine from the nnUNet framework segments that cropped volume. The segmetnation is then transformed back to the original coordinate system, post-processed and finally saved as a .seg.nrrd file.
Installation
pip install armcortnet
Usage
from armcortnet import Net
# Initialize segmentation model
model = Net(bone_type="scapula") # or "humerus"
# Perform segmentation
model.predict(
vol_path="path/to/input/ct.nrrd",
output_seg_path="path/to/output/segmentation.seg.nrrd"
)
Output Labels
The segmentation output contains the following labels:
- 0: Background
- 1: Other adjacent bones ("i.e clavicle, radius, ulna, etc.")
- 2: Cortical region of bone of interest
- 3: Trabecular region of bone of interest
Models
Trained models are automatically downloaded from HuggingFace Hub (gregspangenberg/armcortnet) on first use.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file armcortnet-0.2.0.tar.gz.
File metadata
- Download URL: armcortnet-0.2.0.tar.gz
- Upload date:
- Size: 3.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.0.1 CPython/3.12.3 Linux/6.8.0-53-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c771ec6debccc99cb11c6868e88a3fbd49f320e14c7fa058ff357e122aebf040
|
|
| MD5 |
18e35b4052ac8556dbe60490a1befba1
|
|
| BLAKE2b-256 |
0b345692a88e404efdd67bbdb19c2411bbb8a30af46e88f2b3117036fc025d34
|
File details
Details for the file armcortnet-0.2.0-py3-none-any.whl.
File metadata
- Download URL: armcortnet-0.2.0-py3-none-any.whl
- Upload date:
- Size: 4.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.0.1 CPython/3.12.3 Linux/6.8.0-53-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
71c8cd97761c2886109eba395775f07e58579e33963cca1bcfac2f0d702b1dae
|
|
| MD5 |
ceaa99c5ce2fa4523010349a7936a232
|
|
| BLAKE2b-256 |
18288420182e15bfb058bb5c619ff2fa90adb35fd511f905cbc396d48c323df5
|