This commit is contained in:
Ross
2021-11-13 10:39:28 +00:00
parent a8711d3cb3
commit cdbf8c45f5
3 changed files with 13 additions and 1 deletions
+6
View File
@@ -303,6 +303,12 @@ function setUpDicom(element) {
const imageIds = element.dataset.url.split(",");
console.log("Dicom - load imageId: ", imageIds);
for (let index = 0; index < imageIds.length; index++) {
if (imageIds[index].endsWith("dcm") {
imageIds[index] = "wadouri" + imageIds[index];
}
}
cornerstone.enable(element);
cornerstone.loadAndCacheImage(imageIds[0]).then(function (image) {