fix(contour): set renderFill to false for contour (#4186)
This commit is contained in:
1 parent
395894c6a9
commit
731340d70a
1 file changed
+6
@@ -141,6 +141,8 @@ export default async function init({
|
|||||||
});
|
});
|
||||||
|
|
||||||
const labelmapRepresentation = cornerstoneTools.Enums.SegmentationRepresentations.Labelmap;
|
const labelmapRepresentation = cornerstoneTools.Enums.SegmentationRepresentations.Labelmap;
|
||||||
|
const contourRepresentation = cornerstoneTools.Enums.SegmentationRepresentations.Contour;
|
||||||
|
|
||||||
cornerstoneTools.segmentation.config.setGlobalRepresentationConfig(labelmapRepresentation, {
|
cornerstoneTools.segmentation.config.setGlobalRepresentationConfig(labelmapRepresentation, {
|
||||||
fillAlpha: 0.5,
|
fillAlpha: 0.5,
|
||||||
fillAlphaInactive: 0.2,
|
fillAlphaInactive: 0.2,
|
||||||
@@ -148,6 +150,10 @@ export default async function init({
|
|||||||
outlineOpacityInactive: 0.65,
|
outlineOpacityInactive: 0.65,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
cornerstoneTools.segmentation.config.setGlobalRepresentationConfig(contourRepresentation, {
|
||||||
|
renderFill: false,
|
||||||
|
});
|
||||||
|
|
||||||
const metadataProvider = OHIF.classes.MetadataProvider;
|
const metadataProvider = OHIF.classes.MetadataProvider;
|
||||||
|
|
||||||
volumeLoader.registerVolumeLoader(
|
volumeLoader.registerVolumeLoader(
|
||||||
|
|||||||
Reference in new issue
Block a user