How to rename segment name or segmentation IDs by label in `ImportLabelmapToSegmentationNode`?

Howto rename segment name or segmentation IDs by label instead of color in ImportLabelmapToSegmentationNode?

我发现有时候会返回标签, 有时候却返回颜色…怎么控制呢?

为何用颜色作为默认命名而不是标签呢? 我觉得后者更有意义啊

I noticed that sometimes it returns labels, and sometimes it returns colors… How can I custom or control this?

Why is color name used as the default segment name or segmentationIDs instead of the label? I think the latter is more meaningful.

Slicer now supports terminologies by default. What it means is that your segmentation will correspond to one terminology context and the segments will be entries from that context. The “color selector” will, in this default mode, select a terminology entry (information about what structure it is in addition to the color). You can choose not to use terminologies in Application Settings, but it is more correct to use a proper terminology context containing your segment types. It helps with identifying the segments correctly, without the need to type in the segment name manually (which is error prone, and also one structure may be called in different ways, e.g. “femural head left” vs “femural head lt” vs “left femural head”). Read more on this feature here.

If you select an appropriate color table when importing a labelmap then all the segments have correct name and terminology (as you specified in the color table). You can easily create a color table .csv file in a text editor or in Excel. See example here.