You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I followed this example to handle multiple segmentation in the cornerstoneTools, however the only way to change the segmentation is using API increment/decrementActiveSegmentIndex to update segmentIndex and the color of the segmentation tools are set by default.
In our case, we have a list of predefined segmentation labels and some customized colors, and the user can choose one of the labels and corresponding color, then do the label work. How could we use the predefined colors and labels for each segmentation?
So far, the related APIs I found are setters.colorLUT, activeSegmentIndex to update the color and segmentIndex, setters.activeLabelmapIndex to use different active labelmap index, could anyone provide some sample examples so i can start from? Thank you very much.
The text was updated successfully, but these errors were encountered:
@plantarflex I tried the way you are doing that, but this sort of only colors the outline and not the fill inside it and one more doubt I have is, is that colorLUTindex is same as the segment index?
I followed this example to handle multiple segmentation in the cornerstoneTools, however the only way to change the segmentation is using API increment/decrementActiveSegmentIndex to update segmentIndex and the color of the segmentation tools are set by default.
The text was updated successfully, but these errors were encountered: