diff --git a/src/components/Dicom/DicomCanvas.vue b/src/components/Dicom/DicomCanvas.vue index f52fc74a..88bdc371 100644 --- a/src/components/Dicom/DicomCanvas.vue +++ b/src/components/Dicom/DicomCanvas.vue @@ -378,6 +378,7 @@ export default { this.stack.imageIdIndex = newImageIdIndex this.series.imageIdIndex = newImageIdIndex this.height = (this.stack.currentImageIdIndex) * 100 / (this.stack.imageIds.length - 1) + this.resetWwwc() }, stackScrollCallback(e) { const { detail } = e @@ -423,9 +424,6 @@ export default { this.dicomInfo.zoom = viewport.scale.toFixed(4) var data = e.detail.image.data const position = data.string('x00201041') - const windowCenter = data.string('x00281050') - const windowWidth = data.string('x00281051') - this.setWwwc(windowWidth, windowCenter) this.dicomInfo.location = position }, getOrientationMarker(element) { diff --git a/src/views/trials/trials-panel/reading/dicoms3D/components/Viewport.vue b/src/views/trials/trials-panel/reading/dicoms3D/components/Viewport.vue index 6fa4a69a..9aa2606f 100644 --- a/src/views/trials/trials-panel/reading/dicoms3D/components/Viewport.vue +++ b/src/views/trials/trials-panel/reading/dicoms3D/components/Viewport.vue @@ -403,7 +403,8 @@ export default { this.series = { ...obj } const renderingEngine = getRenderingEngine(this.renderingEngineId) const viewport = renderingEngine.getViewport(this.viewportId) - const image = await cornerstoneDICOMImageLoader.wadouri.loadImage(obj.ImageIds[obj.SliceIndex]).promise + let imageId = obj.ImageIds[obj.SliceIndex] ? obj.ImageIds[obj.SliceIndex] : obj.ImageIds[0] + const image = await cornerstoneDICOMImageLoader.wadouri.loadImage(imageId).promise if (obj.Modality === 'PT') { this.cachePTMetadata([image]) }