Open mrsaleh opened 5 months ago
I found the source of the issue limited to 255 colors I wanted to make a pull request , but there's a comment above of the line , that try justify this limitation
// Note: MAX_NUMBER_COLORS = 256 is needed because the current method to generate
// the default color table uses RGB.
Though I don't know how these two relates.
There is no support for more than 255 segments right now
Describe the Bug
I've loaded a label map volume, everything works OK , the only issue I have is that segments with indices over 255 doesn't show up. I have no error , when I change the visibility of these indices over 255, it works. but the viewport doesn't render them. I can't see them. here's my code to load label map volume , and add segmentation:
`public async LoadLabelMap(volumeId:string,niftiURL:string,segmentationId: string,labelmaps :LabelMap[]){ this.labelMaps = labelmaps;
Steps to Reproduce
Just load a label map that have data over 255.
The current behavior
It shows the segments with index lower than 255
The expected behavior
Show all the segments
OS
Windows 10
Node version
20
Browser
Firefox 125.0.3