From 731340d70ab23e116dd23e80b880bd8a28526f19 Mon Sep 17 00:00:00 2001 From: Ibrahim <93064150+IbrahimCSAE@users.noreply.github.com> Date: Wed, 29 May 2024 11:56:03 -0400 Subject: [PATCH] fix(contour): set renderFill to false for contour (#4186) --- extensions/cornerstone/src/init.tsx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/extensions/cornerstone/src/init.tsx b/extensions/cornerstone/src/init.tsx index c5643e12b..890c5fbc9 100644 --- a/extensions/cornerstone/src/init.tsx +++ b/extensions/cornerstone/src/init.tsx @@ -141,6 +141,8 @@ export default async function init({ }); const labelmapRepresentation = cornerstoneTools.Enums.SegmentationRepresentations.Labelmap; + const contourRepresentation = cornerstoneTools.Enums.SegmentationRepresentations.Contour; + cornerstoneTools.segmentation.config.setGlobalRepresentationConfig(labelmapRepresentation, { fillAlpha: 0.5, fillAlphaInactive: 0.2, @@ -148,6 +150,10 @@ export default async function init({ outlineOpacityInactive: 0.65, }); + cornerstoneTools.segmentation.config.setGlobalRepresentationConfig(contourRepresentation, { + renderFill: false, + }); + const metadataProvider = OHIF.classes.MetadataProvider; volumeLoader.registerVolumeLoader(