Skip to content

Is it possible to customise filename for submitted label? #1590

Answered by MalikTeng
MalikTeng asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @diazandr3s,

To enable bundle name tracking in the MONAI Label plugin with 3D Slicer, I followed these steps:

  1. Clone and Install MONAI Label: Clone the MONAI Label repository to your local machine and install it in edit mode. For example, clone to ~/MONAILabel and install using the command pip install -e ..

  2. Modify MONAILabel.py: In the MONAILabel.py script, located at ~/Slicer-5.4.0-linux-amd64/slicer.org/Extensions-31938/MONAILabel/lib/Slicer-5.4/qt-scripted-modules, alter the self.logic.save_label call. Add the bundle name used for segmentation by including self.ui.segmentationModelSelector.currentText to the params argument, forming a dictionary like {"label_info": label_info, "m…

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
2 replies
@MalikTeng
Comment options

@diazandr3s
Comment options

Comment options

You must be logged in to vote
1 reply
@diazandr3s
Comment options

Answer selected by MalikTeng
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants