OHIF with Cornerstone3D 2.0 (#4347)
This commit is contained in:
1 parent
8981a61b8c
commit
7ce7127d7c
803 files changed
+32760
-15893
No files matched your search
@@ -0,0 +1,17 @@
|
||||
import { segmentation } from '@cornerstonejs/tools';
|
||||
|
||||
function removeViewportSegmentationRepresentations(viewportId) {
|
||||
const representations = segmentation.state.getSegmentationRepresentations(viewportId);
|
||||
|
||||
if (!representations || !representations.length) {
|
||||
return;
|
||||
}
|
||||
|
||||
representations.forEach(representation => {
|
||||
segmentation.state.removeSegmentationRepresentation(
|
||||
representation.segmentationRepresentationUID
|
||||
);
|
||||
});
|
||||
}
|
||||
|
||||
export default removeViewportSegmentationRepresentations;
|
||||
Reference in new issue
Block a user