add the ability to load by imageid

This commit is contained in:
Ross
2024-10-07 08:55:36 +01:00
parent 5ceacc441d
commit 174c7a444f
3 changed files with 12 additions and 2 deletions
+6
View File
@@ -1220,6 +1220,12 @@ export function loadStackIndex(new_index, dicom_element) {
//c = cornerstone.getEnabledElement(dicom_element)
}
export function loadImageById(imageId, dicom_element) {
cornerstone.loadImage(imageId).then(b => {
cornerstone.displayImage(dicom_element, b);
});
}
function urltoFile(url, filename, mimeType) {
return fetch(url)
.then(function (res) {