Is there a way to interact programmatically with Medical Image Labeler?

3 views (last 30 days)
I know that there are some functions that consent to interact with Medical Image Labeler app of Medical Imaging Toolbox, but the operations allowed are very few. In particular I'm looking for a method to open nifti images, segment and save the labels by setting up a script or something else.
Is it feasible?
  4 Comments
Cris LaPierre
Cris LaPierre on 13 Apr 2024
What do you need the script to do? Load the images into the app?
Your session in the medical image labeler app will automatically save your labels to a Nifti file in the session folder.
Nicola Dall'Osto
Nicola Dall'Osto on 14 Apr 2024
Edited: Nicola Dall'Osto on 14 Apr 2024
Yes, I need to automatically upload images into the app. In particular, I am facing a problem in this step. I've described the issue in detail here.
I know that the labels are saved in a .mat file, not nifti. Anyway, it is not a problem as long as the labels are automatically saved in the session folder.
To upload the unlabeled images I use groundTruthMedical(dataSource,labelDefs,labelData), but the user has to set a new session. Ideally, I want that running that command, a new session starts without asking the users to choose the path of the new session folder. Maybe I am asking too much.
Finally, I really need that the labels are saved with the user's ID or the user's name in order to be able to know who has segmented each image, since more people will segment different images.

Sign in to comment.

Accepted Answer

Cris LaPierre
Cris LaPierre on 14 Apr 2024
I have responded in your other question.
The Label Definitions are saved to a mat file, along with paths to the Data Source and Labeled Data. Your labeled volume is saved as a Nifti file in the LabelData folder in your session folder.

More Answers (0)

Products


Release

R2024a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!