I’m using cornerstoneTools with the Cornerstone.js DICOM view. I draw multiple segments by the Cornerstone.js segment tool and load the segments from RLE.
How can I select an existing segment by clicking it by mouse on the DICOM viewer?
I’m using cornerstoneTools with the Cornerstone.js DICOM view. I draw multiple segments by the Cornerstone.js segment tool and load the segments from RLE.
How can I select an existing segment by clicking it by mouse on the DICOM viewer?
It’s not possible to set the segmentation colour directly in Cornerstone.js. However, you can set the color in Cornerstone.js by switching your desired color from
colorLutTables.To do this, you have to do three steps:
Set
colorLutTableswith your list of colors, for example.Selecting the segment. This one. Also, there isn't any straight way to select a segment in Cornerstone.js. To do this, you have to use the Cornerstone.js tools event listener. You can use the
cornerstonetoolsmouseclickevent by attach this event to your Cornerstone.js-enabled element.Switching indexes in colorLUT, from any color to white
You can use this function to update the colorLUT table:
This will update the selected segment to a white color.