A CLI tool for body composition analysis from DICOM CT scans
Project description
mosamatic-cli
Command-line tool for running processing tasks on medical images
To-do
-
NumPy to NIFTI conversion
-
Create PNG images from DICOM files
-
Slice selection using either Total Segmentator or MOOSE
What you can do is first create spinal segmentations of a CT scan. Then you can use that data to pick a segmentation, e.g., the L3 vertebra and select the middle slice. In terms of commands/tasks, this would mean a command/task:
- SegmentAnatomyTS: with option to output a specific segmentation object
- SegmentAnatomyMOOSE: with option to output a specific segmentation object
- SelectSlice: Given a CT scan and a segmentation object, select the middle or other slice
-
CT/MRI registration using ANTsPy
-
Total Segmentator liver segmentation CT + MRI (Dixon H2O)
-
IMAT analysis
Discuss with Leroy how to detect fat inside muscle (either as SAT or black pixels). If pixels inside muscle are black, what does that mean? Can I overlay the mask on top of the image and check the pixel gray values and then determine (using the Alberta threshold range) whether these pixels are fat or not?
-
Calculate muscle PDFF maps from Dixon MRI after registering with CT
Commands
- numpy2nifti
- createpngsfromdicomfiles
- selectvertebralslice --engine=ts,moose --vertebra=l3,t4 --position=all,top,middle,bottom
- registerl3 --modalities=ct/dixon,ct/t1,ct/t2
- segmentanatomy --engine=ts,moose --masks=all,spine,l3,t4,liver,vessels
- segmentmusclefatl3[tensorflow] --imat=true,false
- calculatepdffmap2d --inphase=/path/to/image --outphase=/path/to/image --water=/path/to/image --mask=/path/to/mask (muscle and fat)
- calculatepdffmap3d --inphase=/path/to/series --outphase=/path/to/series --water=/path/to/series --mask=/path/to/mask (liver)
Next action
- Implement slice selection with Total Segmentator
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 mosamatic_cli-1.5.10.tar.gz.
File metadata
- Download URL: mosamatic_cli-1.5.10.tar.gz
- Upload date:
- Size: 27.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.3 CPython/3.11.0 Windows/10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4a8904455acd7ec210d5f624e08def2318a859e74305e43d0a3f02075f7e97da
|
|
| MD5 |
088f416ccc36fc169cec2e2c493df604
|
|
| BLAKE2b-256 |
c1045e631e1f7c5e1bd95d30af23c78b5885405294f526e6af92f8e5de1c2758
|
File details
Details for the file mosamatic_cli-1.5.10-py3-none-any.whl.
File metadata
- Download URL: mosamatic_cli-1.5.10-py3-none-any.whl
- Upload date:
- Size: 40.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.3 CPython/3.11.0 Windows/10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f7241679752115be56bf7a0f8064566fde82c725f7e1839b9e465e8fd15d0158
|
|
| MD5 |
38e597a97c8725beb1874ba207848dc0
|
|
| BLAKE2b-256 |
de69f703c2e6ac814374ae9f1152df2e36445032d429862616c26ec5614c939a
|