diff --git a/src/views/trials/trials-panel/reading/dicoms3D/components/VolumeViewport.vue b/src/views/trials/trials-panel/reading/dicoms3D/components/VolumeViewport.vue index 70f2d6a3..c877a4fe 100644 --- a/src/views/trials/trials-panel/reading/dicoms3D/components/VolumeViewport.vue +++ b/src/views/trials/trials-panel/reading/dicoms3D/components/VolumeViewport.vue @@ -234,7 +234,7 @@ export default { // 如果行向量主要在 X-Y 平面 (rowZ 很小),则为 Axial。 // 如果行向量主要在 X-Z 平面 (rowY 很小),则为 Sagittal。 // 为了简化,我们可以直接根据视线方向(法线)来判断。 - // 法线方向 = 行向量 × 列向量 + // 法线方向 = 行向量 × 列向量 const [colX, colY, colZ] = imageOrientationPatient.slice(3); const normalX = rowY * colZ - rowZ * colY; const normalY = rowZ * colX - rowX * colZ; @@ -282,6 +282,13 @@ export default { this.imageInfo.location = imagePlaneModule.sliceLocation this.imageInfo.total = detail.numberOfSlices this.getOrientationMarker() + + let annotations = cornerstoneTools.annotation.state.getAllAnnotations().filter(item => item.metadata.toolName !== 'ScaleOverlay' && item.metadata.volumeId !== this.volumeId && !item.metadata.segmentationId) + // console.log(annotations, 'annotations') + annotations.forEach(item => { + cornerstoneTools.annotation.state.removeAnnotation(item.annotationUID) + }) + this.$emit('renderAnnotations', this.series) let properties = viewport.getProperties() if (this.isFusion) {