Hendrik-code / spineps

This is a segmentation pipeline to automatically, and robustly, segment the whole spine in T2w sagittal images.
Apache License 2.0
8 stars 1 forks source link

Add script to generate disc labels #18

Closed NathanMolinier closed 1 week ago

NathanMolinier commented 1 month ago

Description

This PR brings a new script to extract discs labels from SPINEPS' vertebrae and discs segmentations. This labeling is following this convention where each label corresponds to the posterior tip of a given disc.

To simplify the use of this scrip and generate automatically the labels, would it be possible to add a flag to the main function ?

NathanMolinier commented 2 weeks ago

Note: I disabled ruff linting for the script image because ultimately, we would like to use the TPTbox instead to load the images.

This solution is therefore temporary to enable a rapid use of the script spineps/utils/generate_disc_labels.py