I am trying to write a program to load two segmentation of Carotid done by two different people on the same volume, then I want to save images of all slices from axial view to a folder.
I could do most of the thing except changing the color of the segmentations. The reason is that I want to compare between two segmentations. It is hard to compare them when they are in the same color.
Is there anyway to write a script to change the color of the finished segmentation? I tried the below code, but it seems like it does not work this way:
Hi Andras,
I am setting color like this
scalpSeg = segmentationNode.GetSegmentation().GetSegment(scalpSelector)
scalpSeg.SetColor(255,192,203)
but its not working even if I change the color values. Not giving any error. code is working but cant visualize in the segment editor window