Add annotation loading in setUpDicomLegacy function

This commit is contained in:
Ross
2025-11-10 11:56:04 +00:00
parent c2ccf02d3e
commit 697191dae9
+3
View File
@@ -385,9 +385,11 @@ async function setUpDicomLegacy(element) {
// check stack type
if (data_url.startsWith("data:image")) {
let imageId = "base64://" + data_url.split(",")[1];
loadAnnotation(imageId, annotation);
imageIds.push(imageId);
} else if (data_url.startsWith("base64://") || data_url.startsWith("wadouri:")) {
loadAnnotation(data_url, annotation);
imageIds.push(data_url);
@@ -426,6 +428,7 @@ async function setUpDicomLegacy(element) {
url = "wadouri:" + url;
}
loadAnnotation(url, annotation);
imageIds.push(url);