.
This commit is contained in:
@@ -672,7 +672,11 @@ export function loadCornerstone(main_element, db, images, annotations_to_load, l
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if ((!image_url.endsWith("dicom") && !image_url.endsWith("dcm")) || image_url.startsWith("base64")) {
|
if (image_url.startsWith("wadouri")) {
|
||||||
|
cornerstone.loadAndCacheImage(image_url).then(function (image) {
|
||||||
|
loadCornerstoneThumb();
|
||||||
|
});
|
||||||
|
} else if ((!image_url.endsWith("dicom") && !image_url.endsWith("dcm")) || image_url.startsWith("base64")) {
|
||||||
img = $("<img />", {
|
img = $("<img />", {
|
||||||
src: image_url,
|
src: image_url,
|
||||||
id: "thumb-image-" + id,
|
id: "thumb-image-" + id,
|
||||||
@@ -685,10 +689,6 @@ export function loadCornerstone(main_element, db, images, annotations_to_load, l
|
|||||||
$("#thumb-" + id).append(img);
|
$("#thumb-" + id).append(img);
|
||||||
|
|
||||||
// otherwise try to load it as a dicom
|
// otherwise try to load it as a dicom
|
||||||
} else if (!image_url.startsWith("wadouri")) {
|
|
||||||
cornerstone.loadAndCacheImage(image_url).then(function (image) {
|
|
||||||
loadCornerstoneThumb();
|
|
||||||
});
|
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
let url = "wadouri:" + image_url;
|
let url = "wadouri:" + image_url;
|
||||||
|
|||||||
Reference in New Issue
Block a user