.
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user