add the ability to load by imageid
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user