1
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
fdc2bc5f8a
commit
a987ac086b
|
|
@ -234,7 +234,7 @@ export default {
|
||||||
// 如果行向量主要在 X-Y 平面 (rowZ 很小),则为 Axial。
|
// 如果行向量主要在 X-Y 平面 (rowZ 很小),则为 Axial。
|
||||||
// 如果行向量主要在 X-Z 平面 (rowY 很小),则为 Sagittal。
|
// 如果行向量主要在 X-Z 平面 (rowY 很小),则为 Sagittal。
|
||||||
// 为了简化,我们可以直接根据视线方向(法线)来判断。
|
// 为了简化,我们可以直接根据视线方向(法线)来判断。
|
||||||
// 法线方向 = 行向量 × 列向量
|
// 法线方向 = 行向量 × 列向量
|
||||||
const [colX, colY, colZ] = imageOrientationPatient.slice(3);
|
const [colX, colY, colZ] = imageOrientationPatient.slice(3);
|
||||||
const normalX = rowY * colZ - rowZ * colY;
|
const normalX = rowY * colZ - rowZ * colY;
|
||||||
const normalY = rowZ * colX - rowX * colZ;
|
const normalY = rowZ * colX - rowX * colZ;
|
||||||
|
|
@ -282,6 +282,13 @@ export default {
|
||||||
this.imageInfo.location = imagePlaneModule.sliceLocation
|
this.imageInfo.location = imagePlaneModule.sliceLocation
|
||||||
this.imageInfo.total = detail.numberOfSlices
|
this.imageInfo.total = detail.numberOfSlices
|
||||||
this.getOrientationMarker()
|
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)
|
this.$emit('renderAnnotations', this.series)
|
||||||
let properties = viewport.getProperties()
|
let properties = viewport.getProperties()
|
||||||
if (this.isFusion) {
|
if (this.isFusion) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue