This commit is contained in:
Ross
2021-10-31 18:42:10 +00:00
parent 5f2e8d16b7
commit aa79e99ac7
+8 -2
View File
@@ -705,7 +705,7 @@ export function loadCornerstone(main_element, db, images, annotations_to_load, l
}
function loadCornerstoneMainImage(element, image, stack, db, load_as_stack) {
dumpDataSet(image.data)
//dumpDataSet(image.data)
console.log("loadCornerstoneMainImage")
console.log("load as stack:", load_as_stack)
// It is probably silly to do this each time we load a question
@@ -904,7 +904,13 @@ async function loadAltDicomInterface(db) {
function onImageRendered(e) {
const eventData = e.detail;
//console.log(e);
dumpDataSet(eventData.image.data)
try {
// todo improve
dumpDataSet(eventData.image.data);
} catch {
console.log("unable to extract dicom data")
}
// Update ww/wl
$("#wc").text(Math.round(eventData.viewport.voi.windowCenter));