I’m using ITK-SNAP for segmenting some brains and I can successfully draw them, change the colors, and rename their label names. I would like to access to this information from python and I’ve been always using nibabel for that, however I cannot find where to get information about the name of the labels I saved and their corresponding label value.
Edit: I’ve tried to save a loaded image and the information about the labels disappears. Maybe doing nib.load it does not load the name of the labels. Is there a way to write the name of those labels in python so they will be stored? My ultimate goal is to create a nii file with the name of those labels, color, etc.