-
Notifications
You must be signed in to change notification settings - Fork 12
Color display error on 3D Volume with ROI box #83
Copy link
Copy link
Open
Description
Hi, when i using ROI box, the color of volume 3D is broken. When I enable it, my 3D block displays incorrect colors. I’m not sure why; it might be due to a mistake or something missing in my setup code. This only h
def cropVolume(self) -> None:
if not self.volume_node:
logging.warning("[Volume] No volume node found for cropping")
return
# 1. Get Display node
display_node = self.slicer_app.volume_rendering.get_vr_display_node(self.volume_node)
if not display_node:
logging.warning("[Volume] No VR display node found")
return
# 2. Get ROI node and toggle logic
is_enabled = not display_node.GetCroppingEnabled()
roi_node = self.slicer_app.volume_rendering.get_cropping_roi_node(self.volume_node)
self.slicer_app.volume_rendering.set_cropping_enabled(
self.volume_node,
roi_node,
is_enabled
)
self.slicer_app.volume_rendering.set_cropping_roi_node_visibile(self.volume_node, is_enabled)
# 3. Update
self.view3D.render()
if self.controller:
self.controller.volume_update()This is my result on browser
Interestingly, this doesn't happen when I run natively (on a machine with a dGPU) or in a Docker container mounted with a dGPU. However, when running in a regular Docker environment, it does have this color distortion issue.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels