Hi,
I am displaying a label image in slicer using this two lines of code
volumeNode = sitkUtils.PushVolumeToSlicer(anno_itk, name='Annotations', className='vtkMRMLLabelMapVolumeNode')
slicer.util.setSliceViewerLayers(background=volumeNode)
Now the problem is that I want to use a color lookuptable that I already defined as a txt file in the ColorFiles folder. Is there a way to do this?
I tried this:
bgDisplay = volumeNode.GetDisplayNode()
bgDisplay.SetAndObserveColorNodeID('mylookuptable')
but it only works with some colors like green, red, etc but not with my own ones.
Thanks!